Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
Where am I going wrong on this piece of code below What I am trying to achieve in simple terms is this: Range("A2").Select ActiveCell.FormulaR1C1 = "1" Selection.Copy Range("A2:A10000").Select ActiveSheet.Paste But I need it to size with the amount of rows the rest of the data uses My try: Range("A2").Select ActiveCell.FormulaR1C1 = "1" Selection.Copy Range("A2:A & Range("Count")").Select ActiveSheet.Paste I have already created a Range called €˜Count that adds up the rows. For example, if my data spans 100 rows, I want the formula to also reach 100 rows. I know this may not make any sense, because I could use formulas etc, but is the above possible Many thanks |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Inserting a number of rows based on the number of columns filled bytext values | Excel Programming | |||
Fill Cells with same number in three rows then skip to next number | Excel Worksheet Functions | |||
Get number of rows that data uses, including blank rows | Excel Discussion (Misc queries) | |||
Get number of rows that data takes up, including blank rows | Excel Worksheet Functions | |||
flexible paste rows function that inserts the right number of rows | Excel Discussion (Misc queries) |