+ Reply to Thread
Results 1 to 12 of 12

Button Background Picture to Fill Button Background

  1. #1
    Forum Contributor
    Join Date
    06-21-2010
    Location
    -
    MS-Off Ver
    Excel 2010
    Posts
    1,211

    Button Background Picture to Fill Button Background

    Is there any way of getting a 'background picture' selected through the buttons properties to actually fill the button area completely rather than leaving a border around the edge of the button (which is really silly)?

    Many thanks.

  2. #2
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: Button Background Picture to Fill Button Background

    No, not that I am aware of. (It may well be possible by using API calls to draw over the top of the button if you are really determined).
    Remember what the dormouse said
    Feed your head

  3. #3
    Forum Contributor
    Join Date
    06-21-2010
    Location
    -
    MS-Off Ver
    Excel 2010
    Posts
    1,211

    Re: Button Background Picture to Fill Button Background

    Um, wouldn't know where to even start with that...

    Thanks for your reply to my question. Seems a really stupid implementation of this feature to me or am I missing something?

  4. #4
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: Button Background Picture to Fill Button Background

    It is what it is. Userforms are generally fairly basic in terms of appearance, but then functionality is more important anyway.

  5. #5
    Forum Contributor
    Join Date
    06-21-2010
    Location
    -
    MS-Off Ver
    Excel 2010
    Posts
    1,211

    Re: Button Background Picture to Fill Button Background

    I guess, but no reason they couldn't consider the graphic aspect as well!

  6. #6
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: Button Background Picture to Fill Button Background

    Very good reason - they want you to move to .Net and Windows Forms and all that good stuff.

  7. #7
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229

    Re: Button Background Picture to Fill Button Background

    I'm not sure if you are working on a userform or on a worksheet, but Image controls have a click event and an Image shape could be assigned to a macro.

    I'm suggesting you use a control other than a CommandButton or a Forms Button (or an ActiveX Button).
    _
    ...How to Cross-post politely...
    ..Wrap code by selecting the code and clicking the # or read this. Thank you.

  8. #8
    Forum Contributor
    Join Date
    06-21-2010
    Location
    -
    MS-Off Ver
    Excel 2010
    Posts
    1,211

    Re: Button Background Picture to Fill Button Background

    Hi Mike

    I'm currently using a 'Toggle Button' on a worksheet because I need to use the True and False States to show/Hide a map. It makes no difference what kind of button, in fact I'd much rather use a Shape than a button, but these don't have True/False states (as far as I know).

    This is my code thus far... Happy to look at other solutions if anyone knows how this can be done using a standard shape, from the Insert/Shapes Menu?

    Please Login or Register  to view this content.

  9. #9
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229

    Re: Button Background Picture to Fill Button Background

    You could use the text of a shape to store its "value"
    Please Login or Register  to view this content.

  10. #10
    Forum Contributor
    Join Date
    06-21-2010
    Location
    -
    MS-Off Ver
    Excel 2010
    Posts
    1,211

    Re: Button Background Picture to Fill Button Background

    Hi Mike

    I couldn't get that to work for some reason...

  11. #11
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229

    Re: Button Background Picture to Fill Button Background

    I tested that routine by creating a new workbook, adding a Rectangle to the sheet (not SmartArt) and assigning that macro to the Rectangle.

  12. #12
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229

    Re: Button Background Picture to Fill Button Background

    Here's a sheet with a button.
    Attached Files Attached Files

+ 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