![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Board Regular
Join Date: Mar 2002
Location: Cincinnati, Ohio, USA
Posts: 6,824
|
Hi all...
In this example, I have a command button around cell K1... If the user scrolls down, is there a way for the command button to follow without using "Freeze Frames"? I want the command button to follow the scroll... Thanks, Tom |
|
|
|
|
|
#2 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: Auckland, New Zealand
Posts: 4,209
|
Quote:
You couls try putting this code in the sheets Events. Assumes name of commandbutton is commanbutton1 Try and play around as required. Private Sub Worksheet_SelectionChange(ByVal Target As Range) Dim cmdbtn Set cmdbtn = ActiveSheet.Shapes("CommandButton1") cmdbtn.Top = Target.Top - cmdbtn.Height cmdbtn.Left = Target.Left End Sub |
|
|
|
|
|
|
#3 |
|
Board Regular
Join Date: Mar 2002
Location: Cincinnati, Ohio, USA
Posts: 6,824
|
Thanks again Ivan...
I should have been able to figure that one out? Tom |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|