![]() |
#4
|
||||
|
||||
![]()
Well, if it's always the same Excel cell and same Word document - as your code implies - you don't need VBA at all. All you need to do is to set up an OLE link That's as simple as copying the Excel cell, switching to Word, selecting the destination and choosing Edit|Paste Special, with the 'paste link' option and choosing a suitable paste format. Done. From now on, the Word document will update to reflect any changes to the Excel cell.
PS: The error is because you're trying to use a named constant with late binding. You need to either: • use early binding; • define that constant; or • substitute the name with its value.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Extract Document ID and description from header in multiple Word documents and paste in new word doc | venkat_m | Word VBA | 2 | 05-23-2020 03:57 AM |
![]() |
ArviLaanemets | Word VBA | 4 | 11-18-2019 12:25 AM |
Document attached to Word Header | MidgesMom | Word | 0 | 11-13-2018 10:58 AM |
Convert csv document to excel, format date | coba | Excel Programming | 3 | 01-07-2016 04:18 AM |
![]() |
chamdan | Word VBA | 7 | 11-15-2013 05:06 PM |