+ Reply to Thread
Results 1 to 4 of 4

Control Location Of New Worksheet

  1. #1
    Forum Contributor
    Join Date
    06-18-2010
    Location
    USA
    MS-Off Ver
    Excel 2016
    Posts
    546

    Control Location Of New Worksheet

    I have a workbook that I want to add a new worksheet to, and I know this syntax can do it
    Please Login or Register  to view this content.
    What I can not figure out is how to control where the sheet is added. For example, I want to add a worksheet as the 2nd worksheet in my workbook. I tried this
    Please Login or Register  to view this content.
    However, it is leaving the "new" sheet that was added through VBA as the 1st worksheet in the workbook. How do I add a new worksheet as the 2nd worksheet in the workbook?

  2. #2
    Forum Expert
    Join Date
    02-14-2009
    Location
    .
    MS-Off Ver
    ................
    Posts
    2,840

    Re: Control Location Of New Worksheet

    The Add method also has an 'After' parameter

    Please Login or Register  to view this content.

  3. #3
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Control Location Of New Worksheet

    Hi,

    Please Login or Register  to view this content.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

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

    Re: Control Location Of New Worksheet

    There's also the Before parameter.
    Please Login or Register  to view this content.
    If posting code please use code tags, see here.

+ 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. Identifying Manual percentage on a control location
    By hiruyg in forum Excel General
    Replies: 4
    Last Post: 01-05-2017, 08:41 PM
  2. [SOLVED] Identifying Manual percentage on a control location
    By hiruyg in forum Excel General
    Replies: 6
    Last Post: 01-05-2017, 12:00 PM
  3. Identifying Manual percentage on a control location
    By hiruyg in forum Excel General
    Replies: 1
    Last Post: 01-04-2017, 07:23 AM
  4. [SOLVED] Code to move a form control button to different location in same worksheet
    By Excal1 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 04-22-2016, 07:45 AM
  5. [SOLVED] Using a macro to control location based macros
    By ussenterprise in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-10-2013, 11:29 AM
  6. Store current cell location to use same location on other worksheet
    By jmvdholst in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-22-2013, 09:58 AM
  7. Excel 2007 : Control x,y location of a chart
    By SueWithQuestion in forum Excel General
    Replies: 4
    Last Post: 04-20-2011, 06:35 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