G
GK80535
I'm trying to write a macro that toggles through font styles.
I'm trying to get the current font style and store it in a variable s
that I can reapply the original font style later after changing it
When I do this,
myVariable = activecell.font.color (to store the font color)
and later, I try to do this.
activecell.font.color = myVariable (to restore the font color)
The font in the activecell does not return to what was stored i
myVariable.
Can anyone help me out? Also, I used font.color in my example, but I'
actually interested in storing and restoring the entire font styl
(background color, font color, bold, italic, etc.)
I'm trying to get the current font style and store it in a variable s
that I can reapply the original font style later after changing it
When I do this,
myVariable = activecell.font.color (to store the font color)
and later, I try to do this.
activecell.font.color = myVariable (to restore the font color)
The font in the activecell does not return to what was stored i
myVariable.
Can anyone help me out? Also, I used font.color in my example, but I'
actually interested in storing and restoring the entire font styl
(background color, font color, bold, italic, etc.)