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 CommandButton Link to Macro

How do you link a Macro to a CommandButton.

Right now when I click on the button in design mode it references a
macro on the worksheet I am working on and it is trying to reference
another Macro. The macro is stored in a different file in another
directory. What is the file path to reference a Macro somewhere else?

So far my code in the commandbutton looks like this, but it doesn't do
anything when I click the button. I am missing some part of the path
to find the Macro. Can anyone help me?

Private Sub File_Updated_Click()

Public Sub Fileupdate()

End Sub

Thank you for your help!
Kristina

 
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
Link embedded chart to a commandbutton? Bob Charts and Charting in Excel 7 June 19th 09 02:01 PM
how do i make a commandbutton run a macro?? Shax New Users to Excel 7 June 7th 06 05:16 PM
Commandbutton in UserForm to run Macro salihyil[_4_] Excel Programming 2 February 16th 04 05:36 PM
Macro won't run from CommandButton Nathan Gutman Excel Programming 3 December 24th 03 07:59 PM
Code runs different in a commandbutton than a macro why? Neal Miller Excel Programming 7 December 7th 03 02:41 AM


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