+ Reply to Thread
Results 1 to 8 of 8

Sheets.Add but stay in the old sheet?

  1. #1
    Forum Contributor HerryMarkowitz's Avatar
    Join Date
    09-10-2012
    Location
    Europe
    MS-Off Ver
    Office 2021 - Win10
    Posts
    1,007

    Sheets.Add but stay in the old sheet?

    Greetings,
    Following code adds a new sheet.
    Then new sheets be ActiveSheet. (I dont want this)
    Please Login or Register  to view this content.
    So, how to add new sheet but stay in the old sheet?
    Regards...
    Sub DontForgetThese()
         If Your thread includes any code Then Please use code tags...
         If Your thread has been solved Then Please mark as solved...
         If Anybody has helped to you Then Please add reputation...
    End Sub

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Sheets.Add but stay in the old sheet?

    As far as I know that isn't possible, if you add a new sheet it becomes the active sheet.

    Is there a reason you don't want that to happen?
    If posting code please use code tags, see here.

  3. #3
    Forum Expert
    Join Date
    09-20-2011
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    2,278

    Re: Sheets.Add but stay in the old sheet?

    Hello
    Try:

    Please Login or Register  to view this content.
    Seems to work for me.

    DBY

  4. #4
    Forum Contributor HerryMarkowitz's Avatar
    Join Date
    09-10-2012
    Location
    Europe
    MS-Off Ver
    Office 2021 - Win10
    Posts
    1,007

    Re: Sheets.Add but stay in the old sheet?

    Thanks a lot...
    But I am looking for a code which adds a new sheet by staying in the old sheet...
    Any idea?

  5. #5
    Forum Expert
    Join Date
    09-20-2011
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    2,278

    Re: Sheets.Add but stay in the old sheet?

    That is what the code does when I run it. If you run this from say sheet 1 it adds a new sheet and stays on sheet 1.

  6. #6
    Forum Contributor HerryMarkowitz's Avatar
    Join Date
    09-10-2012
    Location
    Europe
    MS-Off Ver
    Office 2021 - Win10
    Posts
    1,007

    Re: Sheets.Add but stay in the old sheet?

    Quote Originally Posted by DBY View Post
    That is what the code does when I run it. If you run this from say sheet 1 it adds a new sheet and stays on sheet 1.
    Hi DBY,
    I understand that.
    Your code works.
    But I dont want any movement...

  7. #7
    Forum Contributor HerryMarkowitz's Avatar
    Join Date
    09-10-2012
    Location
    Europe
    MS-Off Ver
    Office 2021 - Win10
    Posts
    1,007

    Re: Sheets.Add but stay in the old sheet?

    Solved.
    Please Login or Register  to view this content.

  8. #8
    Forum Expert
    Join Date
    09-20-2011
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    2,278

    Re: Sheets.Add but stay in the old sheet?

    I see. It was the screen flicker you wanted removed. Yes, ScreenUpdating will clear that. Glad it's solved.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Activecells stay if going from one sheet to another then back?
    By XXYuuki in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-26-2011, 10:26 PM
  2. Copied Sheets In Workbook, But Dates Stay The Same
    By xindaiel in forum Excel General
    Replies: 0
    Last Post: 02-21-2008, 01:01 PM
  3. excel 03- sheets stay grouped even when I ungroup
    By TGilboy in forum Excel General
    Replies: 1
    Last Post: 06-03-2006, 09:10 AM
  4. Excel sheet won't stay on my screen
    By SueM in forum Excel General
    Replies: 3
    Last Post: 04-12-2006, 02:19 PM
  5. [SOLVED] printing excel sheets duplex, make margin stay on one edge
    By Jim in forum Excel General
    Replies: 0
    Last Post: 07-28-2005, 07:05 AM

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