Hi,
I am new to the visual basic. I need to copy data from two Columns to another two columns. I think the two macros below should work for me (got it from google search). But how can only activate these macros when the value of cell A1=1. Please help me to write the code.
Thank you
General Macro1
Sub Macro1()
Dim i As Integer
i = 3
Do While Cells(i, 7).Value <> ""
Cells(i, 11).Value = Cells(i, 7).Value
i = i + 1
Loop
End Sub
General Macro2
Sub Macro2()
Dim k As Integer
k = 3
Do While Cells(k, 8).Value <> ""
Cells(k, 12).Value = Cells(k, 8).Value
k = k + 1
Loop
End Sub
Bookmarks