How do I insert a tab in a macro?

G

Guest

While in Word with a macro form using the tab key will advance the cursor to
the next block. I want to insert a standard tab; what keystroke must I use?
 
C

Charles Kenyon

Try Ctrl-Tab. What you are talking about is what Word calls an "online
form." Check this in help. For more about online forms, follow the links at
http://addbalance.com/word/wordwebresources.htm#Forms or
http://word.mvps.org/FAQs/Customization/FillinTheBlanks.htm especially Dian
Chapman's series of articles. You may also want to look at
http://www.word.mvps.org/FAQs/TblsFldsFms/LinesInForms.htm.

Hope this helps,
--

Charles Kenyon

Word New User FAQ & Web Directory: http://addbalance.com/word

Intermediate User's Guide to Microsoft Word (supplemented version of
Microsoft's Legal Users' Guide) http://addbalance.com/usersguide




--------- --------- --------- --------- --------- ---------
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.
 
G

Guest

Thank you for the response. Ctrl-Tab has no affect, along with many other
combinations I have attempted.

Regards,
-Joshua
 
C

Charles Kenyon

Are we talking about setting a tab or about inserting the spacing character,
a tab? Ctrl-Tab does work in an online form. It is possible that there are
no tabs stops set in the particular paragraph, or that they are so close
together that you can't see an effect.
--
Charles Kenyon

Word New User FAQ & Web Directory: http://addbalance.com/word

Intermediate User's Guide to Microsoft Word (supplemented version of
Microsoft's Legal Users' Guide) http://addbalance.com/usersguide




--------- --------- --------- --------- --------- ---------
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.
 
G

Guest

We are talking about inserting the spacing character, a tab. In this macro
Ctrl-Tab does not work. Pressing Tab advances the cursor to the next field;
Shift-Tab goes backwards one field; Ctrl-Tab has no different affect than
just Tab, and advances the cursor to the next field. I know that a tab can be
done, as I am capable of pasting a tab into the field, however pressing Tab
and Ctrl-Tab have the same affect of advancing to the next field, not
spacing. Thanks again for your help.

Regards,
-Joshua
 
S

Suzanne S. Barnhill

What is the macro supposed to do?

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA

Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.
 
S

Suzanne S. Barnhill

Using a macro to create a form is very bizarre. Why don't you just create
the form as a template?

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA

Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.
 
D

Doug Robbins - Word MVP

Your use of the macro in this context is not correct. From your original
post it appears that you want to insert a tab space within a formfield as
used in a protected document. To do that, you do it the way that Charles
Kenyon advised you in his response to your original post. That is, you
press the Tab key while the Ctrl key is held down.

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP
 
G

Guest

I didn't make the document, I'm just using it. As I have repeatedly stated,
YES, I want to insert a tab space. As I have also stated, CTRL-TAB does NOT
work. It advances the cursor to the next field just as simply Tab would do.
Thanks anyway.

Regards.
-Joshua
 
S

Suzanne S. Barnhill

If that is the case then perhaps Ctrl+Tab has been assigned to the Tab
function in this template.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA

Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.
 

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