Originated from
Omgili

Embedding Macro in and Excel Workbook

I am very new to creating excel Macros.  I used a guide to create a Insert Date macro. I then inserted a small picture of a calendar and assigned my macro to it.  The function works perfectly fine on my computer, but when viewed on another computer, clicking on the calendar results in the error message "File Personal.xls not found."  I know it is because the macro file must only be saved on my computer and a friend has told me I have to somehow embed the file in the worksheet.  However I have no idea how to do this and have been unable to figure it out.  Any help you can provide would be greatly appreciated.  Thanks!

Would you like to answer or comment?

Sign up for a free account, or sign in (if you're already a member).
  • 209 views
Share Send to a friend Watch Report
 
 

Posted Answers

 

You can either put your macros in Personal.xls which loads up when Excel is started or in the actual book you're working with.  To move it out of the Personal.xls open Excel and press Alt-F11 to bring up Visual Basic.  On the left you should see the Project window with any open files in.  Find Personal.xls and click the + to expand.  Do the same for Modules and find your macro.  Copy the code and find your new book in the Project window and, if needed right click on the filename and select Insert - Module then paste the code into the new module.  You'll will then need to reassign the macro to make it point to the new location.


Posted 2 months ago ( permalink )
In reply to Krissy's question
Rated as
#1 out of 1
0
0

Helpful?

line
line
line



Sign in to participate

Got an answer for Krissy? Would you like to comment on the posted answers, or vote for the one which you think is the best?

Sign up for a free account, or sign in (if you're already a member).

Explore Related Questions

Other people asked questions on similar topics, check out the answers they received:


How to remove the "zero" value in excel file for ...

how to remove the "zero" value in excel file for Window Vista? I have no problem in doing this for Window XP but having problem in ...
Submitted by irislbl 1 year ago
  • viewed 1129 times

Last answer posted 8 months ago by Lior Haner


Excel Master Needed! (highlighting rows and referencing different worksheets)

My question is complicated. But here it goes... On the worksheet "Delivered Cars," I have the VIN numbers of different cars in ...
Submitted by mupton 2 months ago
  • viewed 165 times

Last answer posted 2 months ago by cwhaley


Present Value in Excel

What is the formula for finding Present Value in Excel?
Submitted by Pardess 2 years ago
  • viewed 1915 times

Last answer posted 2 years ago by yoavdothan



» More...

Explore Related Posts in Forums

getting Excel macros to run from access macros

excel macros executable

Excel 97 not working with 2003 excel macros

Visual Macros Editor in MS Excel - Miscellaneous Questions

[Excel Macros] Creating Macros to search and copy columns

Is there a Macros collection in Excel similar to the Names collection

How do you get Excel to record a macros using relative refernce mo

Macros not working in Excel 2007 workbooks

how to enable macros in excell 2000

Powered by
Feed - Subscribe to changes to this Q&A Blog
Copyright © 2006-2008, Yedda Inc. and respective copyright owners · CC License