Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 24
Default merging workbooks with userforms

I would like to combine two workbooks but besides macros, they both have
userforms with the same name (eg userform1). How do I prepare the
workbooks before combining so that the userforms with the same
designation/name do not overwrite each other. I tried changing the
userform name and caption (in userform properties) but the macros that
called the userform did not like that (even if I changed the name in the
call procedure)
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,514
Default merging workbooks with userforms

I would like to combine two workbooks but besides macros, they both
have userforms with the same name (eg userform1). How do I prepare
the workbooks before combining so that the userforms with the same
designation/name do not overwrite each other. I tried changing the
userform name and caption (in userform properties) but the macros
that called the userform did not like that (even if I changed the
name in the call procedure)


Renaming the objects should be sufficient so long as you change any
code refs to the new name. (It may even be as simple as changing the
numeric suffix) You may want to do this *before* importing the code
module[s] and userform, though, so you can take advantage of the
Replace function (Ctrl+H) in the VBE.

If you *think* you've already done this and it hasn't worked then I
suspect you didn't do it right!

--
Garry

Free usenet access at http://www.eternal-september.org
Classic VB Users Regroup!
comp.lang.basic.visual.misc
microsoft.public.vb.general.discussion


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
Merging Workbooks Diane Excel Discussion (Misc queries) 1 July 5th 08 05:51 PM
userforms & workbooks Norman Jones Excel Programming 0 January 2nd 07 05:25 PM
userforms & workbooks Bob Phillips Excel Programming 0 January 2nd 07 05:24 PM
merging workbooks Ria Excel Discussion (Misc queries) 2 July 23rd 05 01:35 PM
creating workbooks(with macros and userforms) programmatically amitkr[_3_] Excel Programming 2 June 21st 04 12:10 AM


All times are GMT +1. The time now is 10:27 PM.

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

About Us

"It's about Microsoft Excel"