I need help creating a macro that will grab information from an new sheet after it is added to the work book and paste it on a master page and sort it according to the account number. This is what I have so far but I need to find out how to make the Macro loop every month with each new sheet created. I’m not sure how to configure the Macro to go to the next empty row and paste the next months information. I’m very new to this so please be patient with me . I tried to create a test sheet so you can see somewhat what I'm working with. https://docs.google.com/spreadsheet/ccc?key=0Ap3rr5XT7PiZdFhlSE5vU1pIV2paSS05b1Z2Wkg4M3c#gid=2
Here’s what I have so far as for as a code.
Sub Macro1()
'
' Macro1 Macro
'
' Keyboard Shortcut: Ctrl+q
'
Sheets("June 2012").Select
Range("A2:C16").Select
Selection.Copy
Sheets("Master").Select
ActiveSheet.Paste
Range("A17").Select
Sheets("July 2012").Select
Range("A2:C15").Select
Application.CutCopyMode = False
Selection.Copy
Sheets("Master").Select
ActiveSheet.Paste
End Sub
Here’s what I have so far as for as a code.
Sub Macro1()
'
' Macro1 Macro
'
' Keyboard Shortcut: Ctrl+q
'
Sheets("June 2012").Select
Range("A2:C16").Select
Selection.Copy
Sheets("Master").Select
ActiveSheet.Paste
Range("A17").Select
Sheets("July 2012").Select
Range("A2:C15").Select
Application.CutCopyMode = False
Selection.Copy
Sheets("Master").Select
ActiveSheet.Paste
End Sub