SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 32777: Refreshing data doesn't return the expected number of rows in Excel with the SAS Add-In for Microsoft Office

DetailsHotfixAboutRate It

In the SAS Add-In for Microsoft Office, if you first set the Number of records to display to fewer records than are returned by a filter, but you then change your request to display more records than are returned by the filter, you might not see all of the records in the spreadsheet.

The following steps explain how to reproduce this problem.

  1. Create a dataset as follows:
  2.    data testlib.amotest;
         do i=1 to 200;
            output;
         end;
       run;
    

  3. Open Excel and select SAS→Options.
  4. Set Number of records to display to 50 and click OK.
  5. Select SAS→Open Data Source→Into Worksheet.
  6. Select testlib.amotest and then click Open.
  7. On the Variables tab, move the variable i to the right.
  8. Click the Filter tab and create the following filter:
  9. i is less or equal to 120

  10. Click OK to display the first 50 observations (i=1 to 50).
  11. Click Page forward to display the next 50 observations
  12. Select SAS→Options.
  13. Change Number of records to display to 150 and click OK.
  14. Click on the data cell and then click Refresh.
You will notice that only 70 observations are displayed (i=51 to 120), rather than 120 (i=1 to 120). The Page backward button is also disabled, so that you can't display the first 50 observations. If you are on the first page of the worksheet when you refresh, the worksheet will show all of the expected observations.

Select the Hot Fix tab in this note to access the hot fix for this issue.



Operating System and Release Information

Product FamilyProductSystemProduct ReleaseSAS Release
ReportedFixed*ReportedFixed*
SAS SystemSAS Add-in for Microsoft OfficeMicrosoft® Windows® for x642.14.29.1 TS1M3 SP49.2 TS2M0
Microsoft Windows 2000 Advanced Server2.19.1 TS1M3 SP4
Microsoft Windows 2000 Server2.19.1 TS1M3 SP4
Microsoft Windows 2000 Datacenter Server2.19.1 TS1M3 SP4
Microsoft Windows 2000 Professional2.19.1 TS1M3 SP4
Microsoft Windows NT Workstation2.19.1 TS1M3 SP4
Microsoft Windows Server 2003 Datacenter Edition2.14.29.1 TS1M3 SP49.2 TS2M0
Microsoft Windows Server 2003 Enterprise Edition2.14.29.1 TS1M3 SP49.2 TS2M0
Microsoft Windows Server 2003 Standard Edition2.14.29.1 TS1M3 SP49.2 TS2M0
Microsoft Windows XP Professional2.14.29.1 TS1M3 SP49.2 TS2M0
Windows Vista2.14.29.1 TS1M3 SP49.2 TS2M0
* For software releases that are not yet generally available, the Fixed Release is the software release in which the problem is planned to be fixed.