Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / July 2004

Tip: Looking for answers? Try searching our database.

Tabstops

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
TechieGator - 31 Jul 2004 19:13 GMT
Using VBA how to move to the next Tabstop ?

I have 4 tabstops, and I want to type something at each of those tabstops. Using Selection.TypeText("\t") works only if the string in the previous tabstop is long enough to push it to the next tabstop. Any ideas anyone?
Doug Robbins - 31 Jul 2004 11:58 GMT
Selection.InsertBefore String1 & vbTab & String2 & vbTab & String3 & vbTab &
String4 & vbTab & String5

Signature

Please respond to the Newsgroup for the benefit of others who may be
interested.   Questions sent directly to me will only be answered on a paid
consulting basis.

Hope this helps,
Doug Robbins - Word MVP

>
> Using VBA how to move to the next Tabstop ?
>
> I have 4 tabstops, and I want to type something at each of those tabstops.
> Using Selection.TypeText("\t") works only if the string in the previous
> tabstop is long enough to push it to the next tabstop. Any ideas anyone?
Helmut Weber - 31 Jul 2004 19:53 GMT
Hi,
you don't have 4 tabstopps. You have defined the position of
4 possible tabstopps, but the tabs aren't yet there. I'd say,
create a line, which might be a paragraph in your case, with
the 4 tabs and jump from one to the next, maybe using a macro
"GotoNextTab", like "collapse", selection.find "^t", plus
"collapse" again.
---
Greetings from Bavaria, Germany
Helmut Weber, MVP
"red.sys" & chr(64) & "t-online.de"
Word XP, Win 98
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.