![]() |
![]() |
|
|||||||
| 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
Posts: 51
|
Hi,
I'm using command buttons and the data filter function in one om my workbooks. My command buttons are always moving when I use the filter function. My question is: Is it possible to place a command button in a constant position (altitude/width) from the top of the sheet? andy-s |
|
|
|
|
|
#2 |
|
Board Regular
Join Date: Feb 2002
Location: Edinburgh, Bonnie Scotland
Posts: 820
|
Don't have access to excel, but this should be along the right lines.
Add msoBarFloating to its position: Application.CommandBars.Add("Button", Position:=msoBarFloating, temporary:=True) Not used buttons for quite some time though.
__________________
George J |
|
|
|
|
|
#3 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Auckland, New Zealand
Posts: 4,209
|
Hi Andy
1) Get into Design Mode 2) Right click command button 3) Select Format control 4) Select Properties 5) Select Don't move or size with cells |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|