Group:  Microsoft Word ยป microsoft.public.word.vba.customization

Geek News

Threads Replies Last Post
8 Pages: 1  2  3  4  5  6  7  8  
command bar ID
Dear I need to restrict/hide some controls on the word 2003 & 2007 menu. I found I can do this in an office 2003/2007 policy in gpedit however I need some control ID's to accomplish this task. I don't know how to get the control ID of the following: in word 2003: i need the control ID for Numeral command under Tools\Options\Complex Script -- general section in word 2007: I need...
1 12/30/2008 7:44:02 AM
New toolbar? Word 2003
How do I find out in VBA if a toolbar called "avCombined" exists in Word 2003? Thanks in advance androoooooooooooooooo................. ...
4 12/29/2008 9:33:36 PM
inserting multiple pictures and description
I am trying to create a word document by inserting (using vb) a series of pictures and descriptions on my document. I want to place them like so: ---------- | | | | ---------- Description ---------- | | | | ---------- Description ---------- | | | | ---------- Description and so on down the page..... Please help...
15 12/21/2008 11:00:54 PM
Word document insert another document and execute that code?
Hello How do you make a Word document call another Word document and execute the code in the second Word document"? Note: the last line in this1.cs' ie ThisDocument_Startup calls this2.cs and inserts it into this1.cs then it needs to execute the code inside this2.cs that creates a table itself ie this2.cs, the Open statement in the second Word document is commented out because ...
2 12/21/2008 1:16:00 AM
Word documents open another
Hello I have an C# program that calls Microsoft Word interop. First I open a Word document using interop. Next I automatically insert another Word document into the first Word document that I opened using interop but the second Word document needs to execute some code without opening itself. Since it is already open it I doesnt need it to open itself instead it should execute th...
1 12/6/2008 1:04:01 AM
Opening document with AutoOpen macro via hyperlink
I have an AutoOpen macro in a Word document to display a dialog box. If I open the file using a file dialog box or by double clicking in Windows Explorer, the document opens and shows the dialog box. If I open the same file using a hyperlink in an Excel worksheet, the dialog box shows, but not the actual document or document window until the dialog box is unloaded. Why is this happen...
1 11/21/2008 3:49:02 PM
Closing orphaned msgbox
If the user cancels or closes the userform while the cursor is in one of the controls that I validate, the userform closes to reveal a msgbox generated by the control validation routine which is triggered by the Exit event. How do I programmatically close the msgbox before the userform Unloads? Or, how do I keep the validation routine from triggering when the userform Unloads?...
8 11/20/2008 1:52:07 PM
Formatting ribbon menu
When my macro loads the menu into the Add-in tab, all the menu items are strung out in a single line. Without learning XML, is there a way to control the placement of items? I would like to stack the items in 3 columns with between 1 and 3 items per column....
4 11/20/2008 5:59:11 AM
Setting focus to ribbon Add-in tab
I have an auto open macro that creates a custom menu. In 2007, it shows up on the Add-in tab in the ribbon. I would like to set the focus to this tab so that the users will notice it. How do I do this in VBA?...
4 11/18/2008 3:35:12 PM
How to add pre-set ( a variable?) text into txtBox
Word 2003. I have a protected document with three different text boxes in it. I unprotect the document to add text to a text box. Then protect again. This works fine. I now want to put some pre-set phrases at the end of some of my text already typed in the text box. The pre-set text would come from chosen phrases from another user form and be placed at the cursor position in the text box...
7 11/16/2008 7:03:03 PM
[MS Word2007]: How to remove "Editing Exceptions" (previously adde
Hi, Using the "Protect/Unprotect" task pane in Word, I have been able to protect my document and set areas of exclusion (for which editing is possible to everyone). I have also been capable of doing this progamatically using: Set beforeFirstBookmarkRange = ActiveDocument.Range(beginDoc, firstBookmark) beforeFirstBookmarkRange.Select Selection.Editors.Add wdEditorEveryone 'Add this ...
3 11/11/2008 9:32:01 AM
VSTO bookmark error "requested collection does not exist" ?
Using VSTO with C# I have created a table in Word. I also created a template with a bookmark for the document that gets opened to use in it in order to position the table at a certain point in the document. However when I run the application there is an error message that says "requested member of collection does not exist". I don't know why the error appears because the template...
3 10/23/2008 2:20:14 PM
C# or macro programmatically position and format table in MS Word?
Hello I am using C# to call Microsoft Word and then I am building a table in Microsoft Word from an ArrayList. I create the table successfully in Microsoft Word from the ArrayList. But I need to format the table, so I run a macro that memorizes my keystrokes as I use the toolbar and select "table Properties" and set the properties for the column sizes and other formatting opt...
1 10/21/2008 10:50:01 PM
Make "Selection.TypeParagraph" work if text, not work if just retu
' If Subhead ElseIf Selection.Text <> " " And Selection.Font.Size = 10 And Selection.Font.Bold = True Then ' Tag Subhead Selection.EndKey Unit:=wdLine Selection.TypeText Text:="#####" Selection.HomeKey Unit:=wdLine Selection.TypeText Text:="#####" Selection.HomeKey Unit:=wdLine Selection.MoveDo...
4 10/18/2008 6:49:06 AM
word 2007 "custom" fields
Greetings, So Word 2007 still supports fields, which is great. I have been thinking about creating my own fields which should be driven by some type of business process. Is this possible? I know of the "ask" field, by I don't know how to modify it programatically or manually....
2 10/7/2008 5:49:59 AM
VBA, Heading Rows Repeat & Multiple Heading Rows
Hello, I've got some tables in a document and I'm checking (with VBA) for these tables if they have "Heading Rows Repeat" for their first row. The problem is : if I have a multiple heading rows with some cells merged, VBA tell me this : "Cannot access individual rows in this collection because the table has vertically merged cells". Here is the code used : For Each myTable In Ac...
2 6/30/2007 7:03:01 AM
Word 2003 - one too many field updates
I am a novice (eejit..) macro / VBA user. I have a template document in which I use fillin fields to prompt for references, name and address lines and header lines. I want to use a simple (taken me about four hours cutting and pasting and testing and restarting so far!!) VBA routine to prompt for and set custom document properties. (Code to date set out below) and I also want to be ...
4 6/17/2007 7:45:15 PM
how to get row of table in ms word
I have document that have table and many rows and i wish code something(VBA) for delete selection row but i dont know how to delete selection row please suggust me and give me advise Thanks so much ...
3 6/16/2007 9:28:44 PM
Need Word Macro Help Please
Hello, I have a macro that I've written with some help from others in this news group. I have one last piece that I need help with. The macro does a find and replace on a range of text. After I do the find & replace, I need to select a range of text to copy to the clip board. I have to go back up to the top of the article (this is not the top of the document because there is a strin...
18 6/12/2007 4:39:19 PM
Inserting data from an ACCESS form into a bookmark in WORD
I have the following code (which opens a NEW Word document and prints the data from my ACCESS form) -- I need code that will open a specified WORD template and insert the ACCESS data into a specific bookmark. I'm sure this is a simple process, but I'm somewhat frazzled (at this point) and have settled on this option over several previous suggestions. Here's the code I need to modify: ...
2 6/7/2007 2:01:49 PM
Directing/Specifying a Print Request/Location
I'm pretty sure this is possible, but I'm lost in trying to figure it out .... I have (2) pieces of code which work individually -- I need to modify/incorporate the two so that they print data into the same WORD template Here's my code: ================ (This sub prints the data on an ACCESS form) Private Sub Command83_Click() On Error GoTo Err_Command83_Click Dim stDocName ...
3 5/27/2007 1:43:28 AM
Macro help needed please
Hello, I'm using Word 2000. I am trying to write a macro that will delete a specifi parts of a document. A static text string that never changes is in the document and it marks the BEGINNING of the block that I want to select and delete. A static text string that never changes is in the document and it marks the END of the block that I want to select and delete. The amount of text...
7 5/23/2007 1:24:18 PM
Templates and Macros
Hi guys and gals, I'm having trouble with a template in Word 2003. It has macros and forms in it. When I create a document based on the template, the macros work while on my machine. However, when I separate the document from the template, the macros and forms no longer work. It appers they are not copied into the new document. Does anyone know how I can make the document carry o...
2 5/19/2007 10:00:13 AM
Copy Data From an ACCESS form to a Text From Field in a WORD Template
I have a Front-End ACCESS db (linked to (3) Tables on a Back-End SQL Server). I have a series of Queries that manipulate the data and populate an ACCESS Form. This Form has the following features: 1. A Main Form, with several pages (Tabs) which display data from one (OverallData) Table a. One of these pages (Tabs) contains a Sub-Form which displays data from another (SpecificData) T...
15 5/15/2007 9:57:16 PM
[Word 2007] Disable or repurpose X close button
Hi, I need to know if there is a way to disable the X close button because the add-in I am developing for Word 2007 is having errors if we quit the word application using the X close button. I've been able to able to repurpose the FileExit in the Office Menu by writing a vba macro which is "Sub FileExit(control As IRibbonControl, ByRef cancelDefault)" and in the XML file: <comman...
6 5/15/2007 11:13:21 AM
8 Pages: 1  2  3  4  5  6  7  8  

Home | Search | Terms | Imprint Contact
Newsgroups Reader - provided by WiredBox.Net