Keeping buttons stationary when unhiding rows.

  • Thread starter Thread starter wilro85
  • Start date Start date
W

wilro85

Alright y'all. I have a [very cumbersome] solution to a particular
problem, but I'd like to know if there is a better one.

The setup: Basically, I have buttons that hide and show different
options further down the sheet which leads to other buttons and such.

The problem: When unhiding rows (and the buttons that corresponds) the
*button*.top = number changes depending on how many rows are shown.

On another sheet I just brute forced it and worked out every option and
put an if-then for every option. If at all possible, I'd like to avoid
doing that again.

Does anyone have any ideas in which direction I could take this?
 
Hi Wilro,

Have a play with the .Placement property of your buttons. One of those
options should do what you need.


Regards,
Vic Eldridge
 
How would you suggest using it?

1- Move and Resize with cells: My first instinct, because I want it t
be in a certain area at all times, but when I have it on this settin
the same problme remains.

2- Move with cells: This is how it was originally set when I asked.

3- Don't move or Resize: This caused an error when I toggled m
button. The error appeared on the line of code hiding the button an
said, "Unable to set the visible property of the OLEObject class.
 
Back
Top