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

    Copying format from one doc to another in VBA

    Hi all, I have a macro that concatenates rtf files. It opens a sequential access file that contains all the names of the files to be concatenated, reads through one line at a time, does some stuff to each file (mostly just strips fields out), then copies the updated file to a new file, inserts...
  2. KatyWhite

    Excel spreadsheet pasted into a word document

    Hello, I am having an issue pasting an excel spreadsheet into a word document. Some of the cells in the spreadsheet wrap the text for a few lines; all of the information is shown in the spreadsheet. However, when I copy the spreadsheet and paste the spreadsheet into my Word doc (Paste...
  3. KatyWhite

    2 TOC in a document with different formatting

    Gerry, I generated the first TOC by using Insert/Reference/... it is a 'normal' TOC based on the heading styles in the document. The second TOC is based on a specific style (all entries in this table are a single style); it is in the second part of the document. This TOC was inserted as a...
  4. KatyWhite

    2 TOC in a document with different formatting

    Hello all, I have two TOCs in my document; one that is a 'regular' TOC that includes page numbers (based on H1, H2, H3 etc.), then a second one that does not include page numbers. This second one is generated based on a style type and only includes a single style type. I am having trouble...
  5. KatyWhite

    TOC based on style - having a formatting problem

    The numbering is going to be done manually by typing them in - the statisticians have very specific needs and it is just easier at this point to let them do it this way. I modified the existing caption style to suit my needs. The captions are just text, there are not part of the table. I...
  6. KatyWhite

    TOC based on style - having a formatting problem

    This is an existing document that I am updating to generate a TOC automatically rather than manually as has been done. I have tried to redefine the existing table titles as captions (for now they are 'normal') and I have tried recreating test captions from new. I get the same thing. The...
  7. KatyWhite

    TOC based on style - having a formatting problem

    Not sure what you mean by hard spaces ... there are no columns in the captions. All this document contains is tables with captions; the captions are above the tables. The TOC is based on the captions. If there is any other info that I can provide please let me know. This is driving me crazy!
  8. KatyWhite

    TOC based on style - having a formatting problem

    Hello, I am generating a TOC based on a style in my document. This is the field code I am using to generate the TOC. {TOC \t "CAPTION" \w \z \n \x* MERGEFORMAT} I want to generate the TOC based on the style "CAPTION", I don't want to show the page numbers, I want to retain the tabs. For...
  9. KatyWhite

    deselecting all option buttons in a worksheet on open

    Hi all, I inserted many option buttons in my excel worksheet using the forms toolbar. These option buttons are in groups of 3, in a frame, in most of the rows. Is there a way I can deselect all the option buttons when the document is opened? Thanks!
  10. KatyWhite

    Out of range error

    That seems to have solved the problem ...
  11. KatyWhite

    Out of range error

    Hi RV, no I have not tried doing that ... I will give that a shot. I think it has to do with the automation as well ..
  12. KatyWhite

    Out of range error

    Hi all, I have written a word macro that reformats a document that has been created from many other documents. This document creating portion of the program (in VB6) works fine. However, when I try to call the word macro from VB6 I get "Error 4608 value out of range". Here is the code...
  13. KatyWhite

    Object variable or with block variable not set (Error 91)

    I have a reference to Word in VB, the other parts of my code work, just not where it calls the macro from the word document. Sometimes the document that I am formatting is in RTF format rather than a doc - don't know if that makes a difference. When I run the macro from word it runs fine.
  14. KatyWhite

    Object variable or with block variable not set (Error 91)

    Hi Gerry, I have tried commenting out some parts of the formatting but I get the error on the next line of code. I can run this macro from the word document, I only have an issue with it when trying to run the macro from VB. It is odd though. Thanks, Katy
  15. KatyWhite

    Object variable or with block variable not set (Error 91)

    Yes that is exactly what I am doing in the macro. There are 4 option buttons that the user can choose from; each is the same but for the formatting. I just copied the first one.
  16. KatyWhite

    Object variable or with block variable not set (Error 91)

    Hi all, I have a VB 6.0 program that I wrote that does a few different things with a word document. Everything works so far, however I am having an issue when I open a word document then try and run a macro in the document. (My VB isn't the greatest) This is the code in the sub that opens...

Part and Inventory Search

Back
Top