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

Geek News

Threads Replies Last Post
275 Pages: 1  2  3  4  5  6  7  8  9  10  11  12  13  14  15  16  17  18  19  20  21  22  23  24  25  26  27  28  29  30  >>  
Customize document type filter in wdFileOpen Dialog
Hi, is there a way to customize which file types are displayed in the drop-down list of Word's built-in file open dialog? I am writing an application in which I need to restrict the selection of a file to Word templates only (*.dot, *.dotm) The dialog does not appear to expose a Filter property, like the CommonFileDialog. Many thanks...
2 12/19/2008 6:23:00 PM
Page Breaks When Using Macro in Word
I have a macro that uses pulls data from an external file. I use several with/end with statements to extract the data that I need. The output is many pages of data that is one line of data followed by a line of dashes as shown below. 0|01001111|01|L1_SD_01_00_1111|SD -GND FL -ELEVATOR LOBBY - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - The firs...
2 12/19/2008 6:03:01 PM
Can't show non-modal form when modal form is displayed
Hi everyone, I have a modal userform that contains a button (among other controls). When a user clicks this button, another, modeless userform (frmHelp) should be displayed that contains information about the first form. It would be nice if users were able to access the first form while this information is still shown - hence the choice for modeless display. Clicking the button resul...
6 12/19/2008 5:14:04 PM
odd behavior from .Find in 2003
Hi all, I'm using the .find method of a range object to locate highlighted text. I have a document with highlighted text, which does not open showing that it's damaged in any way, yet the .find acts differently with this document, and I'd like to know if there's an unusual circumstance here I can program around, or if this is undetected corruption. Normally the range object is reset...
6 12/19/2008 5:11:02 PM
Test for Picture format
Is there a way to programatically test for the native format (.wmf, .jpg, ..bmp, etc.) of a selected graphic or picture imbedded in a word 2007 doc?...
4 12/19/2008 4:49:01 PM
Problem with execution order in print routine
Hi all, I am building a custom print macro in Word2003. Below the code I have now: Sub BestandAfdrukken() Dim lAntwoord As Long Dim i, j As Integer Dim intDuplex As Long Dim strPrintResult As String With Dialogs(wdDialogFilePrint) lAntwoord = .Display If Abs(lAntwoord) = vbOK Then ActivePrinter = .Printer intDuplex = mPrinterAPI.GetDuplex ...
7 12/19/2008 4:47:02 PM
Change path to template when upgrading from Word 97 to 2003
I have a few questions regarding a upgrade from Word 97 to 2003. Today I have many Word 97-doc files in catalog S:\W97. All the files are based on templates in the same catalog. I'm going to upgrade from Office 97 to Office 2003 and there are some VBA related errors that occurs when opening the doc files. The VBA code is placed only in the template, not in the doc file. 1. In general, wi...
5 12/19/2008 2:22:20 PM
List box as a picklist
I have a document that we use to document medications. What I would like to do ,is create a list box with the medications, then when the user double clicks the list box the name of the medication populates another control in a list. I'm able to populate the list box and i nderstand how to assign the value of the listbox to another control when double clicked. What I don't know is the ...
3 12/19/2008 1:34:12 AM
right angles showing
All the sudden, when I open a new document, the template seems to have open right angles at the four corners of each page. These are seen only on the monitor and do not print out. Can anyone tell me how to get rid of this annoyance and, while we're at it, how to find the underlying new file template that WORD 2002 uses? Thanks! Dean...
3 12/19/2008 1:23:28 AM
auto insertion of extra userdata
Hey, I hope that there is someone inhere that can help me. i'm trying to make a standard letter which can be used by all employees in our firm. and we want word to automatically generate an employee titel. so that writing letters is both easier and faster. You can enter some userdater such as name, address, initials - but i need to automatically insert the writers titel and the city that ...
6 12/19/2008 12:06:05 AM
Default view to Page Width view
How can I save the default for a new document to be in Page Width view? I tried modifying the view in the Normal.dotm and saving it but that did not work. Our company has some staff on 2007 and some on 2000 so we are defaulting to save as 2003 docs. -- Thanks for the help...
5 12/18/2008 3:27:01 PM
Setting focus back to document from email header
Hi, I am trying to set up a macro which opens the email header in a Word document and then copies some text from the document to the "To" line and the "Subject" line. So far I have the following Selection.HomeKey unit:=wdStory Selection.EndKey unit:=wdLine, Extend:=wdExtend Selection.Cut ActiveWindow.EnvelopeVisible = Not ActiveWindow.EnvelopeVisible Selection.Past...
2 12/18/2008 2:39:00 PM
MultiPage TransitionEffect won't work.
Hi everyone, I have a UserForm with a MultiPage control, and I want to use the TransitionEffect and TransitionPeriod properties to display some cool effects when the user switches between pages. Currently I have set TransitionEffect to 1 - fmTransitionEffectCoverUp, and TransitionPeriod to 2000 which means that Page2 should take 2 seconds to cover Page1 from the bottom to the top. ...
5 12/18/2008 9:48:05 AM
Set default language for MS Word by vb.net codes
Hi all, I want to know whether is it possible to set the default language by code? if yes, can someone provide a way to do this? In my add-in, it will set the other language when I first open MS word. If I create a new document(without closing the first one), the language is set to default language again. How do I set the new document to use my prefered language and not using the def...
2 12/18/2008 8:23:54 AM
Word 2007 spell check
Almost every word in my document is marked as misspelled with a squiggly red line. I have checked "Word Options" > "Language Settings" and "English (U.S.)" is selected for both primary editing language and Enabled editign languages. Why am I geting this behavior and what can I do to correct this? Thank you, Douglas...
2 12/18/2008 8:23:54 AM
DDE From Word to Excel
I have a form that I have to fill out. I then have to transfer only some of the fields into an Excel worksheet. Rather than save as data only or re-type the data into Excel, I have been trying to set-up a DDE between the 2. However, I am having trouble establishing the link. It gives me an error saying that the "System" topic is unavailable, then opens Excel and gives me an error. ...
2 12/18/2008 8:16:36 AM
Macro error on first run, works thereafter (mail merge 2003)
This is a really weird one. In Word 2002 my merge macro worked fine. In 2003 I get a "window currently open" error. Now the really weird thing is, if I ensure NOTHING (including the Document1 window) is open, and run the script it works fine. Every merge thereafter (whether a document is open or not) also works fine. It is just the FIRST merge. Can anyone point me in the right ...
4 12/18/2008 8:16:35 AM
Reading the type of content in the clipboard.
Is their a way to “read” the type of content in the clipboard? The output of the macros should be one of the following: The clipboard contains formatted text The clipboard contains a MS Excel range The clipboard contains a MS Excel Graph The clipboard contains a Bitmap picture And so on…. The idea is to "interpret" the content of the clipboard before it is pasted Thank You...
2 12/18/2008 8:16:35 AM
What is wrong with this statement?
Hello, I'm trying to write a macro that simply adds up the values from cells e9 to e19 in a table. I'm just starting to write the code and this first line keeps giving me the following error when I compile it: "Expected function or variable". I don't understand. I thought I could assign a value to a selection. Thanks very much for your help Dim vSum As Variant Dim i as integer...
4 12/18/2008 3:04:30 AM
Word 2007
Merge document that is printed in 2007 prints with random lines printed on the top of the document, not all pages but some. When printing the same merge document in Word 2000 it prints perfectly fine. Have looked at the document using Word 2007 and cannot find anything that would cause a line to be printed accross the page. Can anyone shed some light on this or have possible things to...
2 12/17/2008 10:01:15 PM
What is hard code page numbering?
I received this request to fix the attached document and I don’t have a clue what she means: There is a hard code page numbering that needs to be adjusted and put into a page header. When I open the Word document, I don't know what to look for much less see any page numbering (regular or otherwise). ...
3 12/17/2008 8:52:01 PM
"Touching" all the styles in a template
I have been looking at the MVP article by Dave Rado, Margaret Aldis, Ian Sharpe, and Beth Melton titled "How to safely update a document's styles from its template without using the Organizer." The article mentions that in order for all of the template's styles to be updated correctly into a document based on it, the styles must not only appear in the "Styles in use" list in the template...
2 12/17/2008 8:34:12 PM
Copying document layout settings and stop list numbers propogating
Hello, I've coded an Access app to produce .doc letters in Word using a .dot file with bookmarks. To aid the user who has to print off the resultant letters (might be 100s) I copy each letter produced into a single MasterDoc file, then the user just has one file to print. This is all fine except for two problems: 1. The MasterDoc file doesn't inherit the layout/page setup settings ...
5 12/17/2008 2:40:07 PM
Center Table in Word Through Excel
I have an application in Excel that kicks out a report in Word. It is basically one table with some data. What I would like is to center that table on the page, but I cannot find how to do it through VBA. Although this is in Excel, the properties I will need are from Word. So, when responding, please preface your code with: appWD.ActiveDocument TIA. -- I am running on Office 2003,...
3 12/17/2008 2:12:29 PM
Word Form Help
making a word for drop down needed nore then 25 entries i have succesfully added the VBA to do this now the issue i have is this here is the code to fill the drop down bok for a form Private Sub UserForm_Initialize() ComboBox1.ColumnCount = 1 'Load data into ComboBox ComboBox1.List() = Array("FCI-Allenwood", "FCI-Loretto", "FCI-McKean", "Chick Buckbee Juv Center") ...
6 12/17/2008 1:51:56 PM
275 Pages: 1  2  3  4  5  6  7  8  9  10  11  12  13  14  15  16  17  18  19  20  21  22  23  24  25  26  27  28  29  30  >>  

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