Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Preventing deleting button, when row deleted

Tags:

excel

vba

I 've the following problem. I wrote a macro that deletes empty rows and assigned this macro to a button. But when I run this macro, if my button is located on empty row, it is also deleted. How to prevent button from being deleted? Thanks in advance.

like image 784
Eric Klaus Avatar asked Dec 20 '22 22:12

Eric Klaus


1 Answers

  1. Right click on the button
  2. Click on Format Control
  3. Under the properties tab, select Don't move or size with cells and you are done.

enter image description here

like image 135
Siddharth Rout Avatar answered Dec 30 '22 10:12

Siddharth Rout