Floating command button

newboss

New Member
Joined
Apr 28, 2009
Messages
43
HOW TO SET FLOATING COMMAND BUTTONS in sheet which fixed at top or bottom of the screen not fixed at cells

means while scrolling a screen it should look like fix at bottom of the screen
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
I'm not sure about 2007, but before that version, you could create a custom Toolbar and put your button on it.
 
Upvote 0
One of the problems with this is that there is no OnScroll event.
Putting something like this in a sheet's event code might work for you.
Code:
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
    With ActiveWindow.VisibleRange
        ActiveSheet.Shapes("CommandButton1").Top = .Top
        ActiveSheet.Shapes("CommandButton1").Left = .Left
    End With
End Sub
 
Upvote 0
Would this work for a Quad Arrow Callout? I attempted by replacing the CommandButton with Quad Arrow Callout 1, but no dice. Suggestions?
 
Last edited:
Upvote 0
I found the simplest solution to be to create an extra row at the top of the worksheet and put command buttons there. Include that row in Freeze Panes and the buttons are always there. I know that's on the top, not bottom of the screen, but it works nicely.
 
Upvote 0

Forum statistics

Threads
1,216,086
Messages
6,128,736
Members
449,466
Latest member
Peter Juhnke

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top