+ Reply to Thread
Results 1 to 4 of 4

copying cell from different workbook

  1. #1
    Registered User
    Join Date
    10-16-2013
    Location
    Hong Kong
    MS-Off Ver
    Excel 2003
    Posts
    3

    copying cell from different workbook

    I am very new in VBA. Just get a new task from my new boss regarding getting cell data from different workbook.

    Let’s see my need as below:

    1) I need to copy different cell data to a workbook call “destination” from different workbooks
    2) The different workbooks I copied from name as below:
    VBA 01 SEP
    VBA 02 SEP
    VBA 03 SEP
    VBA 04 SEP
    VBA 05 SEP
    VBA 06 SEP
    VBA 07 SEP
    3) I only need cell Z1 from the above workbook
    I would like to copy the cell “Z1” of “VBA 01 SEP” to “destination A1”
    cell “Z1” of “VBA 02 SEP” to” destination A2”
    cell “Z1” of “VBA 03 SEP” to” destination A3”
    cell “Z1” of “VBA 04 SEP” to” destination A4”
    cell “Z1” of “VBA 05 SEP” to” destination A5”
    cell “Z1” of “VBA 06 SEP” to” destination A6”

    Can anyone suggest some template for me? Many thanks.

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: copying cell from different workbook

    Welcome to the forum.

    Why don't you record a macro for doing this?
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Registered User
    Join Date
    10-16-2013
    Location
    Hong Kong
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: copying cell from different workbook

    Thanks Fotis for the prompt reply

    It is because the date is keep changing, actually, the workbook i need to copy is from 1 Jan 2001 until now and going foward.

    The below is my stupid command code, it may be a bit longer, as i need to copy more than 9 cells from each work book


    EDIT:

    I am sorry but trying to add code tags around your code as per forum rules i deleted your code. Can you pls post your code again adding code tags arround it?
    Last edited by Fotis1991; 10-16-2013 at 04:56 AM.

  4. #4
    Registered User
    Join Date
    10-16-2013
    Location
    Hong Kong
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: copying cell from different workbook

    Sorry for no adding the code tag

    Please see below for the code again, thanks all

    Please Login or Register  to view this content.

+ 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. copying cell from one workbook and pasting value to another workbook
    By Desmond_Mocumi in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-20-2013, 07:19 AM
  2. [SOLVED] Copying data from external workbook into current workbook based on cell value
    By Brontosaurus in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-07-2012, 11:17 AM
  3. Copying Cell from Workbook to Another Workbook
    By merreena in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 05-10-2010, 05:54 AM
  4. Copying A Cell Value in One Workbook To Another Workbook
    By AndyMcNeil in forum Excel Programming / VBA / Macros
    Replies: 22
    Last Post: 11-12-2008, 12:35 PM
  5. Copying from one cell, into the next empty cell in column A in another workbook
    By Grangey in forum Excel Programming / VBA / Macros
    Replies: 24
    Last Post: 08-06-2008, 04:13 PM

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