PC Review


Reply
Thread Tools Rate Thread

The case of the disappearing macro

 
 
Paul_B
Guest
Posts: n/a
 
      13th Dec 2006
I'm having difficulty understanding how templates relate to .xls
docs. For instance, I created a new doc which very evidently is
based on my book.xlt file in the xlstart folder. Yet when I go to
File/Properties the template designation is grayed out.

Then I record a simple macro. The macro is available via
Tools/Macro/Run, but when I want to put it up on a toolbar, it's
nowhere to be found under the Customization dialog.

I must be missing something basic here.

Thanks,
p.
--
MS Office '03
 
Reply With Quote
 
 
 
 
Dave Peterson
Guest
Posts: n/a
 
      13th Dec 2006
Excel works differently than word.

Once the new workbook is created, there is no connection back to the template
file.

If you want macros available whenever you start excel, you can put them in a
workbook in your XLStart folder--most people call this file personal.xls.

If you want to give the user (you???) a way to access those macros, you could
use one of these:

(saved from a previous post)

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)

Paul_B wrote:
>
> I'm having difficulty understanding how templates relate to .xls
> docs. For instance, I created a new doc which very evidently is
> based on my book.xlt file in the xlstart folder. Yet when I go to
> File/Properties the template designation is grayed out.
>
> Then I record a simple macro. The macro is available via
> Tools/Macro/Run, but when I want to put it up on a toolbar, it's
> nowhere to be found under the Customization dialog.
>
> I must be missing something basic here.
>
> Thanks,
> p.
> --
> MS Office '03


--

Dave Peterson
 
Reply With Quote
 
Paul_B
Guest
Posts: n/a
 
      13th Dec 2006
On Tue, 12 Dec 2006 20:26:00 -0600, Dave Peterson wrote:

> Excel works differently than word.
>
> Once the new workbook is created, there is no connection back to the template
> file.
>
> If you want macros available whenever you start excel, you can put them in a
> workbook in your XLStart folder--most people call this file personal.xls.


I am seeing the macros I've created and stored in book.xlt. It's
just that they're not available for UI Customization. Yet the
template not being named under File/Properties seems to support
what you're saying.


> If you want to give the user (you???) a way to access those macros, you could
> use one of these:
>
> (saved from a previous post)
>
> 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)



Ok, I found a way to do what I want. I opened the book.xlt
template, went Customize/Macro, and dragged 'Custom Menu Item' to
the toolbar. Right clicking it allows assigning a macro. When I
saved the template the button was subsequently part of new
spreadsheets.

It also was part of existing spreadsheets, so evidently the
connection of the spreadsheet to the foundational template
persists, even though that connection is not acknowledged under
File/Properties. I still don't understand that.

Thanks,
p.

--
MS Office '03
 
Reply With Quote
 
Dave Peterson
Guest
Posts: n/a
 
      13th Dec 2006
Most people don't put macros in their book.xlt files. This template file is
usually set up to for much more mundane things--number of worksheets in the
workbook, headers/footers--but not macros.

Any workbook that is created using book.xlt as the template file would inherit
the macros. For the most part, this would be overkill. I know that I want only
one version of my macros so that I don't have to update 1000's of copies when
something changes.



Paul_B wrote:
>
> On Tue, 12 Dec 2006 20:26:00 -0600, Dave Peterson wrote:
>
> > Excel works differently than word.
> >
> > Once the new workbook is created, there is no connection back to the template
> > file.
> >
> > If you want macros available whenever you start excel, you can put them in a
> > workbook in your XLStart folder--most people call this file personal.xls.

>
> I am seeing the macros I've created and stored in book.xlt. It's
> just that they're not available for UI Customization. Yet the
> template not being named under File/Properties seems to support
> what you're saying.
>
>
> > If you want to give the user (you???) a way to access those macros, you could
> > use one of these:
> >
> > (saved from a previous post)
> >
> > 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)

>
>
> Ok, I found a way to do what I want. I opened the book.xlt
> template, went Customize/Macro, and dragged 'Custom Menu Item' to
> the toolbar. Right clicking it allows assigning a macro. When I
> saved the template the button was subsequently part of new
> spreadsheets.
>
> It also was part of existing spreadsheets, so evidently the
> connection of the spreadsheet to the foundational template
> persists, even though that connection is not acknowledged under
> File/Properties. I still don't understand that.
>
> Thanks,
> p.
>
> --
> MS Office '03


--

Dave Peterson
 
Reply With Quote
 
Dave Peterson
Guest
Posts: n/a
 
      13th Dec 2006
ps. The toolbar isn't associated with a workbook (unless you do something
special). And the macros that are assigned to that toolbar can point back to
the book.xlt template file. But when you click on an icon, excel will open
book.xlt (if it isn't open).

Most people will put these common macros in a dedicated workbook and put it in
their XLStart folder. But I'm repeating myself....

Paul_B wrote:
>
> On Tue, 12 Dec 2006 20:26:00 -0600, Dave Peterson wrote:
>
> > Excel works differently than word.
> >
> > Once the new workbook is created, there is no connection back to the template
> > file.
> >
> > If you want macros available whenever you start excel, you can put them in a
> > workbook in your XLStart folder--most people call this file personal.xls.

>
> I am seeing the macros I've created and stored in book.xlt. It's
> just that they're not available for UI Customization. Yet the
> template not being named under File/Properties seems to support
> what you're saying.
>
>
> > If you want to give the user (you???) a way to access those macros, you could
> > use one of these:
> >
> > (saved from a previous post)
> >
> > 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)

>
>
> Ok, I found a way to do what I want. I opened the book.xlt
> template, went Customize/Macro, and dragged 'Custom Menu Item' to
> the toolbar. Right clicking it allows assigning a macro. When I
> saved the template the button was subsequently part of new
> spreadsheets.
>
> It also was part of existing spreadsheets, so evidently the
> connection of the spreadsheet to the foundational template
> persists, even though that connection is not acknowledged under
> File/Properties. I still don't understand that.
>
> Thanks,
> p.
>
> --
> MS Office '03


--

Dave Peterson
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
case of the disappearing folders Valerie Lewis Windows Vista Mail 1 7th Oct 2008 07:56 AM
The case (still) of the disappearing CD/DVD Drive Rod Windows Vista General Discussion 1 15th Aug 2008 12:31 PM
The Case of the Disappearing Macro Tool Bars Lee Jeffery Microsoft Excel New Users 0 19th Oct 2004 03:06 AM
The Case of the Disappearing Macro Tool Bars Lee Jeffery Microsoft Excel New Users 2 18th Oct 2004 11:16 PM
Re: The Case of the Disappearing Server Warren Williams [MSFT] Microsoft Windows 2000 Active Directory 0 1st Sep 2003 12:16 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:28 AM.