Adept Scientific - English
The world's best software and hardware for research, science and engineering.
flag arrow
clearclear

 Adept Store | register Join My Adept | Flags  
Adept Scientific | Amor Way | Letchworth Garden City | Herts | SG6 1ZA | Tel: +44 (0)1462 480055  
UKdedksvnofi
Home
Products
Training
Events
 Buy Online
Downloads
Academic Discounts
Support
My Adept
International |  About Us |  Adept Scientific Blog |  Contact Us |  Press Room |  Jobs
Adept Scientific on Twitter Adept Scientific on LinkedIn


The Next Steps

• Ask us a question
• Buy Mathcad Now
• View Mathcad Pricing
•  Download a Demo
•  Request a Brochure
• Download a Brochure
• Find out about Training
• Meet Our Team
• Read our RSS Feeds

Learn More

Mathcad Home
Compare Mathcad 15
and Mathcad Prime 1.0

Version Comparison Chart
Mathcad's Mathematical
Functions

Mathcad Enterprise
Mathcad for Education
Rave Reviews
Add-ons

System Requirements

Latest Information

New Features in Mathcad
Prime 1.0

Mathcad Prime 1.0 movie
New Features in Mathcad 15
Using Mathcad and Excel
Engineering Application
Packs

Return on Investment

Service & Support

Patches & Downloads
Frequently Asked Questions
Search the Knowledge Base
Join the Discussion List
Search the List Archive

List Archives >  Mathcad List Archive >  Archive by date >  This Month By Date >  This Month By Topic

[mathcad] RE: Pasting MathCAD documents (V11) into MS Word (97)

Search email archive for  

[mathcad] RE: Pasting MathCAD documents (V11) into MS Word (97)
Author: Sander Lablans    Posted: Tue, 26 Oct 2004 11:31:53 +0200
Mr Oakley,

I am not sure if you already know the following piece of code, but (perhaps)
it will remove the "screen flickering":

*****************************
Sub removeAllFrames()
' Macro 25/10/04 by Philip Oakley

Application.Screenupdating = False '<---- I added this

For Each frm in Word.ActiveDocument.Frames
With frm
.Select
.Delete
End with
Next frm

Application.Screenupdating = True '<---- I added this

End Sub
*****************************

As I can't paste as .rtf in Word (I am using MathCAD 2001i Pro & Word 2000
and somehow I do not get the "... as RTF"-option), I can't test the change I
made in your code, but I assume it should work.

Regards,

Sander Lablans
(Excel & VBA)

-----Original Message-----
From: Oakley, Philip (UK) /> Sent: dinsdag 26 oktober 2004 10:42
To: Mathcad Discussion List
Subject: [mathcad] Pasting MathCAD documents (V11) into MS Word (97)



Hi

I had to paste a 20 page MathCAD document into Word for a report. The user
wanted to be able to edit the text elements when in the report and do all
the usual post processing for publication.
As most of you will know this can be excruciating, however I have found an
easy way for MathCAD V11 to Word 97.

The basic solution is to select all the MathCAD regions (ctrl-A, ctrl-C),
then in Word (in a blank document) to use >Edit>Paste Special, and select
paste as 'Formatted Text(RTF)'. At this stage it will look horrible with
lots of overlapping frames of text and equations.

Now the neat bit. Create (>Tools>Macro>Macros.. Create) and Run the
deceptively simple Word macro:

Sub removeAllFrames()
' Macro 25/10/04 by Philip Oakley
For Each frm In Word.ActiveDocument.Frames
With frm
.Select
.Delete
End With
Next frm
End Sub

The screen will flicker madly as Word repaginates after each change but when
finished you should find all the text and equation are in the right order
and readable, and easily adjustable for that glossy report.

Comments and improvements are welcomed

MathCAD Champion
--------------------------------------------
Philip J Oakley BSc CEng MIEE
Principal Systems Engineer BAE Systems, Crewe Toll,
Phase 2, 1st(NW)107.
Tel : (+44 / 0) 131 343 8910


********************************************************************
This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender.
You should not copy it or use it for any purpose nor disclose or
distribute its contents to any other person.
********************************************************************


---
The Mathcad List - Discussion, Support & News
Contributions: /> Hosted by: Adept Scientific http://www.adeptscience.com
List Archive: http://lists.adeptscience.co.uk/
---
Would you like this to come to a different email address?
---
Simply leave the mailing list (see below) and re-join by
sending a blank email from the new address to:
or
---
If you do not want to be on the Mathcad list, simply send a
blank email (no subject or message needed) to:
/>

[mathcad] RE: Pasting MathCAD documents (V11) into MS Word (97)
Author: Jean L J Rosenfeld    Posted: Tue, 26 Oct 2004 19:49:52 +0100
Your added lines work fine, Mathcad 11, Word 2002.
The added lines make it easier on the eye, just the hour glass while the
macro does its stuff.

Thanks to both of you.

--------------------------------------------------------
Jean L.J. Rosenfeld
Argoed Hall
Bryn-y-Baal
Mold
Flintshire CH7 6SQ
Wales, UK
Tel +44 1352 750566
E-mail />




-----Original Message-----
From: Sander Lablans
Sent: 26 October 2004 10:32
To: Mathcad Discussion List
Subject: [mathcad] RE: Pasting MathCAD documents (V11) into MS Word (97)


Mr Oakley,

I am not sure if you already know the following piece of code, but (perhaps)
it will remove the "screen flickering":

*****************************
Sub removeAllFrames()
' Macro 25/10/04 by Philip Oakley

Application.Screenupdating = False '<---- I added this

For Each frm in Word.ActiveDocument.Frames
With frm
.Select
.Delete
End with
Next frm

Application.Screenupdating = True '<---- I added this

End Sub
*****************************

As I can't paste as .rtf in Word (I am using MathCAD 2001i Pro & Word 2000
and somehow I do not get the "... as RTF"-option), I can't test the change I
made in your code, but I assume it should work.

Regards,

Sander Lablans
(Excel & VBA)

-----Original Message-----
From: Oakley, Philip (UK) /> Sent: dinsdag 26 oktober 2004 10:42
To: Mathcad Discussion List
Subject: [mathcad] Pasting MathCAD documents (V11) into MS Word (97)



Hi

I had to paste a 20 page MathCAD document into Word for a report. The user
wanted to be able to edit the text elements when in the report and do all
the usual post processing for publication.
As most of you will know this can be excruciating, however I have found an
easy way for MathCAD V11 to Word 97.

The basic solution is to select all the MathCAD regions (ctrl-A, ctrl-C),
then in Word (in a blank document) to use >Edit>Paste Special, and select
paste as 'Formatted Text(RTF)'. At this stage it will look horrible with
lots of overlapping frames of text and equations.

Now the neat bit. Create (>Tools>Macro>Macros.. Create) and Run the
deceptively simple Word macro:

Sub removeAllFrames()
' Macro 25/10/04 by Philip Oakley
For Each frm In Word.ActiveDocument.Frames
With frm
.Select
.Delete
End With
Next frm
End Sub

The screen will flicker madly as Word repaginates after each change but when
finished you should find all the text and equation are in the right order
and readable, and easily adjustable for that glossy report.

Comments and improvements are welcomed

MathCAD Champion
--------------------------------------------
Philip J Oakley BSc CEng MIEE
Principal Systems Engineer BAE Systems, Crewe Toll,
Phase 2, 1st(NW)107.
Tel : (+44 / 0) 131 343 8910


********************************************************************
This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender.
You should not copy it or use it for any purpose nor disclose or
distribute its contents to any other person.
********************************************************************


---
The Mathcad List - Discussion, Support & News
Contributions: /> Hosted by: Adept Scientific http://www.adeptscience.com
List Archive: http://lists.adeptscience.co.uk/
---
Would you like this to come to a different email address?
---
Simply leave the mailing list (see below) and re-join by
sending a blank email from the new address to:
or
---
If you do not want to be on the Mathcad list, simply send a
blank email (no subject or message needed) to:
/>

---
The Mathcad List - Discussion, Support & News
Contributions: /> Hosted by: Adept Scientific http://www.adeptscience.com
List Archive: http://lists.adeptscience.co.uk/
---
Would you like this to come to a different email address?
---
Simply leave the mailing list (see below) and re-join by
sending a blank email from the new address to:
or
---
If you do not want to be on the Mathcad list, simply send a
blank email (no subject or message needed) to:
/>

[mathcad] Re: Pasting MathCAD documents (V11) into MS Word (97)
Author: Richard Jackson    Posted: Tue, 26 Oct 2004 16:24:31 -0400
Why not just save the file in Rich Text Format, and then open it in
Word?

Richard


On 26 Oct 2004 at 9:41, Oakley, Philip (UK) wrote:

Date sent: Tue, 26 Oct 2004 09:41:52 +0100
From: "Oakley, Philip (UK)" /> Subject: [mathcad] Pasting MathCAD documents (V11) into MS Word (97)
To: Mathcad Discussion List /> Send reply to: />
> I had to paste a 20 page MathCAD document into Word for a report. The user wanted to be able to edit the text elements when in the report and do all the usual post processing for publication.
> As most of you will know this can be excruciating, however I have found an easy way for MathCAD V11 to Word 97.
>
> The basic solution is to select all the MathCAD regions (ctrl-A, ctrl-C), then in Word (in a blank document) to use >Edit>Paste Special, and select paste as 'Formatted Text(RTF)'. At this stage it will look horrible with lots of overlapping frames of text and equations.
>
> Now the neat bit. Create ( Tools Macro Macros.. Create) and Run the deceptively simple Word macro:
>
> Sub removeAllFrames()
> ' Macro 25/10/04 by Philip Oakley
> For Each frm In Word.ActiveDocument.Frames
> With frm
> .Select
> .Delete
> End With
> Next frm
> End Sub
>
> The screen will flicker madly as Word repaginates after each change but when finished you should find all the text and equation are in the right order and readable, and easily adjustable for that glossy report.


---
The Mathcad List - Discussion, Support & News
Contributions: /> Hosted by: Adept Scientific http://www.adeptscience.com
List Archive: http://lists.adeptscience.co.uk/
---
Would you like this to come to a different email address?
---
Simply leave the mailing list (see below) and re-join by
sending a blank email from the new address to:
or
---
If you do not want to be on the Mathcad list, simply send a
blank email (no subject or message needed) to:
/>

[mathcad] Re: Pasting MathCAD documents (V11) into MS Word (97)
Author: Oakley, Philip UK    Posted: Wed, 27 Oct 2004 10:38:00 +0100

Richard
Ta for the suggestion. I hadn't realised the "Save As RTF" option was there!

I have done a quick test and it basically avoids the copy/paste stage.
But still leaves you with all the frame boundaries attached to the 'top of page' and if your page sizes [print areas] are different you get overlaps.

So: a refined way is to set the Mathcad page print area to be smaller than the Word page print area, then either use mathcad page breaks and separate regions, or manually ensure no region crosses a page boundary, save the mathcad sheet as rtf and open in word. [you may have to ensure your 'Normal' styles are compatible as well!]

The macro script allows those that don't like/want frames to remove them.

Philip

-----Original Message-----
From: Richard Jackson /> Sent: 26 October 2004 21:25
To: Mathcad Discussion List
Subject: [mathcad] Re: Pasting MathCAD documents (V11) into MS Word (97)
Why not just save the file in Rich Text Format, and then open it in
Word?

Richard

Inserted->
Mr Oakley,

I am not sure if you already know the following piece of code, but (perhaps)
it will remove the "screen flickering":

*****************************
Sub removeAllFrames()
' Macro 25/10/04 by Philip Oakley

Application.Screenupdating = False '<---- I added this

For Each frm in Word.ActiveDocument.Frames
With frm
.Select
.Delete
End with
Next frm

Application.Screenupdating = True '<---- I added this

End Sub
*****************************

As I can't paste as .rtf in Word (I am using MathCAD 2001i Pro & Word 2000
and somehow I do not get the "... as RTF"-option), I can't test the change I
made in your code, but I assume it should work.

Regards,

Sander Lablans
(Excel & VBA)
->

On 26 Oct 2004 at 9:41, Oakley, Philip (UK) wrote:

Date sent: Tue, 26 Oct 2004 09:41:52 +0100
From: "Oakley, Philip (UK)" /> Subject: [mathcad] Pasting MathCAD documents (V11) into MS Word (97)
To: Mathcad Discussion List /> Send reply to: />
> I had to paste a 20 page MathCAD document into Word for a report. The user wanted to be able to edit the text elements when in the report and do all the usual post processing for publication.
> As most of you will know this can be excruciating, however I have found an easy way for MathCAD V11 to Word 97.
>
> The basic solution is to select all the MathCAD regions (ctrl-A, ctrl-C), then in Word (in a blank document) to use >Edit>Paste Special, and select paste as 'Formatted Text(RTF)'. At this stage it will look horrible with lots of overlapping frames of text and equations.
>
> Now the neat bit. Create ( Tools Macro Macros.. Create) and Run the deceptively simple Word macro:
>
> Sub removeAllFrames()
> ' Macro 25/10/04 by Philip Oakley
> For Each frm In Word.ActiveDocument.Frames
> With frm
> .Select
> .Delete
> End With
> Next frm
> End Sub
>
> The screen will flicker madly as Word repaginates after each change but when finished you should find all the text and equation are in the right order and readable, and easily adjustable for that glossy report.




********************************************************************
This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender.
You should not copy it or use it for any purpose nor disclose or
distribute its contents to any other person.
********************************************************************

---
The Mathcad List - Discussion, Support & News
Contributions: /> Hosted by: Adept Scientific http://www.adeptscience.com
List Archive: http://lists.adeptscience.co.uk/
---
Would you like this to come to a different email address?
---
Simply leave the mailing list (see below) and re-join by
sending a blank email from the new address to:
or
---
If you do not want to be on the Mathcad list, simply send a
blank email (no subject or message needed) to:
/>

Previous by date: [mathcad] SV: Pasting MathCAD documents (V11) into MS Word (97),  Nils-Johan Tufte
Next by date: [mathcad] RE: Pasting MathCAD documents (V11) into MS Word (97),  Jean L J Rosenfeld
Previous thread: [mathcad] Pasting MathCAD documents (V11) into MS Word (97),  Oakley, Philip UK
Next thread: [mathcad] RE: Pasting MathCAD documents (V11) into MS Word (97),  Sander Lablans



Ready to buy?

Mathcad 15 (with 1 year maintenance) - includes FREE Mathcad Prime
Add to shopping basket
£ 970.00
Upgrade to Mathcad 15 individual licence from v14 single user licence - includes FREE Mathcad Prime
Add to shopping basket
£ 220.00
Upgrade to Mathcad 15 individual licence from v11, v12, v13 single user licence - includes FREE Mathcad Prime
Add to shopping basket
£ 290.00

Featured Downloads

Mathcad Prime 1.0 Datasheet
Mathcad Prime 1.0 and Mathcad 15 Comparison Chart
Mathcad Prime 1.0 Demo
Mathcad or Excel?
Mathcad Customer Story: Man B&W Diesel
Mathcad Customer Story: Stork Fokker Aerospace

Latest Downloads

Application Example: Faster Physical Modelling for Mathcad users
Mathcad Case Study - Breakthrough in Water Treatment Technology
Mathcad Whitepaper - Best practices in product development: Design studies & trade-off analyses
Mathcad 15 - New Design of Experiments Demo
Mathcad Prime 2.0 Pre-Launch Interview

Latest News

Mathcad Case Study - Breakthrough in Water Treatment Technology
PTC Recognizes Adept Scientific
PTC recognises Adept Scientific’s Mathcad quality
PTC recognises Adept Scientific’s Mathcad quality
PTC launches Mathcad® Prime 1.0™
adept

Top of the Page

Popular Links: ChemDraw | ChemOffice | Data Acquisition | Data Analysis | EndNote | Maple | MapleSim | Mathcad | MathType | Quality Analyst | Reference Manager | VisSim

EU ePrivacy Directive | Our Privacy and Terms and Conditions Statement
All Trademarks Recognised. Copyright © 2012, Adept Scientific plc.
Site designed and maintained by Lyndon Ash

Adept Scientific | Amor Way | Letchworth Garden City | Herts | SG6 1ZA | Tel: +44 (0)1462 480055