+ Reply to Thread
Results 1 to 5 of 5

Copy and Paste Variable Range

  1. #1
    Registered User
    Join Date
    09-19-2012
    Location
    uk
    MS-Off Ver
    Excel 2003
    Posts
    3

    Copy and Paste Variable Range

    Hi
    I am trying to find a macro that will copy and paste a variable range depending on content of start & finish Cells.
    My Data is in sheet1 Columns A:E and goes down over 200 rows, and it contains a list of invoices for different suppliers that require paying,
    I want the macro to Find the Suppliers Name (Col A), which is in G1 and then copy and paste to Sheet 2 until it reaches the Total of that supplier which is referenced in G2
    Hope someone can help

  2. #2
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: Copy and Paste Variable Range

    attach please a sample file with data and desired result
    If solved remember to mark Thread as solved

  3. #3
    Registered User
    Join Date
    09-19-2012
    Location
    uk
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Copy and Paste Variable Range

    Thanks for your reply, I hope the attached file helps,
    The start and finish is produced from a drop down list, and the result on sheet 2 is entered into an email,

    Test.xlsx

  4. #4
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,197

    Re: Copy and Paste Variable Range

    Hi, massivemike,

    maybe this can give you a hint:

    Please Login or Register  to view this content.
    Ciao,
    Holger
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

  5. #5
    Registered User
    Join Date
    09-19-2012
    Location
    uk
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Copy and Paste Variable Range

    That work great, Thank you so much, I have been trying different VBA for weeks.

+ 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] Copy/Paste Values from Variable Range to Corresponding Variable Range
    By Cpetersoc in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 05-14-2012, 08:20 AM
  2. Variable range copy paste
    By scottsanpedro in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-25-2012, 09:10 AM
  3. Excel07 VBA for Copy paste variable range
    By nsorden in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-03-2009, 09:49 AM
  4. Variable to select range to copy and paste to
    By cecil23 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 07-30-2007, 02:35 AM
  5. [SOLVED] Copy/paste range variable between workbooks
    By Jim73 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-14-2005, 05: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