+ Reply to Thread
Results 1 to 4 of 4

macro? copy and paste from different workbooks

  1. #1
    Registered User
    Join Date
    03-28-2013
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    14

    macro? copy and paste from different workbooks

    I need a formula / macro to look for a name in workbook 1 in 10 different columns in workbook 2. if the name is in any of the columns, then i want to copy and paste a group of cells from associated with that column in workbook 2 and put them into exact same cell arrangement in workbook 1. confusing explanation i know. i'm sorry. i'm not a veteran programmer but am constantly working to understand more. any help would be appreciated.

  2. #2
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: macro? copy and paste from different workbooks

    Hi LittleGuy,

    Here's a framework for a finder routine - if you'll provide more detail, I'll try to write the paste=copy code for you

    Please Login or Register  to view this content.
    Directions for running the routine(s) just supplied

    Copy the code to the clipboard

    Open your Workbook

    Save your Workbook or Another Workbook designated for Macros as Macro_Enabled

    Press ALT + F11 to open the Visual Basic Editor.

    Select “Module” from the Insert menu

    Type "Option Explicit" then paste the code under it

    With the cursor between Sub and End Sub press F5 (F8 to Single Step)

    OR

    Press ALT + Q to close the code window.

    Press ALT + F8 then double click on the macro name
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

  3. #3
    Registered User
    Join Date
    03-28-2013
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    14

    Re: macro? copy and paste from different workbooks

    i think i'm over my head. even with your help. just too advanced for me, and it's hard for me to explain . but here goes...i have a tab for each day of the year in two different workbooks. in w1, on each day there is a group of cells 6x16 that are like a little chart i made. there are ten of these 'charts' on each day. it is random how many are filled in with data. the data contains employee names. workbook 2 (w2) is an employee daily record. so basically, if that employee's name shows up in any of the columns of the 'charts' in w1 then i want that 6x16 'chart' copied and pasted into w2 on the matching tab as in w1. confusing i know. if can help i thank you. if not i understand

  4. #4
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: macro? copy and paste from different workbooks

    Hi LittleGuy,

    I need a sample w1 and w2 in order to help you. To post a workbook - go advanced, click on the paper clip icon and follow the instructions!

+ 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