Home |
Search |
Today's Posts |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
On Nov 27, 8:23*pm, OssieMac
wrote: Hi Steve, Hope I have interpreted your question correctly. Ensure that you back up your data first just in case. Note that a space and underscore at the end of a line is a line break in an otherwise single line of code. Sub CopyPasteFormula() Dim rngActiveCell As Range Dim lngRow As Long Set rngActiveCell = ActiveCell lngRow = rngActiveCell.Offset(0, -1) _ * .End(xlDown).Row rngActiveCell.Copy _ * Destination:=Range(rngActiveCell, _ * Cells(lngRow, rngActiveCell.Column)) End Sub -- Regards, OssieMac A big thank you. The code worked great. Cheers, Steve |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
MS Excel - changing reference column value based on another column | Excel Discussion (Misc queries) | |||
Excel - changing column reference based on value of other column | Excel Discussion (Misc queries) | |||
Automating to autofill column B based on column A entry | Excel Discussion (Misc queries) | |||
Autofill 1 column with changing data and changing range | Excel Programming | |||
Autofill Column D based on input in Column C | Excel Discussion (Misc queries) |