Hi All,
I have some coding that allows me to copy data from one sheet to another, but i want the same coding to look at Cell M4 and display a Message box if Cell M4 contains the wording "Select Variant"
Is this possible and where would it need to be within the coding (shown below sorry for long coding)
Sub ADDRECORD()
Dim src As Worksheet
Dim dst As Worksheet
Dim rw As Long
Application.ScreenUpdating = False
' Set source and destination sheets
Set src = Sheets("TOUCH SCREEN")
Set dst = Sheets("RAW DATA")
' Find next available row on destination sheet
rw = dst.Cells(Rows.count, "A").End(xlUp).Row + 1
' Populate values on destination sheet
dst.Cells(rw, "A") = src.Range("A101")
dst.Cells(rw, "B") = src.Range("B101")
Application.ScreenUpdating = True
End Sub
Regards
I have some coding that allows me to copy data from one sheet to another, but i want the same coding to look at Cell M4 and display a Message box if Cell M4 contains the wording "Select Variant"
Is this possible and where would it need to be within the coding (shown below sorry for long coding)
Sub ADDRECORD()
Dim src As Worksheet
Dim dst As Worksheet
Dim rw As Long
Application.ScreenUpdating = False
' Set source and destination sheets
Set src = Sheets("TOUCH SCREEN")
Set dst = Sheets("RAW DATA")
' Find next available row on destination sheet
rw = dst.Cells(Rows.count, "A").End(xlUp).Row + 1
' Populate values on destination sheet
dst.Cells(rw, "A") = src.Range("A101")
dst.Cells(rw, "B") = src.Range("B101")
Application.ScreenUpdating = True
End Sub
Regards