?
Solved

Deleting Rows/Command Buttons

Posted on 2012-04-12
2
Medium Priority
?
232 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 2000 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Introduction This Article briefly covers methods of calculating the NPV and IRR variants in Excel as well as the limitations in calculating and interpreting IRR results. Paraphrasing Richard Shockley, author of my favourite finance reference tex…
Freeze panes is an option within all variants of Excel to enable parts of a sheet to remain stationary when the cursor is in another part of the sheet. This is a very useful feature which is overlooked or under used.
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.

762 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