+ Reply to Thread
Results 1 to 2 of 2

Help Creating a Button through a Macro

  1. #1
    Registered User
    Join Date
    05-28-2005
    Location
    WI, USA
    MS-Off Ver
    Office XP/2003
    Posts
    95

    Help Creating a Button through a Macro

    Hi,

    I have a macro setup to create a new worksheet when a button is clicked. In that macro it creates a CommandButton on the new sheet. The code works fine to rename the button itself, but not to change the caption of the button. Also, I know the last two lines should do the same thing, but neither of them is working. =( Can anyone help?

    Please Login or Register  to view this content.

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258
    Hello Caligula,

    When working with OLE (ActiveX) components, what seems intuitive isn't. The object is embedded (drawn) and then linked via COM to the object class. To change the caption use this code...
    Please Login or Register  to view this content.
    Sincerely,
    Leith Ross
    Last edited by Leith Ross; 07-31-2007 at 06:22 PM.

+ 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