+ Reply to Thread
Results 1 to 3 of 3

Create a command button with code with a command button

  1. #1
    Registered User
    Join Date
    03-29-2013
    Location
    helsinki
    MS-Off Ver
    Excel 2010
    Posts
    2

    Create a command button with code with a command button

    I´m new to VBA so...
    I have a command button1 in sheet1. It asks some values and names and creates a new sheet with given name showing those values and names.
    Now, I want that when I click command button1 it will also create a new command button under those values to the new sheet. I have founded code that will create the button where I want, but I also want the button to have similar code than command button1.
    How to create a new button with code that can be run right after it is created?

  2. #2
    Valued Forum Contributor
    Join Date
    02-12-2011
    Location
    The Netherlands
    MS-Off Ver
    365
    Posts
    818

    Re: Create a command button with code with a command button

    Try it once,

    Please Login or Register  to view this content.
    Kind regards, Harry.

  3. #3
    Registered User
    Join Date
    03-29-2013
    Location
    helsinki
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Create a command button with code with a command button

    yes... thank you very much. works like a charm.

+ 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