• WSgeoric1

    WSgeoric1

    @wsgeoric1

    Viewing 15 replies - 76 through 90 (of 97 total)
    Author
    Replies
    • in reply to: Figure captions for multi-part figures (Word 2000) #688642

      Phil/Andrew,
      Andrew is correct. We didn’t need to discuss the STYLEREF field because it was working for me (and I didn’t even realize anything interesting was going on there!) My problem was with the switches in the SEQ, not in the STYLEREF. Andrew’s suggestion to add c before the s1 in the SEQ field code worked beautifully.
      Regarding the use of the s switch in the STYLEREF field, I wasn’t being clever. All I did was: create a heading one line at the beginning of the document, select InsertCaption, select Figure in the Label box, click the Numbering button, select Include Chapter Number in the Chapter Numbering dialog. As far as I know, this is how I’ve always done it, and I don’t recall ever using the n switch you mentioned. And I don’t see documentation for using s with STYLEREF anywhere either.

    • in reply to: Figure captions for multi-part figures (Word 2000) #688173

      Andrew,
      Thanks for the fix! It works perfectly even after additional testing. I will have many occasions to use it in my large documents.
      Summary for others reading this: Adding “c” before “s1” in the SEQ field code keeps the figure number from advancing so that the caption of a “Part 2 of 2” figure retains the same number as the previous figure caption.

    • in reply to: Figure captions for multi-part figures (Word 2000) #686967

      Andrew,

      I’m trying to figure out why the figure number is jumping. It is not intentional nor is Track Changes being used. The erratic way Word is updating the field seems to be the culprit.

      I’ve attached a simple document to illustrate the problem. There are two normal figure captions in chapter 1. In chapter 2, the first figure caption is normal – Figure 2-1 (1 of 2) – and the second uses the c switch – Figure 2-1 (2 of 2).

      If I Select All and then update all fields with F9, the second figure of chapter 2 correctly shows Figure 2-1 (2 of 2). However, if I then right-click this figure number and select Update Field, the 1 changes to a 3. It seems to be adding 1 to the number of figures in the previous chapter.

      Thanks again,
      George

    • in reply to: Figure captions for multi-part figures (Word 2000) #686675

      Andrew,
      Thanks for your response. The c switch gives me the wrong sequence number when the field updates. (In my doc, the figure that follows Figure 2-30 is Figure 2-42.) The c switch does work in a small test document, however, so there’s something I can’t identify in my main doc that’s mucking things up.

      Also, in the test file, the field with the c switch doesn’t show up in the Table of Figures unless I generate the TOF by the Caption style (thru the Option button in the Index and Tables dialog). This is unacceptable in my case because I use the Caption style for both tables and figures, and don’t want them combined in one TOF. (I generate my TOFs by specifying either Figure or Table as the caption label in the Index and Tables dialog.)

      Using your suggested method of cross-referencing to the previous caption worked as far as producing the correct figure caption, but this caption also does not get picked up in the TOF.

      Is there a way to get the TOF to pick up the captions that use the c switch and/or the cross reference without resorting to generating by the Caption style?

    • Thanks again, Hans! It worked! I was able to get it to work for the control number, and then I added a second input box for the date, which also is required to be in the header. A great learning experience for me – I’m sure I’ll use this technique for many other templates, and I do have a ton more of them to do.
      One more question if I might: The custom doc property dialog doesn’t seem to recognize the “d mmm yyyy” format, so I had to define the field as Text. Any insight on this?

    • Thanks, Andrew. I’m not having success in completely implementing your solution. I was able to create a custom property called CTRLNumber and insert a DocProperty field into the header which displays the default value which I defined for CTRLNumber. But in trying to run your macro, I get an error in the first line. Also, it’s not clear to me how your macro asks the user to provide a new value for the CTRLNumber property.
      If there was a way to link a custom property to a variable, maybe I could use a combination of your method and Hans’s. I could link the CTRLNumber custom property to the content of the variable that results from the InputBox. But I see only bookmark names, and no variables, in the dropdown list in the custom property dialog box when I select the Link To Content checkbox.

    • Thanks, Hans. The InputBox appears to be exactly what I need here, but I’ve never used one before. After reading the Special Edition Using Word 2000 blurb, I was able to create the InputBox, and I know (from using a MsgBox) that my variable (txtCtrlNum) is being assigned the string value the user gives. But now that I have this variable, I don’t know how to get its contents into the header. I tried the DocVariable field, but it isn’t getting populated with the contents of txtCtrlNum. How should my toolbar button be able to do all the things you say it should do?

    • in reply to: Cell property not obeying recorded macro (2002/SP-1) #614667

      Stuart,
      Your fixes worked, and the Tablespace macro runs beautifully now. Thanks so much!
      Woody’s Lounge sure is a valuable resource!

    • in reply to: Cell property not obeying recorded macro (2002/SP-1) #614630

      Thanks again, Stuart. I really appreciate all your help.
      When I tried your macro to set every cell in every table, I got a “Compile error. Method or member not found” at .FitText = False. When I removed it, all I got was a steady hourglass and had to close Word.

    • in reply to: Cell property not obeying recorded macro (2002/SP-1) #614468

      Thanks for the clarification, Stuart! I typed in Bryan’s code and it ran — took about 30 seconds to complete the 23 page, 50 table document. But after the macro finished, the cells all had a left padding of .01 instead of .03. The default cell margins in the Table Options did reflect the values the macro specified, but those values appear to be subservient to the values in the Cell Options tab, which are different and don’t appear to have been affected by the macro.

    • in reply to: Cell property not obeying recorded macro (2002/SP-1) #614454

      Thanks, Klaus and Bryan. But since I’m a VB-newbie I’m confused. I intended to record a macro that would reformat all the cells of the table the insertion point was located in, but for this document doing all the tables at once would be even better! Unfortunately since I’m not very knowledgable about VB, I couldn’t get past the first WIth statement when typing in Bryan’s code. I kept getting “this action will reset your project”. Reminded me of why I always hated programming. And I couldn’t tell exactly how Klaus’s code was meant to modify Bryan’s, or if any particluar table– or all tables? — needed to be selected first before running the Klausian modification of the Bryanian macro.

    • in reply to: Horizontal Line Word 97 #574157

      It sounds like you inadvertently created the line by typing either 3 or more hyphens, or 3 or more underscores, followed by the Enter key. These combinations automatically insert a border line if you have the following setting checked:

      Tools > Autocorrect > AutoFormat As You Type (tab) > Apply as you type (Borders checkbox)

      George Tipton

    • Thanks, Gary, I’ll try it.
      I’ve since discovered also that horizontal placement of the revision marks depends on the footer margins. By dragging the right footer margin to the right (using the ruler) I could get the revision marks to move to the right. Unfortunately, this document is so heavily under Infomap’s influence that this fix also forced some other elements to move undesirably, such as the “continued on next page” blurb .

    • in reply to: disk full message #528676

      Some unusually large temp files in C:temp were responsible for my getting this message once. I’d check there first.

    • in reply to: Insert File tries to send e-mail #526798

      There were no unfamiliar templates, but when I attached a different normal.dot the problem went away. Probably a virus like you said. Thanks for the help, Rajesh!!

    Viewing 15 replies - 76 through 90 (of 97 total)