Question: This function creates a word doc, saves and closes it, but is failing when I attempt to reopen. It says this at the remote call doesn't work. What is the proper practice for reopening a word doc? Or is it unnecessary to close and open again? It appears there is difficulty with communication between word and excel.

```
Sub tester()
    Dim wordApp As Object
    Dim wordDoc As Object
    Dim appendDate As String
    Set wordApp = CreateObject("Word.Application")
    wordApp.Visible = True

    appendDate = "Y"
    fName = "robot"

    If appendDate = "Y" Or appendDate = "y" Then
        fName = ThisWorkbook.Path & "\" & fName & "-" & Format(Now(), "yyyymmdd-hhmm") & ".docx"
    Else
        fName = ThisWorkbook.Path & "\" & fName & ".docx"
    End If

    wordApp.Documents.Add.SaveAs2 fileName:=fName
    wordApp.Documents.Close
    wordApp.Application.Quit
    Set wordDoc = wordApp.Documents.Open(fileName:=fPath, readOnly:=False)
    ThisWorkbook.Sheets("Sheet1").ChartObjects(1).Activate
    ActiveChart.ChartArea.Copy
    wordDoc.Application.Selection.PasteSpecial Link:=False, DataType:=wdPasteOLEObject, Placement:=wdInLine

End Sub

```

Answer: 
Your question is correct.

Check Mozilla documentation to find complete details with example

<https://developer.mozilla.org/en-US/docs/Web/API/History/pushState>

<https://developer.mozilla.org/en-US/docs/Web/API/History_API>
I believe what you are looking for is called pushState. Here is a Javascript example of using it.

```
if (history.pushState) {
    var newurl = window.location.protocol + "//" + window.location.host + window.location.pathname + 'VARIABLES I WANT TO ADD';
    window.history.pushState({path:newurl},'',newurl);
}

```