Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default Custom toolbars in templates

I have created a custom toolbar in and Excel 2003 template. The toolbar has
buttons that execute VBA subroutines. The Toolbar seems to function properly
in the template, but when a new file is created from the template, the
buttons for the subroutines produce errors. It appears that the toolbar in
the new file is trying to execute the sub in the template. How do you make
sure custom toolbar buttons execute the VBA sub in the workbook created from
a template?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Custom toolbars in templates


It's best to add the Toolbar using code. This example creates a Floating
Toolbar


+-------------------------------------------------------------------+
|Filename: ToolBarExample.xls |
|Download: http://www.thecodecage.com/forumz/attachment.php?attachmentid=38|
+-------------------------------------------------------------------+

--
royUK

Hope that helps, RoyUK
For tips & examples visit my 'web site' (http://www.excel-it.com/)
------------------------------------------------------------------------
royUK's Profile: http://www.thecodecage.com/forumz/member.php?userid=15
View this thread: http://www.thecodecage.com/forumz/sh...ad.php?t=38055

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 31
Default Custom toolbars in templates

Well;

You must be sure to refer to right workbook.
The worbook that you want to have the code executed on, must be the active
workbook.

So, set good reference to your workbooks, or work with statements like
Workbooks(XYZ).Activate


--
Best regards;
Mark Rosenkrantz
--
Spreadsheet Solutions
Uithoorn
Netherlands (the country were they live some 18 feet beyond sea level)
--
E:
W:
www.spreadsheetsolutions.nl
--


"D Riggins" wrote in message
...
I have created a custom toolbar in and Excel 2003 template. The toolbar
has
buttons that execute VBA subroutines. The Toolbar seems to function
properly
in the template, but when a new file is created from the template, the
buttons for the subroutines produce errors. It appears that the toolbar
in
the new file is trying to execute the sub in the template. How do you
make
sure custom toolbar buttons execute the VBA sub in the workbook created
from
a template?


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Custom toolbars in templates

Check your other post, too.

D Riggins wrote:

I have created a custom toolbar in and Excel 2003 template. The toolbar has
buttons that execute VBA subroutines. The Toolbar seems to function properly
in the template, but when a new file is created from the template, the
buttons for the subroutines produce errors. It appears that the toolbar in
the new file is trying to execute the sub in the template. How do you make
sure custom toolbar buttons execute the VBA sub in the workbook created from
a template?


--

Dave Peterson
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
Custom Toolbars..? Andrew[_9_] Excel Discussion (Misc queries) 2 January 20th 09 12:54 AM
Custom Toolbars Nigel RS[_2_] Excel Programming 2 August 14th 06 09:41 AM
Custom toolbars Ian Anderson Excel Discussion (Misc queries) 0 February 18th 06 08:04 PM
Custom Toolbars blackfish Excel Programming 1 December 23rd 05 09:32 PM
Custom ToolBars Julian[_3_] Excel Programming 1 January 8th 04 06:22 PM


All times are GMT +1. The time now is 07:04 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"