Auto Export Excel Data to MS Word Form
Easy way to populate MS word form using Excel table data.
main code :
Option Explicit
Const FilePath As String = "C:\Users\Acer-PC\Desktop\AUTOEXPORT\"
Dim wd As New Word.Application
Sub ExportButton()
Dim doc As Word.Document
wd.Visible = True
Dim Name As String
Dim Address As String
Name = ThisWorkbook.Sheets(1).Range("D5").Value 'value from sheet1
Address = ThisWorkbook.Sheets(1).Range("D6").Value
Set doc = wd.Documents.Open(FilePath & "output.docx")
Copy2word "NameField", Name
Copy2word "AddressField", Address
doc.Close
wd.Quit
'MsgBox "Created files in " & FilePath & "!"
End Sub
Sub Copy2word(BookMarkName As String, Text2Type As String)
'copy each cell to relevant Word bookmark
wd.Selection.GoTo What:=wdGoToBookmark, Name:=BookMarkName
wd.Selection.TypeText Text2Type
End Sub
Видео Auto Export Excel Data to MS Word Form канала Kamirul Kamirul
main code :
Option Explicit
Const FilePath As String = "C:\Users\Acer-PC\Desktop\AUTOEXPORT\"
Dim wd As New Word.Application
Sub ExportButton()
Dim doc As Word.Document
wd.Visible = True
Dim Name As String
Dim Address As String
Name = ThisWorkbook.Sheets(1).Range("D5").Value 'value from sheet1
Address = ThisWorkbook.Sheets(1).Range("D6").Value
Set doc = wd.Documents.Open(FilePath & "output.docx")
Copy2word "NameField", Name
Copy2word "AddressField", Address
doc.Close
wd.Quit
'MsgBox "Created files in " & FilePath & "!"
End Sub
Sub Copy2word(BookMarkName As String, Text2Type As String)
'copy each cell to relevant Word bookmark
wd.Selection.GoTo What:=wdGoToBookmark, Name:=BookMarkName
wd.Selection.TypeText Text2Type
End Sub
Видео Auto Export Excel Data to MS Word Form канала Kamirul Kamirul
Показать
Комментарии отсутствуют
Информация о видео
Другие видео канала
![(1/2) Automating Word Documents from Excel - No VBA](https://i.ytimg.com/vi/212oGP03wuI/default.jpg)
![Inserting Excel Data into Microsoft Word](https://i.ytimg.com/vi/SX40N9JdSFc/default.jpg)
![Auto-populate a word document with excel data](https://i.ytimg.com/vi/CrgQkz3JIzY/default.jpg)
![How to put an EXCEL table into word. Editable Table (2019)](https://i.ytimg.com/vi/Anv1ZWYUPpk/default.jpg)
![How to Copy Excel Table into MS Word (that auto updates)](https://i.ytimg.com/vi/NsGqklfUke4/default.jpg)
![Mail Merge from Excel to Microsoft Word](https://i.ytimg.com/vi/mFqCvTOpOL0/default.jpg)
![Fully Automated Data Entry User Form in Excel - Step By Step Tutorial](https://i.ytimg.com/vi/P53T6oxgUVA/default.jpg)
![Import Data from Excel into Word Automatically Using VBA](https://i.ytimg.com/vi/Qu3y-qBN48M/default.jpg)
![Tutorial on How to Convert Word Document to Excel](https://i.ytimg.com/vi/k1LuVUssVGc/default.jpg)
![Excel की फाईल को Word से Link करें | Ms Word Data Will Automatically Change](https://i.ytimg.com/vi/uC8W-WjC0R0/default.jpg)
![Properly Use Mail Merge from Excel to Word & Outlook | Dynamic Linking between Excel & Word](https://i.ytimg.com/vi/0XifMrBegS0/default.jpg)
![How to create MS Word document automatically with Excel](https://i.ytimg.com/vi/9FWc7EvlfjQ/default.jpg)
![Push Data from Excel to MS Word Content Controls using Excel VBA](https://i.ytimg.com/vi/HwGs4OXz0dc/default.jpg)
![Fully Automated Student Marks Sheet (Transfer Data from Excel to Word) - A Step By Step Tutorial](https://i.ytimg.com/vi/8cb0pV7JJPc/default.jpg)
![How to Exact Copy & Paste Excel Data into Word Table](https://i.ytimg.com/vi/Z5-5m51GwS0/default.jpg)
![How to Write on Word from Excel using VBA](https://i.ytimg.com/vi/-2oPxHmAdtA/default.jpg)
![(2/2) Automating Word Documents from Excel - No VBA - Building Forms and Using Formulas](https://i.ytimg.com/vi/zPnlLIfOSO0/default.jpg)
![Free Excel VBA Course #35 - Creating Word Reports Using VBA](https://i.ytimg.com/vi/FVaqx_rToKQ/default.jpg)
![How to AUTOMATICALLY Fill PDF Forms Using Microsoft Excel in 1 CLICK](https://i.ytimg.com/vi/uU55FCbPHCI/default.jpg)
![How to Link Excel file to Word document using Mailmerge](https://i.ytimg.com/vi/1YHbYBibGKI/default.jpg)