+ Reply to Thread
Results 1 to 3 of 3

Copying Cells Using A Macro

  1. #1
    Forum Contributor
    Join Date
    11-30-2020
    Location
    Ny
    MS-Off Ver
    Office 365
    Posts
    173

    Copying Cells Using A Macro

    Is there a way using a macro to copy cells, for example cells F8,F10,F12,F14 in workbook 1 to cells A2:A5 in workbook 2?

    i have been trying...

    x.Sheets(strSourceSheetName).Range("F8").Copy
    y.Sheets(strDestinationShetName).Range("A1").PasteSpecial

    It appears to work with a single cell being copied but no more than that...

    Any help will be appreciated...Thanks!

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,632

    Re: Copying Cells Using A Macro

    Try:

    Please Login or Register  to view this content.
    make sure cells (copied from and to) are not merged
    Best Regards,

    Kaper

  3. #3
    Forum Contributor
    Join Date
    11-30-2020
    Location
    Ny
    MS-Off Ver
    Office 365
    Posts
    173

    Re: Copying Cells Using A Macro

    Thanks my friend that worked like a charm ....!!!!!

+ 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. Automatic Copying of Cells to Another Cells with Macro
    By BOBINIHI in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-04-2018, 02:20 AM
  2. [SOLVED] Matching Cells between two documents & copying sheets/hyperlinking cells via toolbar macro
    By Hyflex in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-23-2015, 06:29 PM
  3. Help with macro for copying cells
    By MariPip in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 10-06-2014, 07:12 PM
  4. copying cells with a macro
    By miketsch in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-13-2009, 10:38 AM
  5. [SOLVED] Cut and copying cells in a macro
    By Neal in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 05-12-2006, 02:10 PM
  6. Copying cells with a macro
    By MAWII in forum Excel General
    Replies: 1
    Last Post: 04-18-2005, 02:06 PM
  7. copying a macro to several cells
    By rkibui in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-14-2005, 06:06 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