Solved

excell2007 to 2010

Posted on 2013-05-19
5
177 Views
Last Modified: 2013-06-03
Hi I have just upgraded to a new computer (windows 7 64) with office 2010 installed on it.

Previous one  xp pro 32 bit office 2007.

when I use a searchy marco compiled in excell 2007 it comes up with a error
"Compile Error"."Can't find object or library"

Attached is the cod for the macro.

Please help
thanks
search.txt
0
Comment
Question by:3sdk5
  • 3
5 Comments
 
LVL 50

Accepted Solution

by:
teylyn earned 480 total points
Comment Utility
Hello,

in the VBE, check Tools > References and make sure that the following are ticked:

Visual Basic for Applications
Microsoft Excel 14.0 Object Library
OLE Automation
Microsoft Office 14.0 Object Library

These references are ticked in my version of Excel 2010 and your code runs without problems.

Also, make sure that the computer has a drive D: and that the folder d:\quotes 2012\ exists.

cheers, teylyn
0
 

Author Comment

by:3sdk5
Comment Utility
Hi Thanks For getting back to me,
All are checked
Will it Matter if it is 32bit office??


Cheers
0
 
LVL 85

Assisted Solution

by:Rory Archibald
Rory Archibald earned 20 total points
Comment Utility
Further to Teylyn's comment, I think you have a checked reference that is flagged as 'MISSING:'

And no, 32bit Office is not a problem (it is in fact the recommended option).
0
 

Author Comment

by:3sdk5
Comment Utility
sorry for the delay  yes you were correct one was shown as missing.

cheers
0
 

Author Closing Comment

by:3sdk5
Comment Utility
was a mistake with the tick
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Dealing with unintended Excel Active-X resizing quirks (VBA code simulates "self correction") David Miller (dlmille) Intro Not everyone is a fan of Active-X controls in spreadsheets (as opposed to the UserForm approach, the older Form controls …
Convert between Excel file formats (.XLS, .XLSX, .XLSM) with/without macro option David Miller (dlmille) Intro Over this past Fall, I've had the opportunity to see several similar requests and have developed a couple related solutions associate…
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
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.

763 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now