|
Make specified text uneditable in word using VBA
All,
I have a requirement such that the specified portion of the text in a
word document (.dot) should not be editable by the user. Please
suggest.
Thanks
Srini
...
|
3 |
14.12.2005 18:16:03 |
|
UserForm on a Word page.
I can place buttons, textboxes or even ActiveX controls on the page of a
Word document.
However, I want to place a VBA UserForm on the page.
Does anyone know how it's done?
Regards
Russ
...
|
2 |
14.12.2005 18:13:02 |
|
thank you
Just wanted to say thank you to everyone who takes the time to
contribute to these groups and helpt cunfused users like myself. Thank
you.
...
|
1 |
14.12.2005 10:43:28 |
|
How2Set default Word Fileopen/FileSaveAs Window to Details&MostRec
Does anyone know if there is a way to set the default Word 2003
Fileopen/FileSaveAs Window to Details with Most Recent files at the top
(....with the filename as the first column, with date modified as the 2d
column)?
Thanks,
Marceepoo...
|
2 |
13.12.2005 21:49:39 |
|
QeuryClose CloseMode
Word help appears to be reluctant to offer help on the subject terms. Would
anyone care to elaborate on the meaning of:
CloseMode = 0
CloseMode = 1
etc.
Thanks
--
Greg Maxey/Word MVP
See:
http://gregmaxey.mvps.org/word_tips.htm
For some helpful tips using Word.
...
|
3 |
13.12.2005 12:45:35 |
|
Declaring a UserForm name
I am trying to put together a reference sheet for explaining various ways of
loading and displaying UserForms. Tony Jolans, Jonathan West and Jezebel
have been quenching my thirst for knowledge with a 2-1/2 fire hose, but I
think I am getting close. Tony offered a variation of the following two
methods:
Sub CM4b()
Dim oForm As New myForm
oForm.Show
Unload oForm
Set oForm = Nothing...
|
10 |
12.12.2005 17:00:49 |
|
OnTime Method fails when Form displayed???
Why doesn't the OnTime Method work after a Form is displayed?
Using XP and WORD 2003 AND ME and WORD 2000 .
Works OK on Excel.
Also, it works in WORD if you make the form modeless. But it seems to me you
should be able to use a Modal Form.
any ideas?
thanks
Need a FORM with COMMANDBUTTON1
1. go to Forms Module and Run then click button: it does NOT work. The
msgbox is not...
|
3 |
10.12.2005 23:03:00 |
|
blanks in pull down menu
Is there a weay so that a pull down menu can have a blank space as an option
in a form? and is there a way for someone to enter their own word into the
pull down as one of the options? I'm using word 2002.
Thank You
...
|
3 |
08.12.2005 21:23:56 |
|
Word Forms
I have an evaluation form that was created in 1998. Not sure what version of
word was used to create it. The form was not created using text form fields.
You can't move from one box to another like when using text form fields. The
protect form button is used to calculate each table. You unlock the form then
lock it to activate the calculations. My problem is this form doesn't work
in ...
|
2 |
05.12.2005 19:14:36 |
|
Adding a TextBox at Run Time
Using VB 6.3 within Word, I want to add a TextBox control to a UserForm at
run time from within a class module and then handle an AfterUpdate event (or
similar).
I've declared :-
Private WithEvents LocalTextBox As TextBox
and then added the control as follows :-
Public Sub AddToForm(Form As UserForm)
Set LocalTextBox = Form.Controls.Add("Forms.TextBox.1")...
|
2 |
03.12.2005 02:49:51 |
|
Date "Mask" in Userform
I have a field that I would like to have users enter in a date. I have
created the text box, and have code that updates a bookmark in the document
with the text in the textbox, however I dont see any options for forcing
someone to enter the date as mm/dd/yyyy, and if its incorrect notify them.
Am I missing something? How can I make this happen? I am a complete novice
with VBA, so any in...
|
2 |
03.12.2005 02:19:26 |
|
Multiple listbox confusion!
Hi
I got a problem using multiple listboxes.
I have 3 of them: Listbox 1-3
If I click another option in 1 it reloads 2 with new info.
The same if I click in box 2 with box 3.
The marked line >>>>> doesn't set Listbox2.value to anything, just "". There
is a value in YY(0).nodeName
I'm confused as to why: The same line in UserForm_Initialize works fine.
Any ideas where...
|
3 |
01.12.2005 18:05:56 |
|
Insert Multiple listbox selections to single bookmark
Ive got a userform, that displays a list of departments. I would like
someone to be able to make multiple selections, and place thos selections
into a single bookmark separated by commas. This bookmark is contained
within the header.
The current code I have to populate the listbox, and place the last selected
item into the bookmark is below.
Thanks for your help!
Private Sub UserF...
|
4 |
01.12.2005 16:47:34 |
|
Date validation in userform
I have a field that I would like to have users enter in a date. I have
created the text box, and have code that updates a bookmark in the document
with the text in the textbox, however I dont see any options for forcing
someone to enter the date as mm/dd/yyyy, and if its incorrect notify them. I
just want it to make sure its entered properly, and that the date is a valid
date.
Am I missi...
|
8 |
01.12.2005 00:18:45 |
|
List available templates
Newbie question so apologies up front !
In Word 2003 i need a bit of vba to show me a list of available templates
sited on our server.
...
|
9 |
30.11.2005 12:19:45 |
|
How to lock in the column width
I am creating a form. One area I need to have the staff be able to type in a
table. How can I lock in the width of the column, when they type the right
margin keeps expanding and does on wrap. I know how to lock in the amount of
text in the Text Form field.
Thanks in advance
TJ...
|
2 |
29.11.2005 22:20:22 |
|
FAQ - frequently asked questions - vba - please read before posting - unofficial November posting
FAQ = Frequently Asked Questions - brief - vba - unofficial
This FAQ is posted weekly.- more or less
Please save us all some time by reading it before posting to the
news group.
This newsgroup is about VBA - Visual Basic for Applications -
which is the programming language for Word 97-2003 (macros).
There is a longer FAQ with more questions and links that is
regularly posted in the non-...
|
4 |
25.11.2005 14:57:03 |
|
Issues with textboxes in a Word form
I created a Word template with 3 textboxes. I used Text Form Fields first but
I wanted to populate 2 of them based on user input to 1. (The user would
input a date and I would then calculate the other 2). So I changed to using 3
ActiveX textboxes.
I have 2 problems using them.
1.) As soon as I create a new document based on the template the textboxes
receive and loose focus in rapi...
|
2 |
25.11.2005 14:46:21 |
|
Menu and commands
Word starts without any possibility to choose commands at the top. Just a
blank screen. How can I get my top back?
Thanks from the netherlands,
Peter
...
|
3 |
22.11.2005 19:25:48 |
|
Insert Generic text starting from a bookmark
Greetings,
I have a document (template) where i need the user to be prompted for how
many entries of some information will be appended (inserted) into there
document. I need to spell it out for them where the heading is and where to
insert the file. So for example if the user needed to insert 5 seperate
files into this document the user would type in the number "5" and then the
macr...
|
2 |
22.11.2005 10:43:32 |
|
Dividing sections
Hello,
I have a dot file with content of 2 pages. I have divided these 2
pages into 3 sections from Menubar -> Insert -> Break -> Section break
Types -> Continuous
Now what i need to do is to BOLD the content in the second section. How
can i do this???
Tried this option but not working...
ActiveDocument.sections(2).range.bold = true
If the document is having two section...
|
4 |
21.11.2005 23:49:30 |
|
need help fast
I have been trying to make a template for my company (vet hospital) for our
surgery dismissals. I'm totally new to this and have been having many many
problems. After finally figuring out how to do the userform I tested it. When
I hit the OK or Cancel buttons the template disappears and Word goes into a
regular blank document. Here's the code for the userform and the OK and
Cancel button...
|
3 |
17.11.2005 01:43:20 |
|
Out of margin
I have a document, let's say with a 2" left margin. The text is one Colum
and no special formatting is used. I like to write for some paragraphs of
the text a short reminder on the left side of the text margin. How can I do
that.
thanks
ano
...
|
2 |
12.11.2005 05:36:56 |
|
Please Help, how to send mail from Words
Hi All,
I have an assignment, can anybody advice on how or where can I get the
solution.
The scenario:
Create a small form in Word that will gather a clients name and address. The
client should not be able to edit the form in anyway. They should only be
able to enter their information in the required fields. Add an icon at the
bottom that will automatically e-mail the document to ...
|
2 |
10.11.2005 16:24:46 |
|
Linking to Word
I am looking for a way to get Word document to start our with a
userform when the file has been opened by a browser. The document
starts properly and brings up the userform when I click on the file but
when I open it with a link from a web browser it comes up dead. How do
I get around this problem?
Michael
...
|
2 |
09.11.2005 16:02:44 |