thepharcyde
Board Regular
- Joined
- Aug 16, 2005
- Messages
- 107
Right, compiling a basic macro.
Basically part of the procedure, copies a cell and then pastes it into A1 for example. Data to the right is present, so when you autofill down it fills it to the last visable data in column B all very good manually but......
When I write a macro to do this, when you fill down, the macro automactically populates to the fixed autofill when I wrote the macro data was present in B1:B12 for example using the autofill has worked no probs. But if I run the macro again and the spreadsheet has data in B1:B13, it only autofills to B12 as per the macro.
Is there anyway of changing the below so it fills as per whats on the sheet and not per fixed cells in the macro?:
Selection.AutoFill Destination:=Range("C18:C43")
Thank you
Basically part of the procedure, copies a cell and then pastes it into A1 for example. Data to the right is present, so when you autofill down it fills it to the last visable data in column B all very good manually but......
When I write a macro to do this, when you fill down, the macro automactically populates to the fixed autofill when I wrote the macro data was present in B1:B12 for example using the autofill has worked no probs. But if I run the macro again and the spreadsheet has data in B1:B13, it only autofills to B12 as per the macro.
Is there anyway of changing the below so it fills as per whats on the sheet and not per fixed cells in the macro?:
Selection.AutoFill Destination:=Range("C18:C43")
Thank you