+ Reply to Thread
Results 1 to 5 of 5

Calling a Private SUB from SHEET

  1. #1
    Registered User
    Join Date
    01-20-2011
    Location
    Trnava, Slovakia
    MS-Off Ver
    Excel 2003
    Posts
    3

    Calling a Private SUB from SHEET

    Hello,

    I need to call this Sub CheckBox1_DblClick(ByVal Cancel As MSForms.ReturnBoolean)
    from Module.

    Normaly this is not function. "I canīt find Macro: CheckBox1_DblClick"

    Please Login or Register  to view this content.
    What I need is macro, when I click on button, BackColor of CheckBox is changed from white to red.

    Help please

  2. #2
    Registered User
    Join Date
    12-18-2010
    Location
    UK
    MS-Off Ver
    2003, 2007, 2010
    Posts
    79

    Re: Calling a Private SUB from SHEET

    Hello

    Is it at all possible to change the BackColor of a check box?
    David
    Access and Excel Developer | UK

  3. #3
    Forum Expert snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,649

    Re: Calling a Private SUB from SHEET

    Please Login or Register  to view this content.
    Last edited by snb; 01-20-2011 at 06:16 AM.



  4. #4
    Forum Expert romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365, varying versions/builds
    Posts
    12,305

    Re: Calling a Private SUB from SHEET

    If you want to run the same code from 2 places, you should put it into a routine in a normal module and then call that routine from both places.
    Remember what the dormouse said
    Feed your head

  5. #5
    Registered User
    Join Date
    01-20-2011
    Location
    Trnava, Slovakia
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Calling a Private SUB from SHEET

    Quote Originally Posted by snb View Post
    Please Login or Register  to view this content.
    I know how change color but:
    How can I add this macro to button OMG???
    Private is not visible in macro list.

    Again.
    I have Private Sub and I need assign Private sub to my BUTTON !!!

+ 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