+ Reply to Thread
Results 1 to 3 of 3

Copy Worksheet to a new workbook and prompt for new file name using VBA

  1. #1
    Registered User
    Join Date
    09-23-2021
    Location
    Houston
    MS-Off Ver
    Office 365
    Posts
    3

    Copy Worksheet to a new workbook and prompt for new file name using VBA

    Not sure how to go about to do this. I need to copy a worksheet that is macro enabled to a new workbook that is not macro enabled in order to import this file into our accounting system. I found many examples how to do this when the file is hardcoded in the VBA code, but have not found one that prompts the user for the file where they want it saved. Does anyone have any experience in doing this? Thanks

  2. #2
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Copy Worksheet to a new workbook and prompt for new file name using VBA

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however it has been brought to our attention that the same query has been posted on one or more other forums and you have not provided the required cross-post link(s) here.

    Please see Forum Rule #3 about cross-posting and adjust accordingly. Read this to understand why we (and other sites like us) consider this to be important.

    (Note: this requirement is not optional. No help to be offered until the link is provided.)

    Since you are new to the forum and not currently able to post links I will do it for you this time.

    https://www.mrexcel.com/board/thread...-name.1185726/
    Dave

  3. #3
    Registered User
    Join Date
    09-23-2021
    Location
    Houston
    MS-Off Ver
    Office 365
    Posts
    3

    Re: Copy Worksheet to a new workbook and prompt for new file name using VBA

    Sorry I didn't know I needed to post the cross reference. Thanks for posting the cross reference and I will do this in the future.

+ 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. VBA - Prompt User to Open a Workbook and to Select a Worksheet, But Opens an blank file
    By Praveen_k_g in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-07-2020, 01:57 PM
  2. [SOLVED] Copy worksheet from one workbook to another - File has different ending number
    By 3345james in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-29-2016, 12:18 PM
  3. Copy CSV file from URL(HTTPS) and paste in existing workbook should prompt for creds
    By koilkuntla in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-30-2015, 03:43 PM
  4. insert a csv file as a worksheet from DOS prompt
    By ihot in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-17-2008, 10:26 PM
  5. Replies: 7
    Last Post: 11-13-2005, 06:00 PM
  6. How do I copy a worksheet from a workbook as csv file
    By Husker87 in forum Excel General
    Replies: 6
    Last Post: 03-26-2005, 06: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