+ Reply to Thread
Results 1 to 4 of 4

Save worksheet to new workbook

  1. #1
    Registered User
    Join Date
    07-22-2020
    Location
    Lake Cowichan, BC
    MS-Off Ver
    16
    Posts
    8

    Save worksheet to new workbook

    Any suggestions to make this work

    [ Dim wb As Workbook ]
    [ Dim fname ]
    [ Set wb = Workbooks.Add ]
    [ ThisWorkbook.Sheets("Submission").Copy Before:=wb.Sheets(1) ]
    [ fname = InputBox("Enter Submission Date") ]
    [ fname = fname & ".csv" ]
    [ wb.SaveAs "C:\PWI Stats\Submissions\", fname]
    Last edited by Cowichandave; 03-13-2021 at 02:56 AM.

  2. #2
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,176

    Re: Save worksheet to new workbook

    Welcome to our Forum...

    Please take a moment to read our forum rules...here
    Your post does not comply with Rule # 2
    2. Programming code must be enclosed in code tags to improve readability. (A, Z)
    Please Login or Register  to view this content.
    So...Edit your post...Highlight the code and press the # button
    We can only assist once this has been done…
    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 star to left of post [Add Reputation]
    Also....add a comment if you like!!!!
    And remember...Mark Thread as Solved.
    Excel Forum Rocks!!!

  3. #3
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,176

    Re: Save worksheet to new workbook

    This thread does not comply to Rule No 5...
    5. Do not open more than ONE thread per issue here. Expect duplicates to be closed.
    Duplicate Post here

    And...as mentioned in Post 2...A solution can only be offered if you correct your post 1 and enclose such with code tags...

  4. #4
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,176

    Re: Save worksheet to new workbook

    Thanks for trying...Edit your post...Highlight the code and press the # button

    Like this below...

    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)

Similar Threads

  1. Replies: 7
    Last Post: 06-22-2018, 12:07 PM
  2. Save a single worksheet from a workbook as a separate read only workbook
    By jmking1999 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-13-2017, 09:49 AM
  3. Save worksheet as workbook but with 'save as' feature
    By jjin in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-14-2016, 04:43 PM
  4. [SOLVED] Copying a worksheet from a workbook and save it as a new worksheet based on a list. VBA
    By malitec in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 11-05-2015, 03:07 AM
  5. [SOLVED] Export/Save a worksheet in a workbook without changing the name of the workbook?
    By 111StepsAhead in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-24-2013, 06:04 PM
  6. Incremental save. Save just one worksheet of a workbook?
    By dylanemcgregor in forum Excel General
    Replies: 2
    Last Post: 09-09-2009, 05:19 PM
  7. Replies: 3
    Last Post: 06-27-2005, 01: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