Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello,
I know that something relative to this has been posted before but I need to get a little more specific in this newsgroup in hopes that I can get some help. Please keep in mind that I am not a developer, nor an expert with Excel. I have (somewhat unsuccessfully) written an excel macro to Insert a black row while copying the formula and formatting from the row above it. The macro is assigned to a button that....when the button is hit .....there is one row added at the row of the "Active Cell". Problem: Whenever I insert a row, instead of the macro inserting a blank row containing only the formula from the row above, it will copy the data along with the formula...which is not what I'm looking for.... Here is the snippet of code that goes with my InsertRow macro: Sub InsertCopiedRow() ActiveSheet.Unprotect "****" ActiveCell.EntireRow.Copy ActiveCell.EntireRow.Insert Shift:=xlDown Application.CutCopyMode = False ActiveSheet.Protect "****" End Sub I have scoured newsgroups and MSVP Excel pages....and it seems like everyone is pointing at doing some sort of changes with the formulas AND the actual macro.....especially with some sort of OFFSET function. I am open to making this work, but I cannot figure out how to insert OFFSET properly into my formulas/macros if necessary.... Please see to get a visual of the worksheet: http://php.indiana.edu/~cawagner/macro.jpg Any help would be greatly appreciated...... Roger |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
macro for inserting one row between different data | Excel Discussion (Misc queries) | |||
Macro Inserting a formula | Excel Discussion (Misc queries) | |||
inserting row macro | Excel Discussion (Misc queries) | |||
Inserting Rows Through a Macro | Excel Programming | |||
INSERTING ROWS WITH A MACRO | Excel Programming |