G
GracieLou
Hi,
I am using Access 2003.
I am exporting tables to Excell. No problem here.
However, what I want to do is set the name of the Excel file using VB in
Access. I' would like to use NameXLS to name the Excel file I'm exporting to.
Dim NameXLS As String
NameXLS = "rptByPreparer" & cboPreparer(0)
DoCmd.OutputTo acOutputTable, "tblByPreparer", acFormatXLS, _
"G:\3115\namexls.xls"
Application.FollowHyperlink "G:\3115\namexls.xls"
I wnat the name of the Excel file to be "rptByPreparerJSmith". JSmith is
the value of cboPreparer(0). How can I concantenate these two names into one
and have the Excel file have that name?
Thanks to all.
I am using Access 2003.
I am exporting tables to Excell. No problem here.
However, what I want to do is set the name of the Excel file using VB in
Access. I' would like to use NameXLS to name the Excel file I'm exporting to.
Dim NameXLS As String
NameXLS = "rptByPreparer" & cboPreparer(0)
DoCmd.OutputTo acOutputTable, "tblByPreparer", acFormatXLS, _
"G:\3115\namexls.xls"
Application.FollowHyperlink "G:\3115\namexls.xls"
I wnat the name of the Excel file to be "rptByPreparerJSmith". JSmith is
the value of cboPreparer(0). How can I concantenate these two names into one
and have the Excel file have that name?
Thanks to all.