[Log In ] [New Posts] []
Go Back   GotApex? Forums Forums > General Topics > Software, OS, and the Internet
User Name
Password

Reply
 
Thread Tools Search this Thread Display Modes
Old 03-29-2004, 03:01 PM   #1
Dave_7
Captain
 
Join Date: May 2000
Location: L.A..... Costa Mesa... Whatever, Man!
Posts: 1,824
Visual Basic in Word...

Here's what I need...

I have a field as shown:

LISTNUM LegalDefault \s 1


And I want to change that 1 to whatever number I want... but I want to do it in a UserForm.

Is there some way I can code this to change that 1 to any number I enter in a UserForm TextBox?

If I can enter a value into a field/TextBox and have it replace the 1... that will make my project complete.

Trying to give the user the option to start the numbering at a place other than the default (which is 1, in this case) at the user's discression.

I've tried using a find and replace, but it doesn't seem to work for fields. Is there a variable that I can use in that field?


Dave.
Dave_7 is offline   Reply With Quote
Old 03-29-2004, 05:44 PM   #2
Dave_7
Captain
 
Join Date: May 2000
Location: L.A..... Costa Mesa... Whatever, Man!
Posts: 1,824
Found it...


With ActiveDocument.Fields(1)
.Code.Text = ("LISTNUM LegalDefault \s " + (TextBox11.Value))
End With


Man... I'm good.



Dave.
Dave_7 is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -7. The time now is 08:17 AM.