Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. Pegasus0990

    deleting bookmarks

    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. Pegasus0990

    counting of characters in order to delete them

    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...
  3. Pegasus0990

    help with redundant code

    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...
  4. Pegasus0990

    vbNewLine

    What is the opposite of vbNewLine for visual basic?? I am trying to delete lines in certain cases. thank you for your help.
  5. Pegasus0990

    Word-Excel not playing nice together :(

    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...
  6. Pegasus0990

    VB forms freezing (using a differenct computer then before)

    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...
  7. Pegasus0990

    looping issue

    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...
  8. Pegasus0990

    insert new line (word)

    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...

Part and Inventory Search

Back
Top