Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win


Why does my VBA script no longer work in excel 2007

Posted on 2011-03-15
Medium Priority
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
Question by:m_travis
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

Expert Comment

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.

Author Comment

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

Accepted Solution

Rory Archibald earned 2000 total points
ID: 35142643
You have two missing references - check Tools-References in the VBEditor and uncheck the two 'MISSING:' ones.
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.


Author Comment

ID: 35147761

it worked, could you just tell me why that was the issue.
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.

Author Comment

ID: 35147788
thank you

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

This code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
If you need to forecast numbers -- typically for finance -- the Windows and Mac versions of Excel 2016 have a basket of tools to get the job done.
This Micro Tutorial will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

596 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