+ Reply to Thread
Results 1 to 3 of 3

Return to page where code was started

  1. #1
    Forum Contributor
    Join Date
    09-09-2008
    Location
    Middlesbrough, England
    MS-Off Ver
    2007
    Posts
    174

    Return to page where code was started

    Hi,

    I have a VB code which is run from a worksheet called "Marco" this code duplicates the "Template" worksheet and re-names it in DDMM format.

    The active cell appears on the newly created sheet. I would like the VB to return to the "Macro" worksheet to complete the 2nd Stage. Can anyone advise what needs to be tweaked with the below code?

    Please Login or Register  to view this content.
    Last edited by batchy; 10-07-2011 at 06:30 AM.

  2. #2
    Forum Expert snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,649

    Re: Return to page where code was started

    Please wrap your code in code tag (see the forum rules).
    You shouldn't 'leave' the page in the first place (avoid activate & select in VBA)



  3. #3
    Forum Contributor
    Join Date
    09-09-2008
    Location
    Middlesbrough, England
    MS-Off Ver
    2007
    Posts
    174

    Re: Return to page where code was started

    Apologies now wrapped.

    Can you advise where i should changing in code?

+ 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