Creating a add row and delete row macro
-
I am a general contractor and I usefor estimating. I want to clean up my bid sheets. I have created a spreadsheet and would like to have the ability to add and delete a row with the click of a macro right beside the category. I have a bout 5 different rows for separate categories and I put an add row and delete row for each category. Each row that I add must contain certain formulas that are standard for every line item. The problem I am having is that because form controls are not linked to cells, whenever I click the first form to add a row it pushes all the cells down but my macros all stay stationary and they dont follow the category down the spreadsheet. Ho can I keep the macros to stay in a certain cell and follow down the page when a new row is created?
-
Answer:
Nelson if you write click on the control and choose format control from the popup menu, then in the properties tab you can choose move and size with cells. When I do this an then insert a row, the buttons move with the cells (both activeX commandbuttons andbuttons (on forms toolbar in xl2003 and earlier). However, this is the default setting forbuttons - so I am not sure why you are having problems unless you changed them. If you still have problems, you could always run a macro to repostion the buttons over their respective cells (or include that code it in the code that you run to insert the rows ).
Miningco.com Visit the source
Related Q & A:
- How to find out if it is possible to contruct a binary matrix with given row and column sums?Best solution by Mathematics
- How to delete row from text file?Best solution by Stack Overflow
- Is there a way of creating a interactive word document?Best solution by pcworld.com
- How to start creating a php script, that will be installed on many servers?Best solution by Stack Overflow
- Where can I find good a tutorial for creating a simple flash movie using Adobe Flash CS4?Best solution by Graphic Design
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.