First  |  Prev |  Next  |  Last
Pages: 65 66 67 68 69 70 71 72 73 74 75 76 77 78
Can't exit design mode because Control 'TextBox' cannot be created
I get the following VBA message when I try to switch from the design mode of a text box in a Word document: Can't exit design mode because Control 'TextBox' cannot be created I initially inserted a text box from the control toolbox in word and was able to input text. Upon opening the document later, Word con... 9 Dec 2007 23:23
Creating Macro for Adding Custom Table
Hi, I've created a custom button that runs a macro that adds a table into my document and formats it using a specific style. Works great. Only issue is if I select an existing table and run the macro it breaks (I get run time error 6028 the range cannot be deleted). I'm pretty new to this so I'm not sure how ... 5 Oct 2007 10:26
Runtime Error 6028: The Range Cannot be Deleted? HELP!
Don't know if anyone can help me with this or not. I have a Userform on my spreadsheet for inputting "comments" into. This form also has a variety of function buttons on it which work just fine, with the exception of 2 of those buttons (Post Comments-Button 3, and Update Comments-Button 4). Whenever I att... 17 Sep 2007 09:05
programmatically move the anchor on a shape in a word document
I have this code: object offset = 1; object unit = Word.WdUnits.wdLine; mergeFields.ShapeRange.Anchor.LockAnchor = 0; mergeFields.ShapeRange.Anchor.Move(ref unit, ref offset); The anchor lock goes away so I know I have a reference to the correct anchor object but I can't seem to move it anywhere. Now gra... 2 Sep 2007 00:04
Use current heading level in a field
Is there a way to get the current heading level from a field? I can't use a StyleRef field because I don't know what style to look for (i.e. Heading 1, Heading 2 etc.) Thanks (I realize this is the VBA forum) ... 2 Aug 2007 12:22
InlineShapes.AddPicture
I have multiple image files in a directory that I want to insert in a Word Document, i.e., For I = 1 to nFiles ActiveDocument.InlineShapes.AddPicture FileName:= Filename(I), LinkToFile:=False, SaveWithDocument:=True Next I The first picture is added as intended, but all subsequent AddPicture commands produce... 30 May 2007 11:26
Get web page object through Word VBA?
Is it possible in a Word 2003 macro to set objects to the the IE application and the current web page? I'd like to check a checkbox and activate the NextPage link (as long as there's a next page to go to). I found some references to scripts that can do this, but I can't figure them out. I can't find an InternetEx... 19 May 2007 09:47
How to start Word without templates through VB 6.0
Hi, I am using Word 2003 Visual Basic 6.0. I want to open Word in my VB code without loading the templates (similar to winword/a from command line) I'm using Cretaeobject("Word.Application"). I would like to load Word application without loading the default templates and assign it to an Object variable.... 9 Jun 2007 09:42
Weird behavior with Range.Delete
This is too weird. Open a new word document. Enter a few characters. Open VB and enter this subroutine: Sub deleteChar() Dim a as Range Set a = ActiveDocument.Range(Start:=1, End:=2) a.Delete End Sub Run the routine. As expected, the second character of your string will be deleted . . . ... 29 Apr 2007 21:45
Tab problem
I have converted a document from WordPerfect to word and now I am attaching the correct Heading to the step. The following is an example of what I have. There is a tab between {LISTUNM 37 \l 2} and Do not exceed... {LISTUNM 37 \l 2} Do not exceed a steady state running… . Here is my macro: SearchRange.Text... 27 Apr 2007 00:40
First  |  Prev |  Next  |  Last
Pages: 65 66 67 68 69 70 71 72 73 74 75 76 77 78