Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Excel 2007 returns data as 2007 table instead of range - how to turn off.

I have a spreadsheet created in 2003 that has macros to update an MS-Query and apply sorting and filters to the results.

It works in both 2003 and 2007 in compatibility mode.

However, if I have to change the query in 2007 (compatibility mode), MS-Qury returns the data as a 2007 table. My VB code is now broken in both versions. Apparently tables have different "rules" for refreshing data, sorting and filtering.

I don't want to change all my legacy code. I can't change my legacy code since we are still a mixed shop at the moment. I even less want to maintain two sets of code for each version

There is an option to convert the table to a range, and the code works but I lose the query.

Is there a way to convert the table to a range and NOT lose the query, or to tell MS-Query not to save the data as a table in the first place.

So far my only work around is to move the spreadsheet to a machine with 2003 and re-edit the query there.

---
frmsrcurl: http://msgroups.net/microsoft.public.excel.programming/
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel 2007 Pivot Table Changes the Source Data Range Marilyn Excel Discussion (Misc queries) 0 September 14th 09 07:44 PM
Excel 2007 table named range does not include headers greg Excel Programming 1 June 18th 09 01:32 AM
Update Access 2007 Table Using Excel 2007 VBA Sairam Excel Programming 0 November 14th 08 07:59 PM
2007 Table Linked Charts - Limit Data Source Range? [email protected][_2_] Charts and Charting in Excel 1 October 6th 08 02:59 AM
Pivot table with name range Excel 2007 Feejo Excel Discussion (Misc queries) 0 January 24th 08 03:21 PM


All times are GMT +1. The time now is 10:45 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"