+ Reply to Thread
Results 1 to 6 of 6

Copy Data to New Workbook with VBA Code without saving new Workbook

  1. #1
    Registered User
    Join Date
    10-09-2017
    Location
    Stavanger, Norway
    MS-Off Ver
    O365
    Posts
    78

    Copy Data to New Workbook with VBA Code without saving new Workbook

    This should be easy but I can't seem to work it out. I have a worksheet, and want to copy (Range A1:O300) to a NEW Workbook and PASTESPECIAL Values and Formats
    Google and YouTube are just not delivering anything this simple. I want the VBA Code to do this.


    Hope someone can help
    Last edited by SimonCampbell; 10-19-2021 at 06:48 AM.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,949

    Re: Copy Data to New Workbook with VBA Code

    Not sure how you are searching, but have a look at the two tutorials below:

    https://www.excelcampus.com/vba/copy...ther-workbook/

    https://excelchamps.com/vba/copy-cell-to-new-worksheet/
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    10-09-2017
    Location
    Stavanger, Norway
    MS-Off Ver
    O365
    Posts
    78

    Re: Copy Data to New Workbook with VBA Code

    Yes I've seen these, BUT seeing as my project will be used on a number of different platforms amongst other TEAMS, I didn't want the NEW workbook to be saved with a name or location, I just want it to open and paste the data into it, giving the user option to save it to where he /she wants. The Code I am using now is

    Please Login or Register  to view this content.
    Last edited by SimonCampbell; 10-19-2021 at 06:42 AM.

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,949

    Re: Copy Data to New Workbook with VBA Code

    OK - your thread title ought to reflect this as it's a pretty significant caveat and you didn't even mention it in your first post!

    Update the title in your first post to this thread, please.

  5. #5
    Registered User
    Join Date
    10-09-2017
    Location
    Stavanger, Norway
    MS-Off Ver
    O365
    Posts
    78

    Re: Copy Data to New Workbook with VBA Code

    ooopss! wasn't aware it was such a significant caveat. Getting up the learning curve

  6. #6
    Forum Expert KOKOSEK's Avatar
    Join Date
    08-03-2018
    Location
    Pole in Yorkshire, UK
    MS-Off Ver
    365/2013
    Posts
    2,743

    Re: Copy Data to New Workbook with VBA Code without saving new Workbook

    Copy, create and paste.
    Please Login or Register  to view this content.
    Happy with my answer * Add Reputation.
    If You are happy with solution, please use Thread tools and mark thread as SOLVED.

+ 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. [SOLVED] VB Code to copy certain data to another workbook
    By rizmomin in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-31-2020, 12:16 PM
  2. [SOLVED] Copy data workbook to another workbook vba code
    By sbvaram in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-16-2019, 03:23 AM
  3. VBA code to copy data from current workbook to another workbook and send email
    By aman1234 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 02-05-2015, 06:47 AM
  4. [SOLVED] VBA code to copy data to new workbook
    By AndyFarrell79 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 04-06-2014, 12:38 AM
  5. VBA code for copy data from closed workbook to "Data " sheet of current workbook
    By satputenandkumar0 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 03-13-2014, 02:23 AM
  6. [SOLVED] Code to copy data from a closed workbook and paste in active workbook using named range.
    By paullie1912 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 02-28-2014, 02:38 AM
  7. Replies: 5
    Last Post: 01-22-2013, 01:33 AM

Tags for this Thread

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