Solved

excell2007 to 2010

Posted on 2013-05-19
5
217 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
[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
5 Comments
 
LVL 50

Accepted Solution

by:
Ingeborg Hawighorst (Microsoft MVP / EE MVE) 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

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

How to quickly and accurately populate Word documents with Excel data, charts and images (including Automated Bookmark generation) David Miller (dlmille) Synopsis In this article you’ll learn how to use ExcelToWord! to copy data,charts, shapes …
Workbook link problems after copying tabs to a new workbook? David Miller (dlmille) Intro Have you either copied sheets to a new workbook, and after having saved and opened that workbook, you find that there are links back to the original sou…
This Micro Tutorial demonstrates how to create Excel charts: column, area, line, bar, and scatter charts. Formatting tips are provided as well.
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.

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