Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Copying template to workbook but user form does not copy?

I have a toolbar button that when clicked will import a template.

Code:
Sheets("Sheet1").Select
Sheets.Add Type: = "L:\SALES\TEMPLATE\MyTemplate.xlt"

This works fine. The problem is that the template has a VBA coded UserForm
that is supposed to run everytime a certain cell is selected. It works just
fine when I have the template open. But when I import the template using the
button, the UserForm does not come with the template.

How can I get the UserForm to stay with the template?

TIA
Alan



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
User form in copy of original file Jennifer Excel Programming 3 April 17th 05 05:56 PM
copy sheets selected on user form Tom Ogilvy Excel Programming 0 August 19th 04 06:15 PM
copy sheets selected on user form Ron de Bruin Excel Programming 0 August 19th 04 06:03 PM
User Form Template??? novicevbaer[_4_] Excel Programming 1 August 18th 04 08:17 AM
Copy from User form to Sheet macro tas5tas Excel Programming 1 January 13th 04 03:54 AM


All times are GMT +1. The time now is 09:35 AM.

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"