![]() |
|
|
Thread Tools | Display Modes |
#25
|
||||
|
||||
![]()
If you know how to define the range where the file needs to be inserted then you just do that
Code:
Dim aRng As Range Set aRng = ActiveDocument.Paragraphs(3).Range aRng.InsertFile FileName:="C:\Text-To-MsWord\Sample.txt", ConfirmConversions:=False, Link:=False, Attachment:=False
__________________
Andrew Lockton Chrysalis Design, Melbourne Australia Last edited by Guessed; 02-03-2021 at 12:06 AM. Reason: Amended code |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Need help to get data from notepad to word | ganesang | Word VBA | 2 | 08-11-2019 10:21 PM |
Word does not stop at the set tab, but it keeps forever on the same line like it would in Notepad. | danvina@gmail.com | Word | 2 | 01-16-2019 02:33 PM |
![]() |
Noclip1 | Word | 1 | 10-25-2017 10:55 PM |
![]() |
JohnTurnbull | Word | 5 | 08-27-2017 11:17 PM |
![]() |
Robert11 | Word | 3 | 08-12-2013 12:35 PM |