Hi - I have very little knowledge of VB coding, but am trying to set up what I believe is fairly simple. This is the code I have so far:
Sheets("exc34").Select
Range("A9").Select
Range("A9:G35").Select
Selection.Copy
Sheets("data").Select
Range("A1").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Sheets("Format").Select
Application.CutCopyMode = False
Sheets("Format").Copy After:=Sheets(3)
Sheets("Format (2)").Name
I want to insert an "IF" statement on the 2nd/3rd line that says if cell A9 is null, to stop the macro, but if it has a value to proceed with the next set of commands.
The second thing I want to do is with the last line of code - I want to rename a worksheet with the value of a specific cell. How do I format that in code?
THANK YOU IN ADVANCE!!!
Evelyn
Sheets("exc34").Select
Range("A9").Select
Range("A9:G35").Select
Selection.Copy
Sheets("data").Select
Range("A1").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Sheets("Format").Select
Application.CutCopyMode = False
Sheets("Format").Copy After:=Sheets(3)
Sheets("Format (2)").Name
I want to insert an "IF" statement on the 2nd/3rd line that says if cell A9 is null, to stop the macro, but if it has a value to proceed with the next set of commands.
The second thing I want to do is with the last line of code - I want to rename a worksheet with the value of a specific cell. How do I format that in code?
THANK YOU IN ADVANCE!!!
Evelyn