• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 230
  • Last Modified:

excell2007 to 2010

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
3sdk5
Asked:
3sdk5
  • 3
2 Solutions
 
Ingeborg Hawighorst (Microsoft MVP / EE MVE)Microsoft MVP ExcelCommented:
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
 
3sdk5Author Commented:
Hi Thanks For getting back to me,
All are checked
Will it Matter if it is 32bit office??


Cheers
0
 
Rory ArchibaldCommented:
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
 
3sdk5Author Commented:
sorry for the delay  yes you were correct one was shown as missing.

cheers
0
 
3sdk5Author Commented:
was a mistake with the tick
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Microsoft Exchange Server

The MCTS: Microsoft Exchange Server 2010 certification validates your skills in supporting the maintenance and administration of the Exchange servers in an enterprise environment. Learn everything you need to know with this course.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now