+ Reply to Thread
Results 1 to 4 of 4

Copying from another workbook into current workbook

  1. #1
    Registered User
    Join Date
    08-02-2012
    Location
    Leeds
    MS-Off Ver
    Excel 2003
    Posts
    2

    Copying from another workbook into current workbook

    Hi I am trying to create a macro that copies data from a workbook and then pastes special and adds the data to cells in the current workbook. Also I'd like it to close the workbook that the macro opens once it has done the copying.

    My code so far is as follows but It does not really work. Please help ASAP.

    Please Login or Register  to view this content.
    Last edited by jigypeper; 08-03-2012 at 05:19 AM.

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

    Re: New to VB programming

    Welcome to the forum.

    I have added code tags to your post. As per forum rule 3, you need to use them whenever you put any code in your post. Please add them in future. If you need more information on how to use them, check my signature.
    Last edited by arlu1201; 08-02-2012 at 06:39 AM.
    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]

  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: Copying from another workbook into current workbook

    What is the error you are getting?

    Try this code
    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    08-02-2012
    Location
    Leeds
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Copying from another workbook into current workbook

    Thanks but I managed to solve the problem last night. Just needed to define the seperate workbooks and tell it which one to activate and when.

+ 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