Originated From

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!

Liked this question? Tell your friends about it


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.

<a href="" rel="nofollow" cl="http://www.spreadsheetsdirect.com/" class="comlink">http://www.spreadsheetsdirect.com/</a>

Related Questions

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

Asked: How do i add macro in excel to button

how do i add macro in excel to button

Asked: Office home and student 2010. I sent an Excel ...

office home and student 2010. I sent an Excel spreadsheet from work. I can add more info but I can't save the new numbers. Do I have to rename it because of the changes ? How do I do that ?

Asked: Removing all rows that have a "0" value

I am creating a macro in Excel 2007. What I would like it to do is to remove all lines that have a zero value ("0"). Can you help? Thanks Sarah

Ask a Question... We'll forward it to people who know

More Questions

Macro Photography???

Africa is a fabulous location for those who want to get into macro photography with its natural beauty and wildlife. The following are some great spots for macro photography in Africa: Kruger National Park Kgalagadi Pilanesberg Etosha Source: http://www.kruger-2-kalahari.com/macro ...

Macro to add number to range..HELP!

You'll need a loop to go through cells. Here is my suggestion: Sub AddToCell() 'Do starts a loop Do 'Here is your original macro row ActiveCell.Value = ActiveCell.Value + Val(InputBox("3100", default:=1)) 'Select next cell ActiveCell.Offset(1, 0).Select 'Loop ends here if next cell has no ...

Can't choose size (small, medium, large) for embedded photos in AOL

Hi there: For assistance, please refer to the help article below. Clear Cookies, Cache and History on Your Browser Reset web settings

Hi, I am trying write a macros to convert Now ...

well if you use function now the value will change, it's already automatic. Try open blog http://misterahhmad.blogspot.com, there a lot of tips