PC Review


Reply
Thread Tools Rate Thread

Copying Worksheets with macros

 
 
WLMPilot
Guest
Posts: n/a
 
      20th Apr 2008
I am setting up a template (worksheet) for someone to copy as needed.
Attached to this template are macros and a userform.

I am setting up this template to use a userform to enter checking account
transactions and each worksheet will be a check register.

My question is this: Do macros and userforms copy along with the worksheet
that is being copied?

Thanks,
Les
 
Reply With Quote
 
 
 
 
Jacques ALARDET
Guest
Posts: n/a
 
      20th Apr 2008
Hello,

1. If your macro is stocked in the module of the Worksheet : The code is
copied of the same time workshheet
2. If your macro is stocked in other module : You copied the code by
Export-Import
3. If your macro is stocked in Thisworkbook : the export-Import create a
class module
4. If your macro is stocked in Userform : I have not response

But I recommande the stockage of macro in a workbook independant out of the
workbook user : In this cas no besoin to copy the code


--
J a c q u e s

"WLMPilot" <(E-Mail Removed)> a écrit dans le message de
news:1F6CDA8F-CD87-4281-89CF-(E-Mail Removed)...
>I am setting up a template (worksheet) for someone to copy as needed.
> Attached to this template are macros and a userform.
>
> I am setting up this template to use a userform to enter checking account
> transactions and each worksheet will be a check register.
>
> My question is this: Do macros and userforms copy along with the
> worksheet
> that is being copied?
>
> Thanks,
> Les
>


 
Reply With Quote
 
Barb Reinhardt
Guest
Posts: n/a
 
      20th Apr 2008
If you are copying the worksheets with code, you can add some more to copy
the needed worksheet modules as well.

This should get you started.

http://www.cpearson.com/excel/vbe.aspx

Just make sure you have a backup copy of your file before you start.
--
HTH,
Barb Reinhardt



"WLMPilot" wrote:

> I am setting up a template (worksheet) for someone to copy as needed.
> Attached to this template are macros and a userform.
>
> I am setting up this template to use a userform to enter checking account
> transactions and each worksheet will be a check register.
>
> My question is this: Do macros and userforms copy along with the worksheet
> that is being copied?
>
> Thanks,
> Les

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
RE: Macros - copying macros from one computer to another =?Utf-8?B?VFQ=?= Microsoft Excel Misc 2 14th Dec 2006 03:24 AM
RE: Macros - copying macros from one computer to another =?Utf-8?B?VFQ=?= Microsoft Excel Misc 0 14th Dec 2006 02:26 AM
Re: Macros - copying macros from one computer to another Gord Dibben Microsoft Excel Misc 2 8th Dec 2006 09:36 PM
Macros and worksheets =?Utf-8?B?Y2ludmlj?= Microsoft Excel Misc 2 14th Mar 2006 04:19 PM
Re: Macros for worksheets Ron de Bruin Microsoft Excel Programming 1 24th Jun 2004 05:02 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:33 AM.