I currently have a excel sheet doing calculations and linking them to a word document. I have a macro written that opens a word document. The document itself has links to the excel sheet to correctly fill in the needed data.
My problem is that I need to have the Word document able to be emailed without having these links. In Excel, I would just copy and special paste values. Is there a function to do the same in Word (via VB in excel)?
An idea of my current code follows:
Sub CommandButton1_Click()
Dim wdApp As Object
Dim wdDoc As Object
Location = ThisWorkbook.Path_ & "Template FolderGECO.doc"
Set wdApp = CreateObject_("Word.Application")
Set wdDoc = wdApp.Documents.Open_(Location)
wdApp.Visible = True
With wdApp
.Dialogs(wdDialogFileSaveAs).Show
End With
Set wdObj = Nothing
Range("A1").Select
Any ideas on how to remove the current links in the Word document?
My problem is that I need to have the Word document able to be emailed without having these links. In Excel, I would just copy and special paste values. Is there a function to do the same in Word (via VB in excel)?
An idea of my current code follows:
Sub CommandButton1_Click()
Dim wdApp As Object
Dim wdDoc As Object
Location = ThisWorkbook.Path_ & "Template FolderGECO.doc"
Set wdApp = CreateObject_("Word.Application")
Set wdDoc = wdApp.Documents.Open_(Location)
wdApp.Visible = True
With wdApp
.Dialogs(wdDialogFileSaveAs).Show
End With
Set wdObj = Nothing
Range("A1").Select
Any ideas on how to remove the current links in the Word document?