thread707-1009355
the basic solution was the following. it works great but is there a easy way to expand it to satisfy my question below? I modified the original slightly to adjust to my code.
Selection.GoTo What:=wdGoToBookmark, Name:="bookmark1"
Selection.Bookmarks("\Line").Range.Delete...
2) if i do "Wordcount" in Microsoft Word it gives me a certain amount of characters that exist in my document. but if i tell my code to delete that many characters as in
Selection.Delete Unit:=wdCharacter, Count:=1996
even if my document says that there are 1996 characters, it acutally...
1) when you see the following
' first part ..... then 'second part
i will have to use this code over 100+ times. is there a good way to decrease the total amount of code? Note, I am using unique bookmarks in each one for code insertion. and if the instance is "yes" then it deletes all the...
i have not touched this code in a couple of months, but now i am on a different computer. when i use to push the 'command button' all the data i was trying to get from excel was passed to word. however now, when the 'command button' is pushed, it just accepts getting pushed, then freezes. i can...
i have not touched this code in a couple of months, but now i am on a different computer. when i use to push the 'command button' all the data i was trying to get from excel was passed to word. however now, when the 'command button' is pushed, it just accepts getting pushed, then freezes. i can...
i cannot figure out why my loop is not working properly. all help is greatly appreciated. when a integer replaces the variable "b" in the code, it works fine.
Public Sub CommandButton1_Click()
HideListBoxes
Dim oDoc As Word.Document
Set oDoc = Application.Documents("C:\word.doc")
Dim oExcel...
Hi, I am working on a program that pulls data from Excel into a Word document. However, IOT complete this, I need to be able to insert blank lines between values from the cells I pull. I am pulling the data by using bookmarks.
Does anybody know how to write VB code in Word thats function is...
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.