Activate Macro/vba for a shared workbook

JCHuysamer

New Member
Joined
Nov 3, 2015
Messages
43
Hi All

Is there any way to keep your Macro's (VBA) enabled on a shared workbook???<strike></strike>:confused:
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
I think they're enabled on a shared workbook, you just can't create, view, or modify them (so be sure that they function properly before sharing).
 
Upvote 0
How is it being shown in the unshared book? You can either put a button on the sheet or give the macro a shortcut key to run from the keyboard (like CTRL+SHIFT+D)

The button's code would be:
Code:
UserForm1.Show

To assign a keyboard shortcut, go to the Developer tab on the ribbon and click "Record Macro," give it a shortcut in the window that pops up, click "OK," then click "Stop Recording." This will give you a blank sub that runs from a shortcut, and the code for the sub can be UserForm1.Show .
 
Last edited:
Upvote 0
The form is run from a Commandbutton

I have created a work around

created a master data file
everytime someone opens the file on their computer it copys all the data from the master file and when they save it pastes the new info back to the master file :)

but thanks anyway
 
Upvote 0

Forum statistics

Threads
1,215,999
Messages
6,128,192
Members
449,431
Latest member
Taekwon

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