Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VBA Question

Status
Not open for further replies.

mottelecom

Programmer
Aug 26, 2002
100
US
OK, I've done research and reading for the past three days for something I think should be easy to do.... I created a workbook template, and am trying to accomplish the following:

When someone opens the workbook, a form opens up prompting for a Reference #, Description, and Name. With that information I would like to auto fill a field in the form that will name and save the document with \\network path\Reference# -Description.xls. I've created the form, but cannot get it to initialize. I have no idea how to create global variables that will populate the documents name and save it to a directory.

This seems like a simple taks, but Ive been trying to get it to work for several days.

HELP

Thanks

MOTTECH
 
Try this:

Code:
Private Sub Workbook_Open()
    UserForm1.Show
End Sub

Replace Userform1 with the name of your form.

TomCologne
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top