+ Reply to Thread
Results 1 to 4 of 4

create buttons in

  1. #1
    Registered User
    Join Date
    03-29-2011
    Location
    Molde, Norway
    MS-Off Ver
    Excel 2010
    Posts
    22

    create buttons in

    I've recorded a macro where i create a button

    Please Login or Register  to view this content.
    pretty straight forward.

    I dont like to use ".select" too much, since that is recording-language. That means excel select it, and i dont need that.

    To me, it would make sense if i could use

    Please Login or Register  to view this content.
    why doesnt this add a button?

    I've tried to declare the variable, but i dont know what the variable for button is. Theres no such thing as controlbutton, commandbutton, or simply, button.

    Anyone familiar with any of this?

  2. #2
    Forum Expert Domski's Avatar
    Join Date
    12-14-2009
    Location
    A galaxy far, far away
    MS-Off Ver
    Darth Office 2010
    Posts
    3,950

    Re: create buttons in

    Maybe something like this:

    Please Login or Register  to view this content.

    Dom
    "May the fleas of a thousand camels infest the crotch of the person who screws up your day and may their arms be too short to scratch..."

    Use code tags when posting your VBA code: [code] Your code here [/code]

    Remember, saying thanks only takes a second or two. Click the little star to give some Rep if you think an answer deserves it.

  3. #3
    Registered User
    Join Date
    03-29-2011
    Location
    Molde, Norway
    MS-Off Ver
    Excel 2010
    Posts
    22

    Re: create buttons in

    I thought i had tried that as well, but obviously i hadnt.

    Since i have you here. What would you use to protect the buttons of a sheet? Do i use the protect-property of the sheet?

  4. #4
    Forum Expert Domski's Avatar
    Join Date
    12-14-2009
    Location
    A galaxy far, far away
    MS-Off Ver
    Darth Office 2010
    Posts
    3,950

    Re: create buttons in

    Yes, protecting the worksheet should do the trick as long as the ability to Edit Objects isn't enabled.

    Dom

+ 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