Basic Beginners Query

G

Guest

Guest
After copying a macro and then pasting it into the visual basic editor, how do i then save it so that when i go to macros and attempt to run it it appears.?

Sorry for being very dense!
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
On 2002-03-08 10:14, Anonymous wrote:

After copying a macro and then pasting it into the visual basic editor, how do i then save it so that when i go to macros and attempt to run it it appears.?

Sorry for being very dense!

No need to apologize, we've all been there. After copying your macro you need to select the workbook where you want to keep you macro. In your Project Explorer window (usually the top left window with the title - "Project - VBA Project") highlight the workbook where you want to keep your macro. Then, from the main menu, select Insert|Module. Your window on the right hand side will then have a blank module, and you'll notice that you have a module folder under your file in the Project Explorer window. Paste your macro in the module window and then save your file (File|Save).

Is this explanation sufficient?
 
Upvote 0
should i then be able to open this thro' tools>macro>macros, because that's what i want to do but still don't seem to be having any luck?!
 
Upvote 0
On 2002-03-08 10:42, Anonymous wrote:
should i then be able to open this thro' tools>macro>macros, because that's what i want to do but still don't seem to be having any luck?!

Yes. If you need any further help just let me know.
 
Upvote 0
Sorry Barrie, still no joy - after selecting the workbook (VBAProject newtest.xls), i then inserted the module and pasted my macro.
Then saved - file>save newtest.xls, it appeared to save, but i still can't find the macro when i want to select it as discussed above.
 
Upvote 0
On 2002-03-08 10:58, Anonymous wrote:
Sorry Barrie, still no joy - after selecting the workbook (VBAProject newtest.xls), i then inserted the module and pasted my macro.
Then saved - file>save newtest.xls, it appeared to save, but i still can't find the macro when i want to select it as discussed above.
Can you e-mail your file to me so I can actually see it (taking out any sensitive information)?
 
Upvote 0
Barrie

I've cracked it, I couldn't find it because it was a macro that opened up a message prompt only when the file is opened - sorry mate but thanks for your time.
I'm having a blonde day!
 
Upvote 0

Forum statistics

Threads
1,214,386
Messages
6,119,216
Members
448,876
Latest member
Solitario

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