Hi, basically I have been asked to build a spreadsheet for a simple ICT project, which involves customers entering their information into an assigned cell, then a macro will be used to cut this information and place it in the next available cell, in the correct column on a separate worksheet. I'll be the first to say that i'm terrible at recording macros in EXCEL and if anybody could correct this code it will be hugely appreciated.
Basically all of the cells which have a 7 following them, for example "Range("F7").Select" need to be placed in the next available free space in column F, etc.
Thanks, Tom
Code:
Sub newcustomer()
'
' newcustomer Macro
'
'
Range("G9").Select
Selection.Copy
Sheets("Customer").Select
Range("F7").Select
ActiveSheet.Paste
Sheets("New Member").Select
Application.CutCopyMode = False
Selection.ClearContents
Range("K9").Select
Selection.Copy
Sheets("Customer").Select
Range("G7").Select
ActiveSheet.Paste
Sheets("New Member").Select
Application.CutCopyMode = False
Selection.ClearContents
Range("G12").Select
Selection.Copy
Sheets("Customer").Select
Range("C7").Select
ActiveSheet.Paste
Sheets("New Member").Select
Application.CutCopyMode = False
Selection.ClearContents
Range("G13").Select
Selection.Copy
Sheets("Customer").Select
Range("D7").Select
ActiveSheet.Paste
Sheets("New Member").Select
Application.CutCopyMode = False
Selection.ClearContents
Range("G14").Select
Selection.Copy
Sheets("Customer").Select
Range("E7").Select
ActiveSheet.Paste
Sheets("New Member").Select
Application.CutCopyMode = False
Selection.ClearContents
Range("G15").Select
Selection.Copy
Sheets("Customer").Select
Range("B7").Select
ActiveSheet.Paste
Application.CutCopyMode = False
Selection.ClearComments
Sheets("New Member").Select
Selection.ClearContents
End Sub
Basically all of the cells which have a 7 following them, for example "Range("F7").Select" need to be placed in the next available free space in column F, etc.
Thanks, Tom