I am using VBA in Word 2003. I want to display a dialog box to allow the user to select a color, like the one displayed when you choose More Colors from the Font Color drop-down button from the toolbar. I could not find one among Word's Built-in Dialog Boxes, and VBA's help files failed to live...
I'm using VBA with Word 2003.
I have a project signed with a commercial digital certificate (from GlobalSign). The problem described below happens when I modify the document on a computer other than my own.
When I change the template attached to the document (either manually or...
I am using VBA with Word 2003.
While editing a VBA project, if I open another document or respond to an e-mail using Outlook (I have Word set as my e-mail editor), my VBA project becomes locked, i.e. any open modules close, and I get the message "Project is unviewable" if I try to open the...
I am using VBA with Word 2003. I have a procedure which creates new documents, then opens them for programmatic editing. It then saves and closes the document.
Even though I have the AddToRecentFiles property set to false, the new documents still get added to my recent files list. Has anyone...
I am trying to apply a ListTemplate to a style. The code runs without error, but there is no change made to the document. Here are the details:
I have a UserForm that creates multiple documents and places them in a common project folder. The code creates a new document for each chapter and...
I am using VBA with Word 2003.
The ListTemplate object has an Add method. But it does not have a Delete or Remove method. Does anyone know a workaround for deleting a custom ListTemplate?
[ponder]— Artificial intelligence is no match for natural stupidity.
I am using VBA with Word 2003. I want to dynamically change the ColumnWidths property of a ListBox control (on a UserForm) based on the length of the text entered by the user. Here's why:
The width of my ListBox is quite large: 450 pts. I really can't make it much larger than that due to design...
Is there a way to refer to a variable by constructing a string to represent its name?
For example, say I have the following variables:
• myLevel
• intLevel1
• intLevel2
• intLevel3
My code now looks like this:
Select Case myLevel
Case 1
intLevel1 = intLevel1 + 1
Case 2...
OK, my question's a bit hard to explain, so please bear with me.
I am using VBA in Word 2003. In my DocumentBeforeClose event, I want to reconfigure my menu based on which document will become active.
To do so, I need to find the order of open windows (documents). If I use...
I am using VBA with Word 2003. I am using the FileDialog object to return the path and name of a folder that the user selects. How do I set the folder that FileDialog opens to? I have tried ChDrive and ChDir before opening the dialog, but it still opens to my Word's default file folder. Here is...
I am using VBA with Word 2003. I am trying to use the wdDialogFileFind dialog to return a string indicating a folder name and path. I'm using the .Display method rather than the .Show method because I only want to return a string, not have the dialog actually do anything.
The problem is...
I am using VBA in Word 2003 to programmatically edit the headers of my document. My header paragraph style includes a bottom border.
Page one (section 1) does not use a header. However, when I programmatically edit the header of section 2, the bottom border shows up in the header of section 1...
I am using VBA with Word 2003. I have a UserForm (frmGraphicInsert) that automates the insertion of graphics into the document. The form opens modally (default).
Clicking an image on the UserForm opens the wdDialogInsertPicture built-in dialog (dialogs collection). When this happens, the...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.