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

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
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default 2003 vs 2007 Macros

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
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

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 12
Default 2003 vs 2007 Macros

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
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
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, I write macros in 2003 is 2007 similar for VBA? Pros andcons please Simon[_2_] Excel Programming 3 August 5th 08 03:48 PM
2007 does not like 2003 chart macros Ned Charts and Charting in Excel 0 June 11th 08 02:17 AM
Excel Macros from 2003 to 2007 brihyanna Excel Discussion (Misc queries) 1 December 14th 07 03:29 PM
Excel Macros 2003 into 2007 Lyndsey Wood Excel Worksheet Functions 1 November 8th 07 02:49 PM
Macros / VBA / Pivot Tables in 2003 & 2007 [email protected] Setting up and Configuration of Excel 0 July 15th 07 11:24 PM


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

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"