Hello, I would like to export a XML file, on click event via button. When it exports I would like to show a pop up window, where to save the file to. Same when you want to save a file a picture online, it's shows you the file explorer. Is it possible with the ExportXML method?
Here is how my code looks like
It just saves to DataTarget when it's defined, but I don't want to set where it should save to, but so can the user choose himself where to save it.
Thank you!!
Here is how my code looks like
Code:
Dim contacts As AdditionalData
Dim filter As String
Set contacts = Application.CreateAdditionalData
contacts .Add "tbl_xm_ct"
filter = Me.ID
Application.ExportXML ObjectType:=acExportTable, DataSource:="tbl_xm", _
DataTarget:="C:\Users\...\test.xml", _
WhereCondition:="ID=" & filter, _
AdditionalData:=contacts
It just saves to DataTarget when it's defined, but I don't want to set where it should save to, but so can the user choose himself where to save it.
Thank you!!