How to share the macro

NewExcelBoy

New Member
Joined
Jan 6, 2014
Messages
17
Hi all,

How do I share a macro(s) to other users so they can use it? Each user has different location because we are working remotely.

Thank you all
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.

goesr

Well-known Member
Joined
Nov 15, 2013
Messages
672
Hi NewExcelBoy - Welcome to the forum. There are many ways to share macros. (a few are listed below)

1. Copy the macro code and send everyone the macro and have them add it to a module in the VBA editor (opened with Alt + F11)
From the opening Sub to the closing End Sub (See code below)
2. If you have a shared network, you can create a shared .xlsm file and include the macro(s) in that file that everyone can access.
3. You could use something like Dropbox.com to share a .xlsm file containing macro(s)

Hope this helped,

Happy Excelling :),

goesr



Code:
Sub NewExcelBoy_Share_Me()
'This is a sub that can be shared
    Cells(1, 1).Select
    Cells(1, 1).value = "Shared Macro"
    
    MsgBox ("I shared a Macro!!")
End Sub
 

Forum statistics

Threads
1,137,300
Messages
5,680,699
Members
419,928
Latest member
dolincasting

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
Top