Reference is not valid

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello from Steved

Sub SaveNClose()
Application.Goto Reference:=Worksheets(1).Range("A5").Activate
ActiveWorkbook.Close True
End Sub

Below is giving an error Reference is not valid
Application.Goto Reference:=Worksheets(1).Range("A5").Activate

What do I need to correct please.

Thankyou.
 
Hello from Steved

Thankyou I got the answer .

Application.Goto Reference:=Worksheets(1).Range("A5")
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top