Solved

Deleting Rows/Command Buttons

Posted on 2012-04-12
2
228 Views
Last Modified: 2012-06-27
Hi,

I have some code that moves a few things around, does some stuff and deletes some rows

I have two comman buttons on the sheet, when it deletes rows it moves these buttons around.

Is there anyway i can lock these buttons from moving?

Thanks
Seamus
0
Comment
Question by:Seamus2626
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 43

Accepted Solution

by:
Saqib Husain, Syed earned 500 total points
ID: 37837047
You can use these statements to get the values

debug.print Commandbutton1.Top
debug.print Commandbutton1.height

and you can assign these values in a worksheet_change event like this

Commandbutton1.Top = 100
Commandbutton1.height = 10

***edited***
0
 

Author Closing Comment

by:Seamus2626
ID: 37837073
Perfect, thanks ssaqibh

Seamus
0

Featured Post

Enroll in June's Course of the Month

June’s Course of the Month is now available! Experts Exchange’s Premium Members, Team Accounts, and Qualified Experts have access to a complimentary course each month as part of their membership—an extra way to sharpen your skills and increase training.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
This article describes a serious pitfall that can happen when deleting shapes using VBA.
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.

695 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question