+ Reply to Thread
Results 1 to 4 of 4

vba copy selected cells to another workbook.

  1. #1
    Forum Contributor
    Join Date
    01-21-2017
    Location
    England
    MS-Off Ver
    2007
    Posts
    409

    vba copy selected cells to another workbook.

    Hi I would like a macro that will copy the cells I've selected in workbook 1, open workbook 2 (C:/Desktop/Newfolder/Book2) and paste them into B3.

    Many thanks in advance.

    Cheers

    Dave

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,882

    Re: vba copy selected cells to another workbook.

    Please Login or Register  to view this content.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Forum Contributor
    Join Date
    01-21-2017
    Location
    England
    MS-Off Ver
    2007
    Posts
    409

    Re: vba copy selected cells to another workbook.

    Hi many thanks, does this copy A2:E5, as I was after a macro that would copy whatever cells I had currently selected in workbook 1 when I press the macro button. I.e if I select cells d7:d9 then press the macro is will copy those cells

  4. #4
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,882

    Re: vba copy selected cells to another workbook.

    No. You would have to modify the code to do that.

    change this line of code
    Please Login or Register  to view this content.
    to

    Please Login or Register  to view this content.
    If you have highlighted a group of cells to copy

+ 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. copy selected cells from one workbook to another
    By LSGC in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-18-2015, 03:06 AM
  2. Copy of selected cells to another workbook
    By C4MARO in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 04-06-2015, 05:31 PM
  3. Replies: 6
    Last Post: 08-09-2013, 06:20 PM
  4. [SOLVED] Copy Value from selected cells to a new workbook sheet
    By pipoliveira in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-11-2013, 11:33 AM
  5. Copy text from one workbook to other one with selected cells
    By stojko89 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-04-2011, 02:48 AM
  6. copy data from selected cells , in selected row and paste it to ms word table ?
    By aaashaaa in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-06-2010, 03:25 PM
  7. [SOLVED] copy selected cells to new workbook?
    By Chimanrao in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-23-2005, 02:05 PM

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