B
BlueWolverine
Hello,
MS Access/Excel 2003 on XP PRO.
I have a subroutine that outputs a query to an excel file and then formats
it automatically, and everything works, I get no compile errors, except for
one little failure.
when I execute the line with the > in front of it is the problem.
With obj_excel 'Excel application
'whole bunch of stuff in here
With .activesheet.PageSetup
end with
'whole bunch of stuff in here
end with
this line does not happen. It executes, moves to the next line of code, but
it does not happen. the print title rows in the output excel file are not
set. the whole point of writing code like this is to prevent manually
formatting a document so this irritates the hell out of me, since I may
output 15 documents like this in a setting.
Any idea why this line of code is not executing?
Thanks.
MS Access/Excel 2003 on XP PRO.
I have a subroutine that outputs a query to an excel file and then formats
it automatically, and everything works, I get no compile errors, except for
one little failure.
when I execute the line with the > in front of it is the problem.
With obj_excel 'Excel application
'whole bunch of stuff in here
With .activesheet.PageSetup
'plus other.PrintTitleRows = "$1:$1"
end with
'whole bunch of stuff in here
end with
this line does not happen. It executes, moves to the next line of code, but
it does not happen. the print title rows in the output excel file are not
set. the whole point of writing code like this is to prevent manually
formatting a document so this irritates the hell out of me, since I may
output 15 documents like this in a setting.
Any idea why this line of code is not executing?
Thanks.