View Single Post
 
Old 02-26-2017, 08:11 PM
jeffreybrown jeffreybrown is offline Windows Vista Office 2007
Expert
 
Join Date: Apr 2016
Posts: 673
jeffreybrown has a spectacular aura aboutjeffreybrown has a spectacular aura about
Default

Quote:
Originally Posted by Kannand View Post
I just came across this code in another post, that seems to work....
Still not sure exactly what you are doing as you talked about formulas and now you're talking macros. Not sure how what you posted seems to work when it doesn't even compile.

Code:
Sub update_all()
    Dim LR As Long
    With ActiveSheet
        LR = .Range("I" & Rows.Count).End(xlUp).Row
        .Range("J4:J" & LR).Value = .Range("I4:I" & LR).Value
    End With
End Sub
The code above will first look at column I to see what the last rows is then copied column I to column J.
Reply With Quote