+ Reply to Thread
Results 1 to 5 of 5

Open, copy and paste VBA code

  1. #1
    Registered User
    Join Date
    01-31-2012
    Location
    Philippines
    MS-Off Ver
    Excel 2010
    Posts
    5

    Open, copy and paste VBA code

    Can someone share a copy of code for Open, copy and paste macro.

    Thanks...

  2. #2
    Forum Expert JapanDave's Avatar
    Join Date
    06-10-2008
    Location
    The grid, I got in!
    MS-Off Ver
    Excel 2010/13
    Posts
    1,696

    Re: Open, copy and paste VBA code

    Hey,

    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Be fore warned, I regularly post drunk. So don't take offence (too much) to what I say.
    I am the real 'Napster'
    The Grid. A digital frontier. I tried to picture clusters of information as they moved through the computer. What did they look like? Ships? motorcycles? Were the circuits like freeways? I kept dreaming of a world I thought I'd never see. And then, one day...

    If you receive help please give thanks. Click the * in the bottom left hand corner.

    snb's VBA Help Files

  3. #3
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Open, copy and paste VBA code

    What do u mean by open, copy & paste macro? Open files from a folder, copy certain data and paste it in some location?

    If yes, you will need to specify what data needs to be copied from the files and where it should be copied.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  4. #4
    Registered User
    Join Date
    01-31-2012
    Location
    Philippines
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Open, copy and paste VBA code

    Quote Originally Posted by arlu1201 View Post
    What do u mean by open, copy & paste macro? Open files from a folder, copy certain data and paste it in some location?

    If yes, you will need to specify what data needs to be copied from the files and where it should be copied.
    Yes sir, all the data of the open file..... For example sir, I open my personal workbook, then I am using button to open a file then copy all the data of the opened file then paste in my personal workbook.

    Your help will be highly appreciated...

    Thanks in advance....
    Last edited by arthenian11; 02-08-2012 at 04:28 AM.

  5. #5
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Open, copy and paste VBA code

    Use this code -
    Please Login or Register  to view this content.
    In the above code, i have excluded the headers. Only data from A2 to D25 will be copied (As an example). If you need to modify it, you can. If you want the headers to be copied, just change the A2 to A1.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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