The best way to add macro automatically to an excel doc

jbesclapez

Active Member
Joined
Feb 6, 2010
Messages
275
Dear MrExcel,

I hope you are fine. I am fine too. I am getting better and better with macros now... and thanks to your help because you are always there :biggrin:

I have a question which is not directly linked to macros but inderectly.

I have an excel file XLS that i download from a server. I created a macro for it. It is running smoothly...

However, each time i have to add a module and paste my code to make the macro run...

Is there a better or an alternative to that? something easier? Have you got any advice?
I was thinking of creating another worksheet that would be a kind of starting point where i could "inject" the other worksheet that needs to be run macro on. I hope i am clear... (english is not my native language).

Thanks to be here!
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
Did that... thanks a lot, that is a solution i heard about but i am going to use for real now .
Thanks
 
Upvote 0

Forum statistics

Threads
1,224,506
Messages
6,179,158
Members
452,892
Latest member
yadavagiri

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