XL97: External Data Range Property Not Saved with WorkbookID: Q165779
|
In Microsoft Excel 97, the "Overwrite existing cells with new data, clear unused cells" option in the External Data Range Properties dialog box is not retained when you save and close a workbook. Instead, the "Insert entire rows for new data, clear unused cells" option is selected.
This problem occurs in a workbook that already contains external data ranges.
Microsoft provides programming examples for illustration only, without warranty
either expressed or implied, including, but not limited to, the implied warranties of
merchantability and/or fitness for a particular purpose. This article assumes that you
are familiar with the programming language being demonstrated and the tools used to
create and debug procedures. Microsoft support professionals can help explain the functionality
of a particular procedure, but they will not modify these examples to provide added
functionality or construct procedures to meet your specific needs. If you have limited
programming experience, you may want to contact a Microsoft Certified Solution Provider
or the Microsoft fee-based consulting line at (800) 936-5200. For more information about
Microsoft Certified Solution Providers, please see the following page on the World Wide Web:
http://www.microsoft.com/mcsp/For more information about the support options available from Microsoft, please see the following page on the World Wide Web:
http://www.microsoft.com/support/supportnet/refguide/To use one or more external data ranges in a workbook and use the "Overwrite existing cells with new data, clear unused cells" option, create and run a Visual Basic for Applications macro to reset the option each time you open the workbook. To do this, follow these steps:
ActiveSheet.QueryTables("y").RefreshStyle = xlOverwriteCells
where "y" is the name of the data range you wrote down in step 2.
Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. This problem was corrected in Microsoft Excel 2000.
In Microsoft Excel 97, you can use the Run Web Query, Run Database Query,
and Create New Query commands (on the Get External Data submenu) to
retrieve external data. When you retrieve external data and the number of
rows in the external data range changes, you can format the external data
range in the worksheet in one of three ways. To do this, follow these
steps:
Additional query words: XL97
Keywords : kbtool kbweb xlquery
Version : WINDOWS:
Platform : WINDOWS
Issue type : kbprb
Last Reviewed: July 2, 1999