+ Reply to Thread
Results 1 to 5 of 5

How do I create a macro to copy a dynamic range?

  1. #1
    Registered User
    Join Date
    07-25-2013
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    88

    How do I create a macro to copy a dynamic range?

    I am a beginner as far as VBA goes, and I appreciate everyone's help.

    I need to create a macro to copy a range from one worksheet to another within the same work book. However, the range that I need to copy can change daily. The range will always be in column A; however, on a day-to-day basis, the data might extend from as few as 200 rows to as many as 1000+ rows. I need to come up with a way for Excel to copy from A1 until it recognizes that the data has stopped (copy from A1 until the very last non-blank cell in column A).

    Does anyone have any insight? Thank you very much for taking the time to read my question.

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

    Re: How do I create a macro to copy a dynamic range?

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    07-25-2013
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    88

    Re: How do I create a macro to copy a dynamic range?

    Thank you very much for your help!

  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: How do I create a macro to copy a dynamic range?

    Hi, Student1990,

    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
    07-25-2013
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    88

    Re: How do I create a macro to copy a dynamic range?

    Thank you, Holger.

    Both answers on here are helpful to me.

+ 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. How to create macro to sort multiple tables in dynamic range?
    By munnie in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-18-2013, 09:57 PM
  2. How to create macro to sort data in dynamic range
    By Luke82 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-10-2013, 06:16 PM
  3. Macro to create a Dynamic named range.
    By Hilton1982 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-28-2013, 09:42 AM
  4. [SOLVED] Macro - Dynamic Copy Range
    By Lacaycer in forum Excel Programming / VBA / Macros
    Replies: 19
    Last Post: 09-28-2012, 03:23 PM
  5. Dynamic range for a copy macro.
    By jad70 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-22-2009, 04:00 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