Hello,
I would like a command button which would copy a 'completed' userform and save it to a clipboard for pasting into a Microsoft Word document as a permanent record of the data entered into the form. I've tried the following code . . .
Private Sub cmdCopy_Click()
UserForm1.Copy
End Sub
. . . but get a message from Word that there's a problem saving the file ("There is a problem saving the file. Usually this is because the disk or floppy disk is too small for the file or is full, RAM memory is low, or there is a permission problem with the drive the file is being saved to. If the amount of disk space for a paging file is low, save the file to another drive. If the RAM memory is low, increase available RAM. If permissions to the drive do not allow you to save to that drive, save the file to another drive or request permissions from the administrator to save files to the drive.").
As a work-around, a copied screenshot of the completed userform would also suit my purpose. Does anybody know of any VBA code which would accomplish this (that is, take a screenshot of the form, save it to a clipboard, and make the screenshot available to Word)?
Many thanks in advance for your time and expertise.
I would like a command button which would copy a 'completed' userform and save it to a clipboard for pasting into a Microsoft Word document as a permanent record of the data entered into the form. I've tried the following code . . .
Private Sub cmdCopy_Click()
UserForm1.Copy
End Sub
. . . but get a message from Word that there's a problem saving the file ("There is a problem saving the file. Usually this is because the disk or floppy disk is too small for the file or is full, RAM memory is low, or there is a permission problem with the drive the file is being saved to. If the amount of disk space for a paging file is low, save the file to another drive. If the RAM memory is low, increase available RAM. If permissions to the drive do not allow you to save to that drive, save the file to another drive or request permissions from the administrator to save files to the drive.").
As a work-around, a copied screenshot of the completed userform would also suit my purpose. Does anybody know of any VBA code which would accomplish this (that is, take a screenshot of the form, save it to a clipboard, and make the screenshot available to Word)?
Many thanks in advance for your time and expertise.