Consulting

Results 1 to 6 of 6

Thread: Solved: Update different workbook from active worksheet

  1. #1

    Solved: Update different workbook from active worksheet

    Hello all,

    I have two workbooks in Excel 2000. Source.xls has multiple sheets and stores price lists for products/services provided (no duplicate data). Target.xls has multiple sheets and is where we create cost estimates for numerous job sites for a single client (potentially a lot of duplicate data). As I update the cost of an item in Source.xls, I'd like that change to be reflected anywhere the item is found in Target.xls.

    The sheets in both workbooks have the following setup:

    ColA = Qty
    ColB = PartNumber
    ColC = PartDescription
    ColD = UnitMeasurement
    ColE = UnitMaterialCost
    ColF = UnitLaborCost
    ColG = UnitEquipCost
    ColH = ExtMaterialCost
    ColI = ExtLabor Cost
    ColJ = ExtEquipCost

    The criteria used to find matching items will be in columns B and C. Updates will be made in columns E-G, and Target.xls will be open.

    I thought I'd found the answer in Silver Fox's posting, Updating multiple worksheets at once; four source, three target, but I couldn't get it to update the separate workbook. Any help would be greatly appreciated, thank you.

    And thanks to everyone for all the other solutions I've found in this forum!
    ...

  2. #2
    Administrator
    VP-Knowledge Base
    VBAX Grand Master mdmackillop's Avatar
    Joined
    May 2004
    Location
    Scotland
    Posts
    14,489
    Location
    Can you post a small sample of both workbooks? Use Manage Attachments in the Go Advanced section.
    MVP (Excel 2008-2010)

    Post a workbook with sample data and layout if you want a quicker solution.


    To help indent your macros try Smart Indent

    Please remember to mark threads 'Solved'

  3. #3
    Yes, thanks. Here is the source file, with some sample data.

  4. #4
    Here's the target file.

  5. #5
    Administrator
    VP-Knowledge Base VBAX Grand Master mdmackillop's Avatar
    Joined
    May 2004
    Location
    Scotland
    Posts
    14,489
    Location
    Hi Redness.
    The simplest solution I can see is to add the row number into your source sheet and data rows eg "DM/3" and add a formula into the Target sheet (I've assumed item 8 for example purposes only)
    [vba]
    .Cells(vRow, 6).Formula = "=[Source.xls]" & Split(Me.cboxDesc.List(vItem, 8),"/")(0) _
    & "E" & Split(Me.cboxDesc.List(vItem, 8),"/")(1)
    [/vba]
    Last edited by mdmackillop; 11-04-2006 at 10:33 AM. Reason: code line revised
    MVP (Excel 2008-2010)

    Post a workbook with sample data and layout if you want a quicker solution.


    To help indent your macros try Smart Indent

    Please remember to mark threads 'Solved'

  6. #6
    Thanks MD. I'll give that a try.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •