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

DotNetBag
.NET Development Newsgroups

HTVi
TV Discussion Newsgroups

Our Hot Pick: Rising Antivirus 2006 - Certified by TUV & Checkmark! Get 10% discount by entering this coupon code: ONDISCOUNT10
Rising Antivirus 2006

Threads Replies Last Post
23 Pages: 1  2  3  4  5  6  7  8  9  10  11  12  13  14  15  16  17  18  19  20  21  22  23  
Closing a file without saving
Good day all. I am trying to provent users from saving any changes to a document. What properties or methods may I use to prevent the "Changes has been made" dialog from appearing to the user? Thanks in advance for your assitance....
4 19.09.2006 04:22:37
Return current file name
Good day. I am trying to retrieve the file name of an open document prior to it closing. I am using Application.FileSearch.FileName to attempt to retrieve the file name. When I step over it I'm only havea NULL value in my variable. Thanks in advance for you assistance....
3 18.09.2006 21:42:02
For Each Except First
I am processing each row of a table, with the following code For Each oRow in table.Rows Process this row Next oRow The first row is a list of column titles. What's the easiest way to process only rows 2-end? ...
10 17.09.2006 17:39:54
Getting value from userform into document
Hi, I am familiar with VBA in Excel but would like some help getting started in VBA for Word I created a for with the DT Picker control on it but would like to know how to go about coding it to put the value from this form after picking the date in the word doc. I am not sure if I am wrong on this but I have an idea that I must use a bookmark for where the date must appear in the doc. I...
3 13.09.2006 14:23:40
How to distribute a template as a product
Hi All, I've developed a Word template that I want to distribute as a product, something folks buy and pay for :) I have lots of questions. I know that templates are, by definition, to be shared but I want to decrease the possibility of a customer purchasing it and distributing it freely to all of his/her buddies. The Microsoft 'activation' scheme keeps me from giving their softwar...
5 12.09.2006 21:27:25
Word 2007 questions
Hi! Since I am a true beginner on development in Office I have a collection of beginners question here. - How can I change the Word 2007 templates. Can I do that by just editing in Note pad? - Do I need to use any add-ins to create a new template and in that case why? - Can I create a new template that will include the format of the document I wish to use including everything li...
3 12.09.2006 18:38:50
Opening an Excel document within Word VBA?
I am working on a Word document that has a built in userform. The userform prompts the user to input some data, the data is then written to various other Word documents. What I want to do is open an Excel and write the same data to a specific cell in the doument. Here is the scenario. Word Document "New Job" prompts user to input "JobName" Word Document "Project" receives the JobName ...
2 11.09.2006 21:11:02
Find [*\] macro debug
Hi, Runtime error 4605 this method or property is not available I recorded this macro (keystrokes). Debug goes to Selection.Copy Then I did CTRL C CTRL END CTRL Enter CTRL V To insert the highlighted select variables in [ ] and place at end of document. What do I need to do to continue after the End With to make Selection.Copy function? Option Explicit Sub SelectVariables(...
9 10.09.2006 11:49:35
Intercept Overtype macro insert Symbol?
Hi, Thought I would experiment with replacement key (anything but overtype). I think this intercepts Overtype but I want the Cent sign Hex 0092 to insert - do I have to declare as string is that only way? ChrW (&H0092) cent sign Option Explicit ' Do nothing (or do something) Sub Overtype() ???? End Su ...
7 10.09.2006 11:22:14
VBA for Selecting One of 4 different paragraphs
Hello all! I'm looking for some assistance. I'm using Word 2003, by the way. I need to figure out how to give a user of my doc template the option of 4 different paragraphs (3 sentences max)...they select one of the paragraphs and that paragraph is inserted in the template and the other 3 disappear. Can someone help me? Thanks in advance, Laura ...
3 09.09.2006 23:25:17
Autocorrect - need Formatted option?
Hi everyone, I found this great code from Gregy Maxey/Doug Robbins. I didmy 2 col table and it throws it into Autocorrect in less time than it takes to blink. But I would like to add a few formatted entries. I realise that is a little more complex? I did attempt to do true/false but it was over my head). Any ideas if it can be done easily? Sub MultiAutoCorrectGenerator() 'Adapted by...
7 09.09.2006 15:32:38
VBA Module: Time Limitation
Hello Guys, Our coder built our software as a VBA module for MSAccess. It is turning out to be a great software, we would like to be able to limit potential customers access to it for 30 Days, basically give them a working copy (Demo) for 30 days. Does Anyone know how I could do this?...
14 08.09.2006 22:39:50
Word 2007 template
Hi! I would like to create a Word 2007 template to be used by several writers. This template will include Content Controls but I would like the writers themselves to chose where the Content Controles should be placed. But I will define which Content Controls they can use and the values of them will be specified in a XML Mapping file. For example: The content control will be the va...
4 08.09.2006 12:03:13
Word 2007 XML Mapping
Hi! I wonder how I can make an application in 2007 that will create the content of file depending on which XML Mapping I will use. I would like to generate the content of a file differently depending on which file I use the to map it with. In the word file I will use the Content Controls and create a meaning like the following: I like <variable1>. Specially the <variable2&g...
4 08.09.2006 12:03:12
Creating fields
How do I create a field to ask the user to enter information e.g. insert name (displayed on the screen, and allowed to be typed over), which will allow them to insert text/numbers? Thanks in advance...
4 07.09.2006 00:32:24
Format all pictures - inline with text
Word 2003. I have over 100 docs containing screen shots. Most of them were created by Alt+PrntScrn and paste. The pictures are mostly set with their text-wrapping at the apparent default of 'Top and bottom', but I want to change this to 'In line with text'. I tried to record a macro of this manual process (i.e. selecting an image, using the picture toolbar to change the text wrapping)...
3 07.09.2006 00:21:55
checking tracked changes
Is there a VBA boolean for (a) whether track changes is turned on, and (b) whether there are tracked changes that have not yet been accepted in a document? I'd like to put something in my document_open area to alert me before I start working in a document. Thanks, Keith -- The enclosed questions or comments are entirely mine and don't represent the thoughts, views, or policy of my ...
5 06.09.2006 17:55:03
impossible task - last chance
I've posted to other discussion groups with no luck. I'm hoping someone here can offer a solution. I'm using WIN2K, Word2K. My documents are laid out with repetetive steps, like this: 1. - description of something with cross-references to the following table and figure - table of something (with a table caption) - figure of something (with a figure caption) 2. same as 1., et...
5 06.09.2006 12:55:30
Internet/intranet approach
Hello, I'm trying to approach an intranet directory in order to determine which files are in it. For this purpose I've already tryed the 'Searchfiles.lookin' and Dir() functions but both don't accept the "http://-directory-" - format. Seacrhfiles doesn't accept anything BTW. Only his own format and an empty string.... Can anybody help me out here? Bye, Bart...
10 06.09.2006 07:00:01
delete blank line in table cells
Hi, I have 3 paragraphs in a table cell. Each paragraph separated by a blank line. I'd like to delete the blank line so that all paragraphs aren't separated anymore. Example: line1 sentences paragraph line2 sentences paragraph line3 sentences paragraph Wanted: line1 sentences paragraph line2 sentences paragraph line3 sentences paragraph Code so far: For tblIdx = 1 To...
2 06.09.2006 03:46:18
Making email links "active"?
I have "instruction macros", as I call them. I call these macros from a button on a special toolbar and a new doct comes up which the macro populates with instructional text, etc. These macros are saved to normal.dot. One macro in particular I have one that types up several email addresses with "mailto" code. This whole technique works extremely well. All these buttons represent templates...
6 05.09.2006 19:33:59
Holy Togglin' Macros!!!
I've recorded a macro that simply makes my hidden text visible. Now I want to assign the macro to a toolbar button AND get the button to toggle the visibility of the hidden text. How can I do that? Thanks in advance. ...
7 05.09.2006 10:58:27
trying to use MoveEndUntil to extend a selected range
I am trying to use the MoveEndUntil to expand the selected range in this code, however, the text "WORK" is on a different line then the text "MEDICAL RECORDS:". When I debug this logic the selected range stops one word after medical records on the second line. Not sure if I can use "MoveEndUntil" to extend beyond a single sentence. The version of word is 2003, any help would be apprec...
9 04.09.2006 17:10:02
Runtime error 5825 Object has been deleted?
What am I doing wrong please? I thought it would list all autotext in label using listbox as name of autotext? begin 666 UserForm.frm M5D524TE/3B U+C P#0I"96=I;B![0S8R038Y1C M,39$0RTQ,4-%+3E%.3@M M,#!!03 P-3<T031&?2!5<V5R1F]R;2 -"B @($-A<'1I;VX@(" @(" @(" ] M(" @(E5S97)&;W)M(@T*(" @0VQI96YT2&5I9VAT(" @(#T@(" Y.3DP#0H@ M("!#;&EE;G1,969T(" @(" @/2 @(#0U#0H@("!#;&EE;G14;W @(" @(...
21 03.09.2006 08:01:28
How to make a macro repeat itself?
Hello, I need to process a large table with a repeatable action. I have recorded a macro and it works fine. The problem is, I need to make the macro repeat itself until it reaches the end of the document. How to do it? The macro is: ---------------------------------- Sub kontr1() ' ' kontr1 Macro ' Macro recorded 2006-09-01 by greg ' Selection.MoveLeft Unit:=wdCharacter, Co...
4 02.09.2006 09:43:49
23 Pages: 1  2  3  4  5  6  7  8  9  10  11  12  13  14  15  16  17  18  19  20  21  22  23  

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