Solved

excell2007 to 2010

Posted on 2013-05-19
5
186 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:
Ingeborg Hawighorst earned 480 total points
ID: 39180019
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
ID: 39180101
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
ID: 39180494
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
ID: 39217375
sorry for the delay  yes you were correct one was shown as missing.

cheers
0
 

Author Closing Comment

by:3sdk5
ID: 39217388
was a mistake with the tick
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Introduction This Article briefly covers methods of calculating the NPV and IRR variants in Excel as well as the limitations in calculating and interpreting IRR results. Paraphrasing Richard Shockley, author of my favourite finance reference tex…
This tutorial explains how to create a series of drop-down lists that are dependent upon prior selections to guide (“force”) the user to make the correct selection and reduce data errors within Microsoft Excel. Excel 2010 was used for this tutorial;…
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

911 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

24 Experts available now in Live!

Get 1:1 Help Now