+ Reply to Thread
Results 1 to 8 of 8

Another command button... for zoom this time

  1. #1
    Registered User
    Join Date
    01-14-2009
    Location
    Toronto
    MS-Off Ver
    Excel 2003
    Posts
    72

    Another command button... for zoom this time

    I'd like to create a button that zooms to 45% or 100% (depending on current zoom)

    (or 2 buttons... one to make it 45 and another to make it 100)
    Last edited by torontoguy; 01-22-2009 at 10:09 AM.

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    Try

    Please Login or Register  to view this content.
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,525
    So whats the question?
    You already know how to make command buttons
    Use the macro recorder to get the code

  4. #4
    Registered User
    Join Date
    01-14-2009
    Location
    Toronto
    MS-Off Ver
    Excel 2003
    Posts
    72
    Quote Originally Posted by davesexcel View Post
    So whats the question?
    You already know how to make command buttons
    Use the macro recorder to get the code
    Alright thanks. Will remember that for next time.

    Please Login or Register  to view this content.
    seems that the CommandButton2.Caption isnt working for me :S
    Last edited by torontoguy; 01-22-2009 at 09:58 AM.

  5. #5
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,525
    Please Login or Register  to view this content.
    The periods get in the way

  6. #6
    Registered User
    Join Date
    01-14-2009
    Location
    Toronto
    MS-Off Ver
    Excel 2003
    Posts
    72
    kk, ty for that. In the other button, the periods were there however... strange.

  7. #7
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    Quote Originally Posted by torontoguy View Post
    kk, ty for that. In the other button, the periods were there however... strange.
    Because in the other example I used the key word me

  8. #8
    Registered User
    Join Date
    01-14-2009
    Location
    Toronto
    MS-Off Ver
    Excel 2003
    Posts
    72
    Ah

    Got it. I havent used VBA in years and am definitely getting rusty.

+ 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