+ Reply to Thread
Results 1 to 4 of 4

Frustrating sheet add problem

Hybrid View

rocdoc Frustrating sheet add problem 07-13-2017, 03:24 AM
xlnitwit Re: Frustrating sheet add... 07-13-2017, 04:52 AM
rocdoc Re: Frustrating sheet add... 07-13-2017, 06:56 AM
Sintek Re: Frustrating sheet add... 07-13-2017, 07:22 AM
  1. #1
    Registered User
    Join Date
    01-18-2016
    Location
    Perth, Australia
    MS-Off Ver
    2007
    Posts
    7

    Post Frustrating sheet add problem

    Hi everyone, thanks for looking (and helping I hope!)

    When I do this, I get two sheets at the end of my practice worksheet (containing 1 chart at the start and 4 worksheets after).
    Sheets.Add after:=Sheets(Sheets.Count), Count:=2

    When I do this, the two added charts come BEFORE the last sheet, and I can't get it to insert after.
    Sheets.Add after:=Sheets(Sheets.Count), Count:=2, Type:=XlSheetType.xlChart

    Why won't the charts add after the last sheet?

    Thanks
    Last edited by rocdoc; 07-13-2017 at 03:31 AM.

  2. #2
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Frustrating sheet add problem

    Hi,

    I don't believe it is possible to add a chart after the last sheet directly. You must add them and then move them to the end.
    Don
    Please remember to mark your thread 'Solved' when appropriate.

  3. #3
    Registered User
    Join Date
    01-18-2016
    Location
    Perth, Australia
    MS-Off Ver
    2007
    Posts
    7

    Re: Frustrating sheet add problem

    Quote Originally Posted by xlnitwit View Post
    Hi,

    I don't believe it is possible to add a chart after the last sheet directly. You must add them and then move them to the end.
    Really? Thanks weird. Anyway, thanks xlnitwit.

  4. #4
    Forum Guru Sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2019 | 2021
    Posts
    14,964

    Re: Frustrating sheet add problem

    play around with this...
    Option Explicit
    Sub Chart()
    Dim i, count As Integer
    Sheets.Add after:=Sheets(Sheets.count), count:=2
    Sheets.Add after:=Sheets(Sheets.count), count:=2, Type:=XlSheetType.xlChart
    For i = 1 To 2
        Sheets("Chart" & i).Move after:=Worksheets(Worksheets.count)
    Next i
    End Sub
    Good Luck...
    I don't presume to know what I am doing, however, just like you, I too started somewhere...
    One-day, One-problem at a time!!!
    If you feel I have helped, please click on the [★ Add Reputation] to left of post window...
    Also....Add a comment if you like!!!!
    And remember...Mark Thread as Solved...
    Excel Forum Rocks!!!

+ 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. Frustrating linking problem
    By Cythrawl10 in forum Excel General
    Replies: 1
    Last Post: 05-21-2009, 11:38 PM
  2. [SOLVED] Frustrating Problem with VBA Help in Office2003
    By Scott Hartog in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-12-2008, 10:49 AM
  3. Simple but frustrating problem with chart
    By geigerc0unter in forum Excel General
    Replies: 3
    Last Post: 06-02-2007, 04:27 PM
  4. SORTING - 'top' row problem, really frustrating!!
    By shreksbro in forum Excel General
    Replies: 2
    Last Post: 04-18-2007, 06:17 AM
  5. Frustrating Boolean/loop iteration problem
    By carg1 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-11-2006, 05:25 PM
  6. [SOLVED] Frustrating SUMPRODUCT problem.
    By rmellison in forum Excel General
    Replies: 1
    Last Post: 01-06-2006, 10:00 AM
  7. IRR, XIRR and NPV - a very frustrating problem
    By zacharychan in forum Excel General
    Replies: 1
    Last Post: 10-24-2005, 04:05 AM
  8. Frustrating Problem
    By Rebecca in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 04-04-2005, 07:06 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