macro error

cmccabe

Active Member
Joined
Feb 20, 2008
Messages
396
I have a macro that is called PERSONAL.XLS!OpenCalendar that is refereced in by a VBA code. It works great when it is run on the user who created the spreadsheet computer, but others get a PERSONAL.XLS does not exist error and can not be accessed. Can this be fixed? Thank you very much.
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
Place a copy of the macro in the workbook that you want to use it in then you can run it from the workbook.

Person Workbook is a user PC specific thing.
 
Upvote 0
Once the macro has been copied into the workbook do I need to change the code below. Thanks.

Code:
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
     Application.Run "PERSONAL.XLS!OpenCalendar"
End Sub
 
Upvote 0
If its in your workbook now then you would just call it

so like this

Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
Call OpenCalendar
End Sub
 
Upvote 0

Forum statistics

Threads
1,224,522
Messages
6,179,297
Members
452,903
Latest member
Knuddeluff

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top