+ Reply to Thread
Results 1 to 1 of 1

DDE Cells in a master workbook from cells in another workbook

  1. #1
    Registered User
    Join Date
    05-11-2021
    Location
    Reading,England
    MS-Off Ver
    16.0
    Posts
    1

    DDE Cells in a master workbook from cells in another workbook

    Hi,

    I have a MasterScore.xlsm. I wish to use DDE to get automatic updates from specific cells of other Workbooks.
    DE_Score.xlsx, JB_Score.xlsx, BP_Score.xlsx.
    I don't want to use ADODB or similar to read the data in, I need the data/updates to be dynamic or automatically synchronise with the master Workbook.

    The Manual Operation I wish to Automate:
    * In Excel, I would open a xx_Score.xlsx, activate shDATA sheet, then select A2, right click copy.

    * Select MasterScore.xlsm, Activate mData sheet, select the desired destination cell and right click "Paste-Link"

    ='C:\Users\MG\Desktop\VBA-WIP\VBA\[DE_Score.xlsx]shData'!$A$2" - Would appear in my sheet and this creates the outcome I desire.

    * Save the MasterScore.xlsm.
    * Close the DE_Score.xlsx.

    Therefore every time DE opens his "score .xlsx" and updates cell A2, it would immediately reflect in my Masterscore.xlsm.

    What code or command can I use to create the "Paste-Link" style data into my MasterScore.xlsm, mdata, {cell} to avoid having to manually perform this task for a 100+ xx_Score.xlsx Workbooks. Can I simply write code in the MasterScore.xlsm which DDElinks the desired cells from the desired workbooks? Once I know the command I assume I'll be able to loop through the code to perform this for 100+ workbooks without having to manually interact with them, I just can't work out the VBA to achieve this - Paste-Link DDE bit.

    Thank you, ever so much.
    Last edited by MalcomG1234; 05-11-2021 at 05:02 PM. Reason: More Clarity

+ 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. Help with copying data from cells in multiple workbooks to a master workbook
    By jamesh4ll in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-17-2014, 05:28 PM
  2. Linking Cells from Master sheet to data sheets in workbook
    By Ag Research in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 02-15-2013, 04:42 AM
  3. Copying cells from existing sheets to new row of master sheet in one workbook
    By volcaremos in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 11-06-2012, 03:53 PM
  4. Replies: 0
    Last Post: 09-18-2012, 09:47 AM
  5. Replies: 0
    Last Post: 09-18-2012, 08:10 AM
  6. [SOLVED] Copy cells from multiple worksheets and workbooks to one master workbook
    By Concept in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-30-2012, 01:42 PM
  7. Macro to merge cells from multiple workbooks into one Master workbook
    By psmcltraining in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-18-2009, 03:56 AM

Tags for this Thread

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