+ Reply to Thread
Results 1 to 6 of 6

VBA to copy different ranges to other ranges

  1. #1
    Forum Contributor
    Join Date
    12-08-2012
    Location
    Copenhagen
    MS-Off Ver
    Excel 2010
    Posts
    119

    VBA to copy different ranges to other ranges

    Im quite new to VBA, but I can code some "smaller" problems. But right now, Im having trouble with this problem, which I dont know how to solve in an optimal way.

    I simply just need a code which copies some data from one area/range to another area/range. Please see the attached file, I think it speaks for it self.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,671

    Re: VBA to copy different ranges to other ranges

    Pl see the attached file with macro.
    Attached Files Attached Files

  3. #3
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: VBA to copy different ranges to other ranges

    Another one
    Attached Files Attached Files

  4. #4
    Forum Contributor
    Join Date
    12-08-2012
    Location
    Copenhagen
    MS-Off Ver
    Excel 2010
    Posts
    119

    Re: VBA to copy different ranges to other ranges

    @kvsrinivasamurthy: The data has to be copied to the output sheet. Like in AB33's suggestion.

    @AB33: It works, thanks .
    Where should I edit the code so I only copy the values (i.e. ignore the formatting)? I have used this in another workbook:
    Please Login or Register  to view this content.
    But I cant figure out how to use it in this code.

  5. #5
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: VBA to copy different ranges to other ranges

    The code already copies values only, but amended for your other requirement
    Attached Files Attached Files

  6. #6
    Forum Contributor
    Join Date
    12-08-2012
    Location
    Copenhagen
    MS-Off Ver
    Excel 2010
    Posts
    119

    Re: VBA to copy different ranges to other ranges

    @AB33: Thank you so much!

+ 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. Creating 'Network IP' and 'Subnet IP' Ranges from IP CIDR subnets ranges
    By sokolum in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-27-2019, 06:46 AM
  2. MIN of Summed ranges, excluding any ranges with blank cells)
    By Melvinrobb in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-08-2013, 12:02 PM
  3. Replies: 0
    Last Post: 10-15-2012, 07:24 AM
  4. Copy data in named ranges to a newer version of the same template to identical ranges
    By handstand in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-21-2006, 10:51 AM
  5. Replies: 1
    Last Post: 08-24-2005, 06: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