P
Peter Rooney
I'm trying to define a footer in VBA that will display the values of two
variables, "StartDate" and "EndDate" within the following:
FilePageSetupFooter Text:="Page &[Page] of &[Pages] & [date]"
If I include [StartDate] and [Endate] like this within the footer string thus:
FilePageSetupFooter Text:="[StartDate] [EndDate] Page &[Page] of &[Pages] &
[date]"
all I get is the words printed out in brackets (which is what I'd expect, as
they're not reserved fields in the same way as Page], [Pages] etc.
I tried to create a compound string containing my variable names, and
substitute it into the ...text: = command, but then I couldn't reference
[Page], [Pages] correctly!
I want my string to say "Resource Usage Print from aa/aa/aa to bb/bb/bb Page
1 of cc dd/dd/dd"
where:
aa/aa/aa is my variable StartDate
bb/bb/bb is my variable EndDate
cc is [Pages]
dd/dd/dd is [Date]
Also, could somebody please put me straight on the correct syntax to use
when changing fonts and font sizes within a footer string - I think I'm using
too many sets of quotes!
Thanks in advance
Pete
variables, "StartDate" and "EndDate" within the following:
FilePageSetupFooter Text:="Page &[Page] of &[Pages] & [date]"
If I include [StartDate] and [Endate] like this within the footer string thus:
FilePageSetupFooter Text:="[StartDate] [EndDate] Page &[Page] of &[Pages] &
[date]"
all I get is the words printed out in brackets (which is what I'd expect, as
they're not reserved fields in the same way as Page], [Pages] etc.
I tried to create a compound string containing my variable names, and
substitute it into the ...text: = command, but then I couldn't reference
[Page], [Pages] correctly!
I want my string to say "Resource Usage Print from aa/aa/aa to bb/bb/bb Page
1 of cc dd/dd/dd"
where:
aa/aa/aa is my variable StartDate
bb/bb/bb is my variable EndDate
cc is [Pages]
dd/dd/dd is [Date]
Also, could somebody please put me straight on the correct syntax to use
when changing fonts and font sizes within a footer string - I think I'm using
too many sets of quotes!
Thanks in advance
Pete