Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.docmanagement
Kamran Kamran is offline
external usenet poster
 
Posts: 80
Default Freeze cursor position while running a macro

Is it possible to freeze the cursor position while running a macro? I want
the user to be able to click an Option Button that goes and changes a bunch
of fields, but I want the cursor to stay where it is so that after it's done,
the user can just continue where they left off. The way it is now, the focus
ends up on the last field being modified, which is far away from the Option
Button being clicked.
Thanks.
  #2   Report Post  
Posted to microsoft.public.word.docmanagement
Robert M. Franz (RMF) Robert M. Franz (RMF) is offline
external usenet poster
 
Posts: 1,741
Default Freeze cursor position while running a macro

Hello Kamran

Kamran wrote:
Is it possible to freeze the cursor position while running a macro? I want
the user to be able to click an Option Button that goes and changes a bunch
of fields, but I want the cursor to stay where it is so that after it's done,
the user can just continue where they left off. The way it is now, the focus
ends up on the last field being modified, which is far away from the Option


non-developer here, so take the following with a grain of salt!

I see basically two possiblities:

1. you save the cursor position and place it there again after you're
code is through with the serious stuff, or

2. you use the range instead of the selection object in your code (or an
altogether different approach to do your changes).

If this all sounds Greek to you, see the "Beginners' tips" in
http://word.mvps.org/FAQs/MacrosVBA/index.htm

Specific VBA questions are best posed in one of the .vba newsgroups.

HTH
Robert
--
/"\ ASCII Ribbon Campaign | MSFT |
\ / | MVP | Scientific Reports
X Against HTML | for | with Word?
/ \ in e-mail & news | Word | http://www.masteringword.eu/
Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Is it possible to "freeze" the cursor position in the middle of apage? ehamiter Page Layout 2 January 17th 08 02:43 PM
Running a macro within a form? Trefilov22 Microsoft Word Help 2 July 24th 07 09:12 PM
Running a macro from Word Dave Neve Microsoft Word Help 1 November 3rd 05 07:24 AM
Anybody having Cursor freeze up when using word 2003? Kelly C Microsoft Word Help 0 August 29th 05 09:54 PM
Running Macro from Word vs running macro from vb.net prog Simon New Users 0 July 16th 05 10:17 AM


All times are GMT +1. The time now is 09:13 PM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"