How do you print the contents of a text box in a userform?
How do you print the contents of a text box in a userform?
Peace of mind is found in some of the strangest places.
Just the textbox, or the userform?
____________________________________________
Nihil simul inventum est et perfectum
Abusus non tollit usum
Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
James Thurber
Originally Posted by xld
____________________________________________
Nihil simul inventum est et perfectum
Abusus non tollit usum
Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
James Thurber
Hi Bob,
I got this to work ok by using
[VBA]UserForm1.PrintForm[/VBA]
My sticking point now is how do you either export or save a userform to your desktop so you can open it and read it? Maybe save it as an HTML or something? Thanks
Peace of mind is found in some of the strangest places.
Export the file, and you can open that in any text editor.
____________________________________________
Nihil simul inventum est et perfectum
Abusus non tollit usum
Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
James Thurber
I found this code but could it be modified to work as you described?
[VBA]Private Sub CommandButton2_Click()
Dim filename As String
filename = Application.GetSaveAsFilename("CCPE Instructions", "Excel (*.xls),*.xls")
If filename <> "" And filename <> "False" Then
ActiveWorkbook.SaveAs filename
End If
End Sub[/VBA]
Peace of mind is found in some of the strangest places.
I found this code but could it be modified to work as you described?
[VBA]Private Sub CommandButton2_Click()
Dim filename As String
filename = Application.GetSaveAsFilename("CCPE Instructions", "Excel (*.xls),*.xls")
If filename <> "" And filename <> "False" Then
ActiveWorkbook.SaveAs filename
End If
End Sub[/VBA]
Peace of mind is found in some of the strangest places.
Sorry I posted my reply twice.
Peace of mind is found in some of the strangest places.
This is the sort of thing I meant Austen
[vba]
Workbooks("Book1").VBProject.VBComponents("Userform1").Export _
Filename:="C:\temp.frm"
[/vba]
and
[vba]
Workbooks("Book3").VBProject.VBComponents.Import _
Filename:="C:\temp.frm"
[/vba]
____________________________________________
Nihil simul inventum est et perfectum
Abusus non tollit usum
Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
James Thurber
I will give it a go. Thanks Bob.
Peace of mind is found in some of the strangest places.