Link to home
Start Free TrialLog in
Avatar of m_travis
m_travisFlag for United States of America

asked on

Why does my VBA script no longer work in excel 2007

I have created a calendar with some VBA functions in excel 2003. I have recently updated to excel 2007 but I am getting errors when trying to run my macros. I have provided the calender file. please help me out. Also any kind of site that describes the differences between excel 2003 and excel 2007 Security-Room.xls Security-Room.xls
Avatar of shjacks55
shjacks55

Macro security settings in Excel 2007? Go to the Office Button and click the Excel Options button. Go to Trust Center --> Trust Center Settings --> Macro Settings. The settings apply to worksheets that are "not in a trusted location." So, you need to set up your trusted locations. You can do that from the same dialog, just choose Trusted Locations in the menu on the left.
Avatar of m_travis

ASKER

I have it set up to allow all macros, I think it is more of an issues with the code itself
ASKER CERTIFIED SOLUTION
Avatar of Rory Archibald
Rory Archibald
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Rorya,

it worked, could you just tell me why that was the issue.
Because whenever you use a function or sub in VBA that is not fully qualified with the library to which it belongs, Excel has to check all the supplied references to see if it comes from one of those libraries. If the references are broken (i.e. MISSING), then an error occurs when it tries to check them.
thank you