J
jon
Hi everyone, i'm trying to open an excel document in word
to form a document with a table. My problem is that when
it opens it always asks whether i want to open the entire
workbook, sheet1,2, or 3. Is there anyway of telling word
what i need (just sheet1) in vba so the user doesn't have
to make this choice?
The code i'm using is:
Documents.Open FileName:="tempdetails.xls",
ConfirmConversions:=False, _
ReadOnly:=False, AddToRecentFiles:=False,
PasswordDocument:="", _
PasswordTemplate:="", Revert:=False,
WritePasswordDocument:="", _
WritePasswordTemplate:="", Format:=wdOpenFormatAuto
thanks for your help.
to form a document with a table. My problem is that when
it opens it always asks whether i want to open the entire
workbook, sheet1,2, or 3. Is there anyway of telling word
what i need (just sheet1) in vba so the user doesn't have
to make this choice?
The code i'm using is:
Documents.Open FileName:="tempdetails.xls",
ConfirmConversions:=False, _
ReadOnly:=False, AddToRecentFiles:=False,
PasswordDocument:="", _
PasswordTemplate:="", Revert:=False,
WritePasswordDocument:="", _
WritePasswordTemplate:="", Format:=wdOpenFormatAuto
thanks for your help.