Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
Does anyone knows if it is possible to export text object content to a text file.
Thanks in Advance.
Hi,
Right click your sheet object -->click on properties -> export and save as .txt file
check this simple macro, it will create a txt file at same path with qvw
Sub ExportToNotepad
Set obj = ActiveDocument.GetSheetObject("TX01")
Set objpro = obj.GetProperties
Set docpro = ActiveDocument.GetProperties
Set fso = CreateObject("Scripting.FileSystemObject")
Set f1 = fso.CreateTextFile(docpro.MyWorkingDirectory & "\TX01.txt", True)
f1.WriteLine(objpro.Layout.Text.v)
f1.Close
End Sub
also find my example attached
Hi , before you run the macro , plz ensure you have allowed system access for it
Ctrl + M to open and set
txt file will be saved at same path with qvw file
I tried using this but it exports the code behind the text box (i.e. field names and calculation) not what is on screen. Is there an alterative?
Actually found another thread: