Group:  Microsoft Word » microsoft.public.word.vba.userforms

Threads Replies Last Post
14 Pages: 1  2  3  4  5  6  7  8  9  10  11  12  13  14  
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 12/8/2005 9:23:56 PM
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 12/5/2005 7:14:36 PM
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 12/3/2005 2:19:26 AM
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 12/1/2005 6:05:56 PM
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 12/1/2005 4:47:34 PM
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 12/1/2005 12:18:45 AM
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 11/30/2005 12:19:45 PM
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 11/29/2005 10:20:22 PM
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 11/25/2005 2:57:03 PM
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 11/25/2005 2:46:21 PM
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 11/22/2005 7:25:48 PM
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 11/22/2005 10:43:32 AM
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 11/21/2005 11:49:30 PM
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 11/17/2005 1:43:20 AM
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 11/12/2005 5:36:56 AM
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 11/10/2005 4:24:46 PM
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 11/9/2005 4:02:44 PM
List Boxes
I have setup up a userform with three option buttons. When the first option is selected, I want a list box to either appear or enabled along with dedicated OK and Cancel buttons specifically for the list box. Then when the user selects the item in the listbox, it will be used to nominate a specific folder for saving the doc. In the code below, the correct Select Case option works, but ...
3 11/8/2005 12:45:42 AM
Setting some headers/footers
I have a template with three sections and a userform from which the front page title, mmm yyyy, and various headers are automatically inserted. The first two sections have headers and footers different from the third section¹s - which starts the main part of the document - and so they are not made ³same as previous². The form works fine if a document has only three sections. All headers and...
2 11/2/2005 9:45:08 PM
How to make a routine that will automatically print a word file after it has been changed via an ole link to an excel file?
Hello guys. I know nothing of programming and would like to know how can I make a routine that, as I said, would print automatically a word file after it's been changed via an ole link with an excel worksheet (that implies I've changed the excel file). I would like the routine to be on the excel file, so I won't need to open the word file everytime. Also, I made the ole link and it updates...
2 11/2/2005 12:23:30 PM
2 Listboxes
Hello, I have a word template for which I have created a userform. The userform has 2 ListBoxes and a commandButton. I want to choose either ListBox1 or ListBox2, but I failed. To populate the 2 ListBoxes : Private Sub UserForm_Initialize() LisBox1.List = Array("Text1", "Text2", "Text3") ListBox2.List = Array("Text4", "Text5", "Text6") End Sub The CommandButton : Private Sub CommandBut...
4 10/31/2005 11:52:13 AM
Remove all contents from the Header of a document
I have some documents that are being inserted into an exhisting document. Some of the documents have headers that are changing my template. Is there a macro to get rid of all contents in a header. Including any tables that might be in there? I mean anything that is in there. Please advise. thanks in advance. ...
9 10/31/2005 4:03:06 AM
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 12/3/2005 2:49:51 AM
14 Pages: 1  2  3  4  5  6  7  8  9  10  11  12  13  14  

Home | Search | Terms | Imprint
Newsgroups Reader