Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 33
Default Macro to replace another macro

Is there a way to replace an existing (protected) macro-project from a sheet
by a new macro, using another macro? The idea is to replace a macro from a
sheet that is used on a remote computer. I would like to send the user a
sheet with macro that can replace the old macro by a new one.

Thanks in advance
Jan Bart
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default Macro to replace another macro

Hi Jan,

See Chip Pearson's page on programming to the VBE at:

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

However, I think that the use of the techniques described by Chip would
require that the project be unprotected.


---
Regards,
Norman


"Excelerate-nl" wrote in message
...
Is there a way to replace an existing (protected) macro-project from a
sheet
by a new macro, using another macro? The idea is to replace a macro from a
sheet that is used on a remote computer. I would like to send the user a
sheet with macro that can replace the old macro by a new one.

Thanks in advance
Jan Bart



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Macro to replace another macro

Unprotect a VBA project in code is flaky, it requires Sendkeys. Not good.

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"Excelerate-nl" wrote in message
...
Is there a way to replace an existing (protected) macro-project from a

sheet
by a new macro, using another macro? The idea is to replace a macro from a
sheet that is used on a remote computer. I would like to send the user a
sheet with macro that can replace the old macro by a new one.

Thanks in advance
Jan Bart



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
macro - replace Rohit New Users to Excel 2 March 26th 10 04:19 AM
macro to replace puiuluipui Excel Discussion (Misc queries) 4 January 7th 10 12:23 PM
Macro-replace puiuluipui Excel Discussion (Misc queries) 10 September 20th 09 12:59 PM
can I replace all with a macro? J_J Excel Programming 6 October 20th 04 10:07 PM
Macro to replace * with / [email protected] Excel Programming 4 October 6th 04 05:05 PM


All times are GMT +1. The time now is 04:24 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"