PC Review


Reply
Thread Tools Rate Thread

2003 to 2007 updates

 
 
playerbigdog
Guest
Posts: n/a
 
      2nd Jun 2008
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()
'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
'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??

 
Reply With Quote
 
 
 
 
Dave Peterson
Guest
Posts: n/a
 
      2nd Jun 2008
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()
> 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
> '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 With Quote
 
playerbigdog
Guest
Posts: n/a
 
      2nd Jun 2008
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()
> > 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
> > '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 With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Updates Available for Outlook 2003 to 2007? SuzyG Microsoft Outlook Discussion 2 28th Aug 2009 11:15 PM
Reading O'look 2007 calendar updates on O'look 2003 computers nclark Microsoft Outlook Calendar 1 12th May 2009 12:15 AM
2007 installed but I get 2003 updates uhhclem Microsoft Outlook Discussion 1 30th Dec 2008 08:01 AM
OL 2003 /2007 Prevent meeting request updates from being sent jenks Microsoft Outlook Discussion 1 4th Dec 2008 07:35 AM
I want to load holiday updates past 2007 for office 2003 =?Utf-8?B?RUZpb3Jl?= Microsoft Outlook Calendar 1 3rd Sep 2006 07:12 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:33 PM.