+ Reply to Thread
Results 1 to 7 of 7

Command button click code

  1. #1
    Forum Contributor
    Join Date
    12-26-2006
    Posts
    189

    Command button click code

    Hi,

    Does anyone knows what is the code that makes the same as clicking, for example, in CommanButton1.
    I think is a simple code but i don't know what is it.

    Thanks

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    The CommandButton_Click merely operates when the button is clicked, what code you put in thre is up to you.
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Forum Contributor
    Join Date
    12-26-2006
    Posts
    189
    No, i think i didn't make myself clear enoughf....

    I want, by code, to make the same as clicking in a commandbutton.

  4. #4
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    Quote Originally Posted by mqdias
    No, i think i didn't make myself clear enoughf....

    I want, by code, to make the same as clicking in a commandbutton.
    But what does the button do?

    Do you mean

    Please Login or Register  to view this content.
    as
    Please Login or Register  to view this content.
    Last edited by royUK; 11-06-2007 at 12:08 PM.

  5. #5
    Forum Contributor
    Join Date
    12-26-2006
    Posts
    189
    No.

    I think i know how to do this...by a "call" funtion, i make the commandbutoon_click event happen without click in it.

    I'm trying to make an instruction so that from another private sub, i can give the instruction, as if i click in that commandbutton.

    I hope you can understand now what i'm trying to do and tell me if this is corrsct.

  6. #6
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    Do you mean

    Please Login or Register  to view this content.

  7. #7
    Forum Contributor
    Join Date
    12-26-2006
    Posts
    189
    Yes!

    Thank you RoyUK!

    I had a blank in my brain yesterdey, and because i'm not a programmer it happens this kind of things, sometimes... But thank you very much anyway!!!

+ 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