Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default 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

=---


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default 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 =---
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
Creating UDF by Class Module (Leo)? Leo Excel Discussion (Misc queries) 1 December 2nd 08 10:59 AM
CLASS MODULE & SIMPLE MODULE FARAZ QURESHI Excel Discussion (Misc queries) 1 September 7th 07 09:32 AM
Need some comments on my Utility_Move class module. jchen Excel Worksheet Functions 0 August 21st 06 07:05 PM
Userform with template class module problem Tom Ogilvy Excel Programming 0 July 17th 03 06:38 PM
how to declare a class module Kevin Excel Programming 5 July 15th 03 01:04 AM


All times are GMT +1. The time now is 09:43 PM.

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"