Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations IDS on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Macro Buttons Outside of Workspace

Status
Not open for further replies.

RonMB

Mechanical
Oct 7, 2002
24
I seem to remember seeing an Excel spreadsheet where there were macro buttons to the left of the row numbers. I have now tried to find such a setting or function without success. Anyone familiar with such things?
 
Replies continue below

Recommended for you

This may be what you're looking for.

Make your own toolbar: Tools>Customize, Select New from the Toolbar tab.

Add your macros to that toolbar.

Drag it to the left (or right, top or bottom) until it attaches itself to that side.

Patrick
 
Are you talking about the group and outline function?
 
Actually, the menu bar and toolbars (standard or customized) can be placed anywhere the user chooses to locate them. note that at the far left end of the bar is a single vertical line (slightly shaded), simply select + hold and locate the bar or menu to desired location (i.e. top, bottom, LHS, RHS, floating, etc.).
-pmover
 
Thanks for all input.

The Plawrence approach works best so far although I can only get the text laid out to be read from the left side of the screen. While I see you can create a small icon by editing, I have not found a way to either format the text or use a larger graphic.

To melone: I can't find anything about group or outline functions.

 
is response to editing the text or larger graphic button.

the size of tool button can only be one of two sizes. There is an option button within the toolbars menu system that allows the user to use either regular size button or larger size buttons.

with regards to the text, the adjustments can be made via right clicking the desktop, choosing properties, selecting appearance tab and making adjustments there. not from within excel itself.

a suggestion is to activate tool tips, that way a nice little pop-up meessage show up when the mouse is within the toolbutton border.
-pmover
 
You can also do this programmatically:
Add a toolbar button in Excel

Go to your Excel VB Editor and double click on the module "ThisWorkbook". The following code will make a button and bound it to a macro everytime. The button and toolbar will be temporary. If you want it to be permanent, change the boolean to False.
Code:
Private Sub Workbook_Open()
  'Add
  Application.CommandBars.Add(Name:="Custom 1", Position:=msoBarTop, Temporary:=True).Visible = True

  Application.CommandBars("Custom 1").Controls.Add Type:=msoControlButton, Id:=2950, Before:=1

  Application.CommandBars("Custom 1").Controls.Item(1).OnAction = "Macro1"
End Sub

Private Sub Workbook_Close()
  'Delete
  'Application.CommandBars("Custom 1").Delete
End Sub
DimensionalSolutions@Core.com
While I welcome e-mail messages, please post all thread activity in these forums for the benefit of all members.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor