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

    Maintain Headers When Stringing Files Tpgether

    Gerry, The decision makers have decided to go about this problem a different way. Thanks again for the help!
  2. CPForecast

    Maintain Headers When Stringing Files Tpgether

    Thanks for the suggestion thus far, Gerry. Yes, I see that all of the formatting in the second document is getting blown out. I thought that just the headers would come in unformatted, but it looks like the formatting for the entire document is cleared out. The same styles are being used in...
  3. CPForecast

    Maintain Headers When Stringing Files Tpgether

    Also, I apologize for the typo in this thread's title. I can't seem to find a way to edit it.
  4. CPForecast

    Maintain Headers When Stringing Files Tpgether

    Hello, I am working on a macro that will string a series of files together in a single new document. These files have their own header and footer settings and also have their own page numbers that must be persevered. However, when it currently inserts a new document, the page numbers and...
  5. CPForecast

    Word Dynamic Header/Footer Creation

    This method seem to do the trick. Thanks very much for your patience and help. I've been thrown into working on a pretty complex system and I'm sure I'll have other questions as time goes on. It's much appreciated to get help from the experts. Thanks again!
  6. CPForecast

    Word Dynamic Header/Footer Creation

    Manually inserting the page number from the Headers and Footers toolbar seems to add the correct page number. I would much rather have the page number be a field so that it will update properly if new pages are added to the document. Does anyone know a way to incorporate that into the above...
  7. CPForecast

    Word Dynamic Header/Footer Creation

    Problem number 2 (regarding the text not being flushed against the right side) was based on some tab stops in the document so I have solved that problem. I just need to figure out the page number and multiple style/formatting problems. If it would be easier, I can email you the changed file...
  8. CPForecast

    Word Dynamic Header/Footer Creation

    Sorry, here's the correct changed file.http://www.2shared.com/file/4732061/e560ec7/TemplateChanged.html
  9. CPForecast

    Word Dynamic Header/Footer Creation

    Gerry, Thank you for the help thus far. When I ran the macro on the sample file that I attached, problems 1-3 are still happening. I'm not even worrying about the formatting (problem 3) yet. I figure I'll take it one step at a time. I attached the file after I ran this macro. If you compare it...
  10. CPForecast

    Word Dynamic Header/Footer Creation

    Hello, I have a Word XP macro that I am writing to add some dynamic information to a series of documents. One of the tasks is to recreate the headers and footers of each document based on the information for each specific report. For example, the report title, category, and month and year of...
  11. CPForecast

    Selection Find Style not Working

    fumei, I also took a look at this thread here with your respose to a question about headers and footers of different types: http://www.tek-tips.com/viewthread.cfm?qid=1435364&page=13 Since even, odd, and first page headers and footers are all different in my project and each header and footer...
  12. CPForecast

    Selection Find Style not Working

    Thanks again fumei. I think I've got enough to get going on this. You have been a terrific help. And thanks, PHV. I'll be checking out NextStoryRange for sure!
  13. CPForecast

    Selection Find Style not Working

    Originally, I was simply doing a single search and replace in several documents. However, as the scope of the project at work evolved over the past few weeks, my task has grown more complex to what it is now. So among other things, I'm now going through documents and replacing several things in...
  14. CPForecast

    Selection Find Style not Working

    Ok, and from what I can gather, I can simply reuse that range to do another search and replace, right? I need to do a bunch of hidden text searches after that initial "Heading 1" replace. I can just keep resuing r, right?
  15. CPForecast

    Selection Find Style not Working

    I'm starting to see how using Word ranges could be very helpful. I did want to keep the same style so that second example you posted worked perfectly. Thank you. Do you know of a good online resource or book that has information on the Word Range object?
  16. CPForecast

    Selection Find Style not Working

    fumei, using your suggestion above, I have a different sub where I would like to simply replace the first occurence of Heading 1 text with something else. I would need to do something like this, right? Set wdDoc = wdApp.Documents.Open(path + "\" + FileName) Set r = wdDoc.Range With r.Find...
  17. CPForecast

    Selection Find Style not Working

    You're right, fumei. You did post the solution first. Thank you. I have wdApp created as an Object and then do a: Set wdApp = CreateObject("Word.Application") and everything seems to work now. Thanks again for your help.
  18. CPForecast

    Selection Find Style not Working

    Problem has been solved at p2p wrox forums! Thank you! http://p2p.wrox.com/topic.asp?TOPIC_ID=74060
  19. CPForecast

    Selection Find Style not Working

    Hello, I have a macro that is technically being written for Excel XP, but the part of the program that isn't working involves searching a word document for a particular style. The program loops through several thousand file paths and names in an excel document. Among other things, the program...

Part and Inventory Search

Back
Top