Userform with template class module problem
to add, you might want to check if the workbook has a path
if thisworkbook.Path < "" then ' this is not a new workbook so jump out End If 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 =--- |
Userform with template class module problem
Tom:
When I insert a template will an auto_open event in that workbook be launched? I thought that it would only launch on opening the workbook. Regards, Jim C. On Thu, 17 Jul 2003 13:39:09 -0400, "Tom Ogilvy" wrote: to add, you might want to check if the workbook has a path if thisworkbook.Path < "" then ' this is not a new workbook so jump out End If 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 =--- ----== 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 04:22 PM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com