armchairandy
Board Regular
- Joined
- Mar 27, 2012
- Messages
- 53
I am attempting to reduce the amount of formulas in my workbook. So I only want to copy enough formula for the individual sheet. I have a cell A1 that contains a number, what I want to do is copy/drag the formula in B2 to the right by the number held in A1. ie if A1 = 12, then it would copy/drag the formula in B2 12 times & then stop.
I would also need to know how to copy formula downwards based on the range above.
I am currently using:
Range("L15").Select
Range("L15:AJ15").AutoFill Destination:=Range("L15:AJ" & Worksheets("SCData").Cells(Rows.Count, "A").End(xlUp).Row + 28)
Counts the rows in SCData that has data in it & copies the formulas between L15:AJ15 downwards by that amount. Although this accounts for the bulk of data I am trying to use - the range is pre-determined & therefore has more formula incl. than is necessary. Each worksheet has this and the amount of formula required differs each time
If I could use the range from the first problem for the autofill in the second my workbook would be more manageable.
Finally, the workbook is for use by multiple users that do not have any excel skills, and the workbook is protected to stop accidental deletions of formula
Any help really appreciated
Andrew
I would also need to know how to copy formula downwards based on the range above.
I am currently using:
Range("L15").Select
Range("L15:AJ15").AutoFill Destination:=Range("L15:AJ" & Worksheets("SCData").Cells(Rows.Count, "A").End(xlUp).Row + 28)
Counts the rows in SCData that has data in it & copies the formulas between L15:AJ15 downwards by that amount. Although this accounts for the bulk of data I am trying to use - the range is pre-determined & therefore has more formula incl. than is necessary. Each worksheet has this and the amount of formula required differs each time
If I could use the range from the first problem for the autofill in the second my workbook would be more manageable.
Finally, the workbook is for use by multiple users that do not have any excel skills, and the workbook is protected to stop accidental deletions of formula
Any help really appreciated
Andrew