+ Reply to Thread
Results 1 to 4 of 4

Command Button

  1. #1
    Registered User
    Join Date
    05-04-2006
    Posts
    1

    Command Button

    How do I create a command button in a worksheet and assign a command to it using the control box tools, e.g., to sort a list of figures in a sheet?

    Thank you,

    vijay

  2. #2
    Don Guillett
    Guest

    Re: Command Button

    The macro recorder is your friend. Just use tools>macros>record when you do
    your sort manually. Then, assign to a button or a shape. I do not recommend
    command buttons.

    --
    Don Guillett
    SalesAid Software
    dguillett1@austin.rr.com
    "vijay22" <vijay22.27abnm_1146749101.1772@excelforum-nospam.com> wrote in
    message news:vijay22.27abnm_1146749101.1772@excelforum-nospam.com...
    >
    > How do I create a command button in a worksheet and assign a command to
    > it using the control box tools, e.g., to sort a list of figures in a
    > sheet?
    >
    > Thank you,
    >
    > vijay
    >
    >
    > --
    > vijay22
    > ------------------------------------------------------------------------
    > vijay22's Profile:
    > http://www.excelforum.com/member.php...o&userid=34114
    > View this thread: http://www.excelforum.com/showthread...hreadid=538853
    >




  3. #3
    Bob Phillips
    Guest

    Re: Command Button

    Control toolbox controls have events associated with them. After creating
    the control, you will be in design mode, so double-click the control, and
    that will take you to the sheet code pane with the default event (Click for
    a button) filled out. Just add your code to it.

    --
    HTH

    Bob Phillips

    (remove xxx from email address if mailing direct)

    "vijay22" <vijay22.27abnm_1146749101.1772@excelforum-nospam.com> wrote in
    message news:vijay22.27abnm_1146749101.1772@excelforum-nospam.com...
    >
    > How do I create a command button in a worksheet and assign a command to
    > it using the control box tools, e.g., to sort a list of figures in a
    > sheet?
    >
    > Thank you,
    >
    > vijay
    >
    >
    > --
    > vijay22
    > ------------------------------------------------------------------------
    > vijay22's Profile:

    http://www.excelforum.com/member.php...o&userid=34114
    > View this thread: http://www.excelforum.com/showthread...hreadid=538853
    >




  4. #4
    Dave Peterson
    Guest

    Re: Command Button

    Or use a button from the Forms toolbar and just assign the macro (in a general
    module) to that button.

    vijay22 wrote:
    >
    > How do I create a command button in a worksheet and assign a command to
    > it using the control box tools, e.g., to sort a list of figures in a
    > sheet?
    >
    > Thank you,
    >
    > vijay
    >
    > --
    > vijay22
    > ------------------------------------------------------------------------
    > vijay22's Profile: http://www.excelforum.com/member.php...o&userid=34114
    > View this thread: http://www.excelforum.com/showthread...hreadid=538853


    --

    Dave Peterson

+ 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