Hi, I am trying combine two macros together it works until '*? point and breaks. Since I don't know VBA I am struggling to fix it. Any one can help? I need this sheet select Q1 and copy it to A1.
Private Sub CommandButton1_Click()
Sheets("001").Copy Before:=Sheets(1)
Sheets(1).Name = Format(Sheets.Count - 5, "000")
'*?
Range("Q1").Select
Selection.Copy
Range("A1:B1").Select
ActiveSheet.Paste
Range("A3").Select
Selection.Hyperlinks(1).Follow NewWindow:=False, AddHistory:=True
End Sub
Thanks
Yuri
Private Sub CommandButton1_Click()
Sheets("001").Copy Before:=Sheets(1)
Sheets(1).Name = Format(Sheets.Count - 5, "000")
'*?
Range("Q1").Select
Selection.Copy
Range("A1:B1").Select
ActiveSheet.Paste
Range("A3").Select
Selection.Hyperlinks(1).Follow NewWindow:=False, AddHistory:=True
End Sub
Thanks
Yuri