Computing.Net > Forums > Office Software > Macros MS Word

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Macros MS Word

Reply to Message Icon

Name: AReNAS
Date: June 9, 2008 at 01:05:23 Pacific
OS: Win XP
CPU/Ram: Intel 512
Product: ??????
Comment:

Hello, I need to write macroand I want that in one document, copy text UNTIL PAGE BREAK and copy in new document. That's my problem.
I have write macro that it copy one line in new document.. I think that isn't to be hard to write macro.




Sponsored Link
Ads by Google

Response Number 1
Name: DerbyDad03
Date: June 9, 2008 at 08:08:26 Pacific
Reply:

I don't do much with Word macros (Excel mostly) but I might be able to help. Why not post your current code and I'll see what I can do.

My thoughts are to modify this examaple from the Help files:

This example copies the contents of the selection into a new document.

If Selection.Type = wdSelectionNormal Then
Selection.Copy
Documents.Add.Content.Paste
End If

What if you did something like:

If Selection.Type <> wdPageBreak Then
Selection.Copy
Documents.Add.Content.Paste
End If


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Office Software Forum Home


Sponsored links

Ads by Google


Results for: Macros MS Word

Cannot record macro in Ms word www.computing.net/answers/office/cannot-record-macro-in-ms-word/9645.html

MS word xp cannot save macro www.computing.net/answers/office/ms-word-xp-cannot-save-macro/5476.html

ms word: if, then, else usage www.computing.net/answers/office/ms-word-if-then-else-usage/7650.html