+ Reply to Thread
Results 1 to 8 of 8

create new workbook from existing worksheet data

  1. #1
    Registered User
    Join Date
    01-30-2009
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    37

    create new workbook from existing worksheet data

    I am working on this estimating template.
    To be used on Excel 97, 2000 and XP systems.

    I have a few issues i am unable to resolve.

    There are 2 of the worksheets (Short Quote and Stores Req) which individually need to have a button on them so i can create a new workbook as an exact coy of that sheet. but with just the values and not the formulas.

    Also i am unsure on the macro on the workbook currently( as i dont know how to do macros) i dont know what it does?
    Attached Files Attached Files
    Last edited by philiasfogg; 03-09-2009 at 05:55 AM.

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: create new workbook from existing worksheet data

    see related thread

    http://www.excelforum.com/excel-prog...-formulas.html

  3. #3
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: create new workbook from existing worksheet data

    The code is supposed to create a copy sheet in a new workbook, convert formulas to values & remove named ranges.
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  4. #4
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: create new workbook from existing worksheet data

    Why have you started a new thread?

  5. #5
    Registered User
    Join Date
    01-30-2009
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    37

    Re: create new workbook from existing worksheet data

    tried that script and get the following error

    Run-time error '9':

    Subscript out of range



    How do i resolve that

  6. #6
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: create new workbook from existing worksheet data

    Schoolboy error on my part... better to cycle the names in reverse (or default index to 1)

    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    01-30-2009
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    37

    Re: create new workbook from existing worksheet data

    Hi thanks for that

    I have tried it and now get this error

    Run-time error '438:
    Object doesn't support this property or method


    I am sorry but i am completely lost when it comes to VBA and macros

  8. #8
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: create new workbook from existing worksheet data

    I don't have 97 but I suspect the last line is not compatible with that version (not sure of the othes), try without the SaveAs Dialog:

    Please Login or Register  to view this content.

+ 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