ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Userform with template class module problem (https://www.excelbanter.com/excel-programming/271936-re-userform-template-class-module-problem.html)

Tom Ogilvy

Userform with template class module problem
 
Perhaps the workbook_Open event in the thisworkbook module.

Regards,
Tom Ogilvy

"Jim C." wrote in message
...
Tom:

Thanks for your suggestion, I went with the export / import idea.

I would like the userform to load as soon as the new instance of the
template is formed but so far all I can seem to do is wait for the
user to change something on the sheet ( using the change event ) or
activating the sheet ( activate event ).

Can you suggest a way to trigger the userform export / import similar
to the "new event" in word templates?

Regards,

Jim C.


On Fri, 11 Jul 2003 14:34:35 -0400, "Tom Ogilvy"
wrote:

Sure, but you could have you code export the one in personal.xls and

import
it into the new workbook.

Chip Pearson has a page on programming the VBE
http://www.cpearson.com/excel/vbe.htm



John Walkenbach has a sample for creating a userform on the fly with

code.
http://j-walk.com/ss/excel/tips/tip76.htm
Creating a UserForm Programmatically

Regards,
Tom Ogilvy




----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet

News==----
http://www.newsfeed.com The #1 Newsgroup Service in the World! 100,000

Newsgroups
---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption

=---




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

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com