+ Reply to Thread
Results 1 to 5 of 5

Static Macro Buttons

  1. #1
    Registered User
    Join Date
    03-16-2006
    Posts
    81

    Static Macro Buttons

    I have a worksheet with 3 macro buttons. What i want to do is have the macro buttons stay in the same place when i scroll accross and down the page.

    I can't use freeze panes as there are some column headings that need to use freeze panes but they need to be able to scroll accross.

    Is there some vba code that will do this?

    Thanks

  2. #2
    Forum Expert dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003, 2007 & 2016 365
    Posts
    4,867

    Smile

    Good afternoon kingdt

    Quote Originally Posted by kingdt
    Is there some vba code that will do this?]Is there some vba code that will do this?
    No there isn't.
    Two possible options to think about.
    (1) Build a toolbar - this will "float" abouve your worksheet wherever you scroll.
    (2) Put your controls in a small userform set to modelesss (so that the user can scroll to their hearts content whilst the form is visible) and have that always on show.

    HTH

    DominicB
    Please familiarise yourself with the rules before posting. You can find them here.

  3. #3
    Registered User
    Join Date
    03-16-2006
    Posts
    81
    The toolbar option won't do but the userform sounds like a winner. I have seen these on the VBA screen but have never used them. Are they quite easy to use/how do you display them on the worksheet?

  4. #4
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Or a third option.

    Your own custom Menu

    http://www.j-walk.com/ss/excel/tips/tip53.htm

    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  5. #5
    Forum Expert dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003, 2007 & 2016 365
    Posts
    4,867

    Smile

    Hi kingdt

    Extremely easy. From the VBE just go to Insert > UserForm, and drag the controls into the blank form and resize it. Double click on any control to open the code container for that object.

    Have a look at the example userform I've attached to get you started.

    HTH

    DominicB
    Last edited by dominicb; 08-19-2008 at 04:30 AM.

+ 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