+ Reply to Thread
Results 1 to 5 of 5

Create a new Sheet if it doesn't exist?

  1. #1
    Registered User
    Join Date
    07-18-2006
    Posts
    73

    Create a new Sheet if it doesn't exist?

    I knwo this would be a simple IF statement. I want a new sheet within the workgroup called ChartNEW to be created if it does not already exist. I have to do this for a few different sheets, if they aren't already created to have them created.

    Could someone let me know what I would put for that?

    Thanks,

    ~J

  2. #2
    Forum Contributor
    Join Date
    03-13-2005
    Posts
    6,195
    Quote Originally Posted by nbaj2k
    I knwo this would be a simple IF statement. I want a new sheet within the workgroup called ChartNEW to be created if it does not already exist. I have to do this for a few different sheets, if they aren't already created to have them created.

    Could someone let me know what I would put for that?

    Thanks,

    ~J
    confused, to simply create Worksheets as described something like
    Please Login or Register  to view this content.
    but what's 'within the workgroup' ?

    ---
    Si fractum non sit, noli id reficere.

  3. #3
    Registered User
    Join Date
    07-18-2006
    Posts
    73
    lol sorry about that, I meant "within the workbook" as in Excel workbook.

    Long day over here at work dealing with "Workgroups" all day.

    Thanks,

    ~J

  4. #4
    Registered User
    Join Date
    07-18-2006
    Posts
    73

    actually, one more thing, can I do it with Charts?

    Looks perfect, but how would I do it for a chart on a new sheet?

    I tried Charts.Add.Name but that doesn't work.

    If the Chart "Week1" was not already created I wanted it to be created.

    Same thing goes for Week2, Week3.

    Is it almost the same?

    ~J

  5. #5
    Forum Contributor
    Join Date
    03-13-2005
    Posts
    6,195
    Quote Originally Posted by nbaj2k
    Looks perfect, but how would I do it for a chart on a new sheet?

    I tried Charts.Add.Name but that doesn't work.

    If the Chart "Week1" was not already created I wanted it to be created.

    Same thing goes for Week2, Week3.

    Is it almost the same?

    ~J
    Best thing to determine your own situation is to record a macro whilst adding a chart, last option = Chart Sheet, and copy / amend the code from there, something like
    Please Login or Register  to view this content.
    hth
    ---

+ 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