Hey everyone,
I am super new to vba and am trying to get started to help speed things along with some study work. Firstly I am trying to create a macro that runs based on the value of a cell, and I need that macro to copy and paste data at the start of a loop. I have made the copy/paste macro by recording, now I just need the automatic start.
My code for the copy/paste is;
Sub Run()
'
' Run Macro
'
' Keyboard Shortcut: Ctrl+m
Range("s91:s103").Select
Selection.Copy
Range("G91:G103").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
End Sub
And I need it to run if cell U104 = 1.
Can anyone help? Also can someone point to a good book or notes to help get me started in doing this myself.
Cheers
Dave
I am super new to vba and am trying to get started to help speed things along with some study work. Firstly I am trying to create a macro that runs based on the value of a cell, and I need that macro to copy and paste data at the start of a loop. I have made the copy/paste macro by recording, now I just need the automatic start.
My code for the copy/paste is;
Sub Run()
'
' Run Macro
'
' Keyboard Shortcut: Ctrl+m
Range("s91:s103").Select
Selection.Copy
Range("G91:G103").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
End Sub
And I need it to run if cell U104 = 1.
Can anyone help? Also can someone point to a good book or notes to help get me started in doing this myself.
Cheers
Dave