Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22
Default 2003 to 2007 updates

I saved my old 2003 excel macro program (.xls) as the 2007 macro enabled
version (.xlsm). I wen through the program and changed to run commands to
open the appropriate document and run from the appropriate databases. Now,
the program gets to a certain point and says that the subscript is out of
range. This is the program:
Sub GEN_DATA()
'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXX
'This generates all of the data as well as make all of the colums and
'sort data for the charts.
'--------------------------------------------------------------------------
Sheets("myVar1").Select
Application.ScreenUpdating = False
The "Sheet("myVar1").Select is what is causing my error. Any thoughts??

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default 2003 to 2007 updates

That means that there is no sheet named myVar1.

Did you really mean:
sheets(myvar1).select
????

playerbigdog wrote:

I saved my old 2003 excel macro program (.xls) as the 2007 macro enabled
version (.xlsm). I wen through the program and changed to run commands to
open the appropriate document and run from the appropriate databases. Now,
the program gets to a certain point and says that the subscript is out of
range. This is the program:
Sub GEN_DATA()
'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXX
'This generates all of the data as well as make all of the colums and
'sort data for the charts.
'--------------------------------------------------------------------------
Sheets("myVar1").Select
Application.ScreenUpdating = False
The "Sheet("myVar1").Select is what is causing my error. Any thoughts??


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22
Default 2003 to 2007 updates

I just changed it to without the quotes and it is running so far. Thanks for
the quick fix!!

"Dave Peterson" wrote:

That means that there is no sheet named myVar1.

Did you really mean:
sheets(myvar1).select
????

playerbigdog wrote:

I saved my old 2003 excel macro program (.xls) as the 2007 macro enabled
version (.xlsm). I wen through the program and changed to run commands to
open the appropriate document and run from the appropriate databases. Now,
the program gets to a certain point and says that the subscript is out of
range. This is the program:
Sub GEN_DATA()
'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXX
'This generates all of the data as well as make all of the colums and
'sort data for the charts.
'--------------------------------------------------------------------------
Sheets("myVar1").Select
Application.ScreenUpdating = False
The "Sheet("myVar1").Select is what is causing my error. Any thoughts??


--

Dave Peterson

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
Link updates Excel 2007 Alain Schneiter Excel Worksheet Functions 6 March 17th 09 08:38 AM
Excel 2003-installing security updates HenryAlive Setting up and Configuration of Excel 0 January 2nd 08 08:18 AM
MS Office 2003 updates have screwed up Excel ! biglogger Excel Discussion (Misc queries) 1 May 5th 06 01:43 PM
Excel Links Updates in 2003 Tracy B. Excel Worksheet Functions 7 February 20th 06 10:52 PM
Excel 2003 Updates, and Errors SchachMeister Setting up and Configuration of Excel 0 April 25th 05 05:33 PM


All times are GMT +1. The time now is 02:05 AM.

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

About Us

"It's about Microsoft Excel"