I am having a problem with a Reference field. It is referencing from a Bookmark but the reference field is not keeping the format after a comma.
Example:
ABC, Inc. - The "ABC," keeps it's formatting in color and anything after the comma does not.
Any clue?
Thanks
Thanks for the replies. I have yet to try these methods but hopefully I'll be able to give these a try a little later on today. Thanks a bunch guys I have been searching endlessly trying to find a way to do this. I will post whatever I find out.
Hi PHV;
Yeah I tried the recorder this is what I got.
Sub Macro1() "This is by pressing backspace."
'
' Macro1 Macro
'
Selection.TypeBackspace
End Sub
Sub Macro2()This is by pressing delete."
'
' Macro2 Macro
'
Selection.Delete Unit:=wdCharacter, Count:=1
End Sub
I was only able...
I was wondering if there was a method of deleting table captions or figures in vba? I've checked alot of sources and they only tell you how to add it in VBA. I'm trying to do this in MS Word 2003.
Thanks for the help!
Hi I was wondering if there is a way to automate deletion of table and figure captions?
I've tried:
Selection = ActiveDocument.TablesOfFigures(2)
Selection.Delete
and other alternatives if you have any suggestions please let me know.
Thanks.
Hey Skip,
Yeah there are just normal text on page 3. There is nothing distinct about page 3. Just that people would rather just have a macro of some sort to delete content on the page rather then spending the time and selecting the text and deleting it themselves.
Hi Chance1234,
The contents at the end of second page and the beginning of the fourth page are bookmarks. The bookmark name at the end of page 2 is TPRTA5 and the bookmark name at the begining of page 4 is ISTA51.
Hi I am working on deleting a 3rd page from a 10 page document in word 2003. I'm not sure where to start I am trying to automate this using VBA and the page is not manual page break. If you have any pointers I would appreciate it.
Thanks.
Hi I was wondering if there is a method of changing the bookmark text so I can reference them in multiple locations of word doc. I have created bookmarks and I am inserting information from a Access form. But instead of inserting it into the bookmark it inserts the information to the right of...
Well my solution to the problem was just did a count on the paragraph markers until I find that specific line. inserted the count into the paragraph# variable.
Dim myRange As Range
Set myRange = ActiveDocument.Paragraphs(paragraph#).Range
myRange.Paragraphs(1).Range.delete
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.