Solved

Why does my VBA script no longer work in excel 2007

Posted on 2011-03-15
6
241 Views
Last Modified: 2012-05-11
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
0
Comment
Question by:m_travis
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
6 Comments
 
LVL 3

Expert Comment

by:shjacks55
ID: 35141256
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.
0
 
LVL 1

Author Comment

by:m_travis
ID: 35141583
I have it set up to allow all macros, I think it is more of an issues with the code itself
0
 
LVL 85

Accepted Solution

by:
Rory Archibald earned 500 total points
ID: 35142643
You have two missing references - check Tools-References in the VBEditor and uncheck the two 'MISSING:' ones.
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 1

Author Comment

by:m_travis
ID: 35147761
Rorya,

it worked, could you just tell me why that was the issue.
0
 
LVL 85

Expert Comment

by:Rory Archibald
ID: 35147781
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.
0
 
LVL 1

Author Comment

by:m_travis
ID: 35147788
thank you
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…
Graphs within dashboards are meant to be dynamic, representing data from a period of time that will change each time the dashboard is updated with new data. Rather than update each graph to point to a different set within a static set of data, t…

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question