#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default templates

i have a template with vb macros for creating 3buttons and to do action
depending on button click. in the template i ran the button creating macro so
that those who create files must have the file in that template form. instead
of having to use the macros directly users must be able to click the buttons
in the format and accordinglt it must work. i've tried this but it gets stuck
inbetween. i would like to know
ist is possible or not, if yes, i'll solve the problem

--
Message posted via http://www.officekb.com

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

You may find life gets simpler by separating your code from the data in your
workbook template.

You may be able to create a single addin file (tell the users to open it when
they need it!) that does all the work.

But you'll have to give the users a way to run those macros...

For additions to the worksheet menu bar, I really like the way John Walkenbach
does it in his menumaker workbook:
http://j-walk.com/ss/excel/tips/tip53.htm

Here's how I do it when I want a toolbar:
http://www.contextures.com/xlToolbar02.html
(from Debra Dalgleish's site)

In xl2007, those toolbars and menu modifications will show up under the addins.

And if you use xl2007:

If you want to learn about modifying the ribbon, you can start at Ron de Bruin's
site:
http://www.rondebruin.nl/ribbon.htm
http://www.rondebruin.nl/qat.htm -- For macros for all workbooks (saved as an
addin)
or
http://www.rondebruin.nl/2007addin.htm

=========================
On the other hand, if you are using buttons from the Forms toolbar placed on a
worksheet, you may find that you can replace those buttons with commandbuttons
from the Control toolbox toolbar.

The code will have to be moved (and slightly modified???). But the code for
these control toolbox toolbar commandbuttons live in the worksheet module that
owns the commandbuttons.

Your macro assignment problem will go away.

"evelin via OfficeKB.com" wrote:

i have a template with vb macros for creating 3buttons and to do action
depending on button click. in the template i ran the button creating macro so
that those who create files must have the file in that template form. instead
of having to use the macros directly users must be able to click the buttons
in the format and accordinglt it must work. i've tried this but it gets stuck
inbetween. i would like to know
ist is possible or not, if yes, i'll solve the problem

--
Message posted via http://www.officekb.com


--

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
saved templates opening as templates 4n6DNA Excel Discussion (Misc queries) 2 August 31st 09 09:30 PM
Excel is opening templates as templates instead of as worksheets Desram Setting up and Configuration of Excel 1 January 19th 06 09:38 PM
Templates double helix Excel Worksheet Functions 1 October 26th 05 12:38 AM
Use of Templates?? sprice[_2_] Excel Programming 0 February 23rd 04 03:25 AM
TEMPLATES LAURA HARRIS Excel Programming 0 November 18th 03 04:20 PM


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