PC Review


Reply
Thread Tools Rate Thread

2003 vs 2007 Macros

 
 
John Tripp
Guest
Posts: n/a
 
      26th Nov 2008
I have many 2003 spreadsheets with macros.

I just tried to load one of them inot 2007.
I Opened the File, then Saved it as .xlsm file. Then I closed it ant opened
it.
I tried to run my macro and got the message "Can't find Project or Library."

Dim rstring As String
rstring = "A" + Trim(Str(r1)) + ":G" + Trim(Str(r2)) where str is highlighted.

Any thoughts? If I have to convert/upgrade these programs, is there any
utility or tutorial on what to do?

Thanks
 
Reply With Quote
 
 
 
 
Chip Pearson
Guest
Posts: n/a
 
      26th Nov 2008
First, make sure all the references are set properly. Open the
workbook, then open the VBA editor. There, go to the Tools menu and
choose References. If any are marked "MISSING", you will need to
uncheck that reference and, if it is required, reset it to the proper
file name. See http://www.cpearson.com/Excel/StartupErrors.aspx for
more info about diagnosing and fixing errors.

Cordially,
Chip Pearson
Microsoft MVP
Excel Product Group
Pearson Software Consulting, LLC
www.cpearson.com
(email on web site)


On Wed, 26 Nov 2008 07:06:05 -0800, John Tripp
<(E-Mail Removed)> wrote:

>I have many 2003 spreadsheets with macros.
>
>I just tried to load one of them inot 2007.
>I Opened the File, then Saved it as .xlsm file. Then I closed it ant opened
>it.
>I tried to run my macro and got the message "Can't find Project or Library."
>
>Dim rstring As String
>rstring = "A" + Trim(Str(r1)) + ":G" + Trim(Str(r2)) where str is highlighted.
>
>Any thoughts? If I have to convert/upgrade these programs, is there any
>utility or tutorial on what to do?
>
>Thanks

 
Reply With Quote
 
John Tripp
Guest
Posts: n/a
 
      26th Nov 2008
Thanks! Works fine. I guess I will have to do that with any similar
workbook, as I use them.

"Chip Pearson" wrote:

> First, make sure all the references are set properly. Open the
> workbook, then open the VBA editor. There, go to the Tools menu and
> choose References. If any are marked "MISSING", you will need to
> uncheck that reference and, if it is required, reset it to the proper
> file name. See http://www.cpearson.com/Excel/StartupErrors.aspx for
> more info about diagnosing and fixing errors.
>
> Cordially,
> Chip Pearson
> Microsoft MVP
> Excel Product Group
> Pearson Software Consulting, LLC
> www.cpearson.com
> (email on web site)
>
>
> On Wed, 26 Nov 2008 07:06:05 -0800, John Tripp
> <(E-Mail Removed)> wrote:
>
> >I have many 2003 spreadsheets with macros.
> >
> >I just tried to load one of them inot 2007.
> >I Opened the File, then Saved it as .xlsm file. Then I closed it ant opened
> >it.
> >I tried to run my macro and got the message "Can't find Project or Library."
> >
> >Dim rstring As String
> >rstring = "A" + Trim(Str(r1)) + ":G" + Trim(Str(r2)) where str is highlighted.
> >
> >Any thoughts? If I have to convert/upgrade these programs, is there any
> >utility or tutorial on what to do?
> >
> >Thanks

>

 
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
2007 Macros converting from 2003 Annette Microsoft Powerpoint 5 26th Apr 2010 04:01 PM
Macros in 2003 and 2007 RS Microsoft Access Forms 1 9th Nov 2008 06:00 PM
Excel 2007, I write macros in 2003 is 2007 similar for VBA? Pros andcons please Simon Microsoft Excel Programming 3 5th Aug 2008 03:48 PM
2007 does not like 2003 chart macros Ned Microsoft Excel Charting 0 11th Jun 2008 02:17 AM
Upgrade from 2003 to 2007; Where are the Macros ryguy7272 Microsoft Access Macros 3 14th May 2008 10:01 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:00 PM.