+ Reply to Thread
Results 1 to 2 of 2

Command Button with Macro on Different Sheet

  1. #1
    mridzuan
    Guest

    Command Button with Macro on Different Sheet

    Let say I have a macro in Sheet1 that goes like this:

    Private Sub CommandButton1_Click()

    xxxxxxx
    xxxxx
    xxxx

    End Sub

    If I put CommandButton1 in Sheet2, how can I point the button to the Macro written in Sheet1?

  2. #2
    Valued Forum Contributor
    Join Date
    06-16-2006
    Location
    Sydney, Australia
    MS-Off Ver
    2013 64bit
    Posts
    1,394
    eithe refer to the full path sheet1!CommandButton1_Click or put your code in a module sheet rather than on Sheet1

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1