+ Reply to Thread
Results 1 to 7 of 7

Floating button

  1. #1
    Forum Contributor
    Join Date
    05-30-2015
    Location
    Dubai
    MS-Off Ver
    Excel 2016 Mac & PC & 365
    Posts
    633

    Floating button

    Hi,

    Can someone help please with code that will keep my macro button at a given distance from the left side of the worksheet when scrolling left and right

    Thanks
    Kevin

  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

    Re: Floating button

    Good morning Excelski

    Something like this should work, just be aware that you will lose your Undo functionality. There's no simple way around this so choose whether you want Undo or a floating Command Button.

    Please Login or Register  to view this content.
    HTH

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

  3. #3
    Forum Contributor
    Join Date
    05-30-2015
    Location
    Dubai
    MS-Off Ver
    Excel 2016 Mac & PC & 365
    Posts
    633

    Re: Floating button

    Good morning Dominic,

    Many thanks, works great.

    Can it be adapted to use an icon as the button

    Thanks
    Kevin

  4. #4
    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

    Re: Floating button

    Hi Excelski

    What do you mean by an icon? You want to place a picture inside the button?

    If so, then you can do that by setting the Picture property in the Command Button Properties window. However, be aware that all ActiveX controls use a very limited colour palette so the chances are, the images won't look great.

    HTH

    DominicB

  5. #5
    Forum Contributor
    Join Date
    05-30-2015
    Location
    Dubai
    MS-Off Ver
    Excel 2016 Mac & PC & 365
    Posts
    633

    Re: Floating button

    I wanted to use one of the built-in icons in 365.....I've worked out how to insert a picture but not an icon

  6. #6
    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

    Re: Floating button

    Hi Excelski

    I think you're just going to have to grab the icon as a bitmap to place it onto the Command Button as an image.

    HTH

    DominicB

  7. #7
    Forum Contributor
    Join Date
    05-30-2015
    Location
    Dubai
    MS-Off Ver
    Excel 2016 Mac & PC & 365
    Posts
    633

    Re: Floating button

    Thanks for your help Dominic

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Floating Button
    By Troy73 in forum Excel Programming / VBA / Macros
    Replies: 21
    Last Post: 12-15-2017, 05:57 AM
  2. Floating Command Button
    By tapsmiled in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-27-2014, 08:36 PM
  3. Floating command button
    By Pat in forum Excel General
    Replies: 5
    Last Post: 08-31-2012, 03:49 PM
  4. Floating Command Button
    By GuruWannaB in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-07-2009, 04:50 PM
  5. Floating Button - Possible?
    By DCSwearingen in forum Excel General
    Replies: 1
    Last Post: 02-20-2007, 11:07 AM
  6. Floating Command button
    By kev_06 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-13-2006, 06:15 PM
  7. [SOLVED] Create floating button based on button click in menu
    By ExcelMonkey in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-12-2005, 02:05 PM

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