+ Reply to Thread
Results 1 to 5 of 5

need to copy certain cells from 1 workbook to another workbook

  1. #1
    Registered User
    Join Date
    01-12-2010
    Location
    Auckland, New Zealand
    MS-Off Ver
    Excel 2003
    Posts
    17

    need to copy certain cells from 1 workbook to another workbook

    Hi,
    I have 2 workbooks where I need to copy information across automatically.
    I need to copy certain cells from the Issue Record Template to the next available row in Investigations Spreadsheet.


    I need to copy
    A5 -> B
    B5 -> C
    D5 -> D
    E5 -> E
    F5 -> G
    G5 -> H
    B11 -> O
    F11 -> J

    I was thinking that the action that could run the macro would be entering a yes or no into
    F11. The files are kept in the same folder on the shared drive.
    I use Excel2003

    Thanks
    Attached Files Attached Files
    Last edited by Gauntsghost; 01-24-2010 at 04:28 PM.

  2. #2
    Forum Expert davegugg's Avatar
    Join Date
    12-18-2008
    Location
    WI, US
    MS-Off Ver
    2010
    Posts
    1,884

    Re: need to copy certain cells from 1 workbook to another workbook

    I would suggest running from a button rather than waiting for a text input into a cell. For example, I'd set up a button that, when clicked, would change F11 to "yes", then transfer the data to the other workbook. Couple of questions:
    1 Are you opposed to keeping these two sheets in the same workbook? Do they have to be in different workbooks?
    2 Are both workbooks going to be open when this is run?

    Assuming the answers to 1 and 2 are yes and yes, this code should work:

    Please Login or Register  to view this content.
    I wasn't able to test, so if there are problems let me know.
    Is your code running too slowly?
    Does your workbook or database have a bunch of duplicate pieces of data?
    Have a look at this article to learn the best ways to set up your projects.
    It will save both time and effort in the long run!


    Dave

  3. #3
    Registered User
    Join Date
    01-12-2010
    Location
    Auckland, New Zealand
    MS-Off Ver
    Excel 2003
    Posts
    17

    Re: need to copy certain cells from 1 workbook to another workbook

    Hi Davegugg,

    1. Unfortunately they need to be different workbooks, as the Issue Record Template would eventually saved under a different name to a different folder.
    2. Yes, both workbooks would be open at the same time

  4. #4
    Registered User
    Join Date
    01-12-2010
    Location
    Auckland, New Zealand
    MS-Off Ver
    Excel 2003
    Posts
    17

    Re: need to copy certain cells from 1 workbook to another workbook

    Hi Davegugg,

    I was finally able to test. It is copying the data, however it has started at the top and is working it's way down, copying over data that is already there. Is there anyway to make it start at the buttom of the data that is already there. If it is copied from the template using the macro, it is not being copied over, just the data that was there originally.
    Sorry I showed a blank worksheet it's just the information on it is sensitive.

    Regards
    Gauntsghost

  5. #5
    Registered User
    Join Date
    01-12-2010
    Location
    Auckland, New Zealand
    MS-Off Ver
    Excel 2003
    Posts
    17

    Re: need to copy certain cells from 1 workbook to another workbook

    Nevermind. I soprted it out.

    Thanks very much for writing this for me.

+ 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