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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Not specifying parameters (easy question) 1

Status
Not open for further replies.

tommyboyau

Programmer
Feb 7, 2005
47
0
0
AU
Hey, this should be relatively easy but I don't really know what to call it.
Let's say i'm doing something like this
Dim myDoc as Word.Document = myApp.Documents.Open(filename...etc....etc)
In the .Open part there is about 15 parameters to put in. If I want to put in say the first and the last, how can I do it without typing
.Open(first,,,,,,,,,,,,,,,,,,,,,last)

I know there is a way to do it, just not sure how! Thanks
 
Dim myDoc as Word.Document = myApp.Documents.Open(FileName:="myFilename.doc",LastParameter:=myValue)

The key here is using := and named parameters.

Regards, Ruffnekk
---
Do not underestimate the power of simplicity!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top