+ Reply to Thread
Results 1 to 4 of 4

Call a commandbutton click event from a module

  1. #1
    Forum Contributor
    Join Date
    02-20-2009
    Location
    bristol
    MS-Off Ver
    Excel 2003
    Posts
    882

    Call a commandbutton click event from a module

    Hi ALl

    I have a module and I want to call commandbutton1_click event of a userform from a module. The following code give me error:

    Please Login or Register  to view this content.
    ANy help will be much appreciated.

    Thanks

  2. #2
    Forum Expert dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003, 2007 & 2016 365
    Posts
    4,867

    Re: Call a commandbutton click event from a module

    Good afternoon aman1234

    You're halfway there making your CloseMe sub public - but it's the wrong one

    Userform Code:
    Please Login or Register  to view this content.
    Module Code:
    Please Login or Register  to view this content.
    HTH

    DominicB

  3. #3
    Forum Contributor
    Join Date
    02-20-2009
    Location
    bristol
    MS-Off Ver
    Excel 2003
    Posts
    882

    Re: Call a commandbutton click event from a module

    I tried it but it says method or data memmebr not found.

  4. #4
    Forum Expert dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003, 2007 & 2016 365
    Posts
    4,867

    Re: Call a commandbutton click event from a module

    Hi aman1234

    This seems to work fine on Excel 2007.

    HTH

    DominicB

    Edit : Your profile says you are using Excel 2003. Do I need to resave in another format, or do you need to update your profile?
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Call userform control click event indirectly
    By ryan.wherry in forum Excel Programming / VBA / Macros
    Replies: 18
    Last Post: 03-26-2015, 11:42 AM
  2. Call procedure when I click any commandbutton
    By Macdave_19 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-22-2012, 04:33 AM
  3. On the click event of commandbutton open another excel workbook
    By aman1234 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-14-2010, 06:28 AM
  4. Call button click event from a button on anther sheet
    By ajaykgarg in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 03-25-2010, 09:27 AM
  5. [SOLVED] call a function on control click event
    By tkraju via OfficeKB.com in forum Excel General
    Replies: 4
    Last Post: 08-23-2006, 12:55 AM

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