+ Reply to Thread
Results 1 to 2 of 2

Reference is not valid

  1. #1
    Steved
    Guest

    Reference is not valid

    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.



  2. #2
    Steved
    Guest

    RE: Reference is not valid

    Hello from Steved

    Thankyou I got the answer .

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

    "Steved" wrote:

    > 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.
    >
    >


+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1