Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to dk.edb.programpakker.ms-office,microsoft.public.excel,microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default how to program a button...

Howdy !

Is it possible to have a button on a menubar calling a function in an .xla?

Rgds, Henrik


  #2   Report Post  
Posted to dk.edb.programpakker.ms-office,microsoft.public.excel,microsoft.public.excel.programming
external usenet poster
 
Posts: 1,120
Default how to program a button...

Yes, just create it within the workbook_Open event of the xla.

--
HTH

Bob Phillips

"Verner Jensen, Ålborg" wrote in message
. dk...
Howdy !

Is it possible to have a button on a menubar calling a function in an

..xla?

Rgds, Henrik




  #3   Report Post  
Posted to dk.edb.programpakker.ms-office,microsoft.public.excel,microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default how to program a button...

If you assign the onaction property of the button to the code in the xla.
It can also be done manually although you would not be able to select it
from the choices in the dialog box - you could still type in the reference.

--
Regards,
Tom Ogilvy

"Verner Jensen, Ålborg" wrote in message
. dk...
Howdy !

Is it possible to have a button on a menubar calling a function in an

..xla?

Rgds, Henrik




  #4   Report Post  
Posted to dk.edb.programpakker.ms-office,microsoft.public.excel,microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default how to program a button...

This file might be a help:

It contains a workbook that shows how to create an interactive add-in
controlled by a toolbar.
The toolbar is created when the add-in is loaded, and deleted when the
add-in is closed.

http://www.bygsoftware.com/examples/excel_addin.htm
The code is open and commented.


--
Regards
-
Andy Wiggins FCCA
www.BygSoftware.com
Excel, Access and VBA Consultancy


"Verner Jensen, Ålborg" wrote in message
. dk...
Howdy !

Is it possible to have a button on a menubar calling a function in an

..xla?

Rgds, Henrik




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
how to create a macro button to exit a program PACEBIT0708 Excel Worksheet Functions 1 April 23rd 08 04:43 PM
program tab button Bhiravi Excel Discussion (Misc queries) 1 December 21st 06 02:39 PM
program tab button Bhiravi Excel Worksheet Functions 1 December 21st 06 02:39 PM
Program button appearance Bob M. Setting up and Configuration of Excel 3 May 7th 05 01:14 AM
running a command button from a program Pete at Sappi Fine Paper[_2_] Excel Programming 7 May 5th 05 03:08 PM


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