Results 1 to 3 of 3

Need macro for Copying data

Threaded View

  1. #3
    Forum Contributor
    Join Date
    09-11-2013
    Location
    Huntsville, AL
    MS-Off Ver
    Excel 2007
    Posts
    180

    Re: Need macro for Copying data

    Range("A1").End(xlDown).Offset(1).Select
    This will move the Activecell to the bottom of the range assuming there is data in every row cell in column A where you already have data. If not, there is some extra steps to make.

    This will dynamically select everything except the headers from the from workbook.
    Range("A1").CurrentRegion.Select
    This will copy all the data but the header:
    Range("A1").CurrentRegion.Select
    Selection.Offset(1, 0).Resize(Selection.Rows.Count - 1, Selection.Columns.Count).Copy
    This will Copy the code in a dynamic region with the first row of data.
    Range("A1").CurrentRegion.Copy
    Thanks,

    Gregg
    Last edited by greggpetersen75; 09-20-2013 at 04:19 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Need help with macro copying data
    By GribbletheMunchkin in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-21-2012, 06:40 AM
  2. Replies: 1
    Last Post: 04-02-2011, 06:39 AM
  3. Copying data into a new row - macro
    By dextras in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 06-12-2009, 06:29 AM
  4. Copying Data Via A Macro
    By lj123 in forum Excel General
    Replies: 2
    Last Post: 11-21-2008, 07:23 AM
  5. copying data using a macro
    By stuart_@James in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-12-2008, 01:05 PM

Tags for this Thread

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