Code for reset character formatting to style base

C

Charles Kenyon

Hi,

What is the vba code equivalent to pressing Ctrl-Spacebar, if there is such?

How about for Ctrl-Q?

I can't even guess how to find this in the vba help.

TIA

--

Charles Kenyon

See also the MVP FAQ: <URL: http://www.mvps.org/word/> which is awesome!
--------- --------- --------- --------- --------- ---------
This message is posted to a newsgroup. Please post replies
and questions to the newsgroup so that others can learn
from my ignorance and your wisdom.
 
M

Mark Tangard

Charles,

Ctrl+Q: [expression].ParagraphFormat.Reset
Ctrl+Space: [expression].Font.Reset

where [expression] is a Selection or Range object

I can't imagine where the help would mention this either.
 
J

JGM

Hi Charles,
What is the vba code equivalent to pressing Ctrl-Spacebar, if there is such?
Selection.Font.Reset

How about for Ctrl-Q?
Selection.ParagraphFormat.Reset

HTH
Cheers!
 
C

Charles Kenyon

Thank you Mark and Jean-Guy. Talk about quick service!
--

Charles Kenyon

See also the MVP FAQ: <URL: http://www.mvps.org/word/> which is awesome!
--------- --------- --------- --------- --------- ---------
This message is posted to a newsgroup. Please post replies
and questions to the newsgroup so that others can learn
from my ignorance and your wisdom.
 
J

Jonathan West

Charles Kenyon said:
Hi,

What is the vba code equivalent to pressing Ctrl-Spacebar, if there is such?

Selection.Font.Reset


How about for Ctrl-Q?
Selection.ParagraphFormat.Reset



I can't even guess how to find this in the vba help.

Easy when you know how :)
 
P

Peter Hewett

Hi Charles

This is equivalent to Ctrl+Spacebar:

Selection.Font.Reset


and Ctrl+Q is:

Selection.ParagraphFormat.Reset

Cheers - Peter
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top