V
Victor Boris Arnold
Word version: 2000.
I have some code where a style is assigned to the
selection (e.g., Selection.Style = wdStyleHeading1). What
I'd like to be able to do is vary the actual style used--
sometimes I'll use wdStyleHeading1, sometimes
wdStyleHeading2, etc. But I want to be able to specify the
particular constant via an argument passed to the
subroutine. So the variable would be constructed
as "wdStyleHeading" & Number. This would then have to be
evaluated as a built-in constant (I think like the eval
function available in some programming languages).
Is this possible with Word VBA?
I have some code where a style is assigned to the
selection (e.g., Selection.Style = wdStyleHeading1). What
I'd like to be able to do is vary the actual style used--
sometimes I'll use wdStyleHeading1, sometimes
wdStyleHeading2, etc. But I want to be able to specify the
particular constant via an argument passed to the
subroutine. So the variable would be constructed
as "wdStyleHeading" & Number. This would then have to be
evaluated as a built-in constant (I think like the eval
function available in some programming languages).
Is this possible with Word VBA?