Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have a third party workbook containing VBA scripts that works in Excel 2003
but not in Excel 2007. The VBA script contains this line : directoryName = Range("directory").Value where directory is a name that references a cell. Excel 2007 gives me "Can't find project or library" compile error. How do I fix this ? Thanks. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi
I myself use the syntax (Excel2000) like directoryName = [directory] Maybe this will work Arvi Laanemets "Bumbrlik" wrote in message ... I have a third party workbook containing VBA scripts that works in Excel 2003 but not in Excel 2007. The VBA script contains this line : directoryName = Range("directory").Value where directory is a name that references a cell. Excel 2007 gives me "Can't find project or library" compile error. How do I fix this ? Thanks. |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Look at Tools, References in the VBE with this project active. Likely one
at least is marked 'missing'. -- Jim "Bumbrlik" wrote in message ... I have a third party workbook containing VBA scripts that works in Excel 2003 but not in Excel 2007. The VBA script contains this line : directoryName = Range("directory").Value where directory is a name that references a cell. Excel 2007 gives me "Can't find project or library" compile error. How do I fix this ? Thanks. |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
A couple of conditions which I am aware of that can cause an error with named
ranges. Condition 1: The named range was originally created on a worksheet in the interactive mode and the macro has been copied into a new workbook and hence the named range is not in the new workbook. To fix select the cell in the required worksheet and then select Formulas ribbon and in the Defined Names block select Name Manager to confirm it does not exist. If it does not exist then select New and create it for the range it should represent. If it does exist, then note the range it represents and delete it and recreate it just in case you have a glitch in xl. Condition 2 The named range is in another workbook and the other workbook is not the active workbook. Regards, OssieMac I have a third party workbook containing VBA scripts that works in Excel 2003 but not in Excel 2007. The VBA script contains this line : directoryName = Range("directory").Value where directory is a name that references a cell. Excel 2007 gives me "Can't find project or library" compile error. How do I fix this ? Thanks. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
User Defined Function is not working for me in Excel 2007 | Excel Discussion (Misc queries) | |||
user-defined charts in Excel 2007 | Charts and Charting in Excel | |||
Excel 2007 slow saving with defined names | Excel Programming | |||
Why doesn't working? Application-defined or object-defined error | Excel Programming | |||
Menu/toolbars/macros defined in Excel 2003 not working in other versions? | Excel Programming |