Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Excel 2007, I write macros in 2003 is 2007 similar for VBA? Pros andcons please | Excel Programming | |||
2007 does not like 2003 chart macros | Charts and Charting in Excel | |||
Excel Macros from 2003 to 2007 | Excel Discussion (Misc queries) | |||
Excel Macros 2003 into 2007 | Excel Worksheet Functions | |||
Macros / VBA / Pivot Tables in 2003 & 2007 | Setting up and Configuration of Excel |