+ Reply to Thread
Results 1 to 3 of 3

Need macro for Copying data

  1. #1
    Registered User
    Join Date
    03-06-2012
    Location
    chennai
    MS-Off Ver
    Excel 2003
    Posts
    34

    Thumbs up Need macro for Copying data

    Hi Champs,


    i have a excel master data file saved at c: in my computer.

    I used to get xls attachment in my outlook everyday.

    i need a macro to copy the content in the attached excel file to the excel master data file (without disturbing already saved contents in master data file).


    Your help is deeply appreciated.

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2403 Win 11 Home 64 Bit
    Posts
    23,810

    Re: Need macro for Copying data

    Look at adapting this code to your specific situation

    Please Login or Register  to view this content.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

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

    Re: Need macro for Copying data

    Please Login or Register  to view this content.
    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.
    Please Login or Register  to view this content.
    This will copy all the data but the header:
    Please Login or Register  to view this content.
    This will Copy the code in a dynamic region with the first row of data.
    Please Login or Register  to view this content.
    Thanks,

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

+ 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. 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