LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default cannot find code

Using messages previously posted on this site I used code to create a custom
toolbar when file is opened. I now need to edit the toolbar, but I can't
locate the original code.

Here is partial content of previous message (which I also cannot locate).

From: Dave Peterson )
Subject: Separate Code and Data (Newbie Q)
View this article onlyNewsgroups: microsoft.public.excel
Date: 2004-06-28 15:05:08 PST
The code can be in any workbook. But if you have to click on a button (on
aworksheet?), then you're going to have a little trouble--since the
worksheetwith the button will be the activesheet.One way around it is to use
Tools|macro|macros..., to run the macro.Another way is to save your workbook
with the code as an addin. (In thefile|saveAs|Save as type dropdown box.)But
if your workbook is an addin, you'll need a different method to invoke
themacro.I really like John Walkenbach's MenuMaker for creating a nice access
to mymacros.http://j-walk.com/ss/excel/tips/tip53.htmAnother way is to add
another toolbar. I'd create the toolbar when the workbookwith the code opens
and delete the toolbar when you close that workbook.Here's a shell that I
keep when I want to add a custom toolbar:In a general module:Option
ExplicitSub create_menubar() Dim i As Long Dim mac_names As Variant
Dim cap_names As Variant Dim tip_text As Variant Call
remove_menubar mac_names = Array("mac1", _
"mac2", _ "mac3") cap_names =
Array("caption 1", _ "caption 2", _
"caption 3") tip_text = Array("tip 1", _
"tip 2", _ "tip 3") With
Application.CommandBars.Add .Name = "MyToolbar"
Read the rest of this message... (61 more lines)

 
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
Code to find code D. Excel Discussion (Misc queries) 2 August 12th 07 06:16 PM
Help with this Find code please [email protected] Excel Programming 2 December 18th 03 03:05 AM
VBA code 'find next' Simon[_10_] Excel Programming 3 October 29th 03 08:02 AM
Find Code Bob Phillips[_5_] Excel Programming 0 July 25th 03 01:53 PM
VBA Code to FIND Christine[_4_] Excel Programming 3 July 17th 03 08:24 PM


All times are GMT +1. The time now is 12:04 PM.

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"