Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Excel VBA > Excel VBA
|
Excel VBA Discuss using VBA for Excel programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Excel VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 12th, 2011, 02:37 AM
Authorized User
 
Join Date: Oct 2011
Posts: 10
Thanks: 1
Thanked 0 Times in 0 Posts
Post Copy word content excluding header and footer

Hi,

I have to copy all the contents in the active word document excluding the header and footer. Could anyone provide the vbscript for the same.
 
Old October 15th, 2011, 04:47 AM
Friend of Wrox
 
Join Date: Sep 2005
Posts: 812
Thanks: 1
Thanked 53 Times in 49 Posts
Default

Hi

ActiveDocument.Content.Copy

should give you that. How are yoy trying to do this. From Excel?

Cheers
Shasur
__________________
C# Code Snippets (http://www.dotnetdud.blogspot.com)

VBA Tips & Tricks (http://www.vbadud.blogspot.com)





Similar Threads
Thread Thread Starter Forum Replies Last Post
xslt header/footer for word loukiachr XSLT 2 September 30th, 2009 05:12 PM
Copy txtBox content to Word zjankov Access VBA 0 August 20th, 2007 07:04 AM
header footer zaman1111 JSP Basics 0 July 28th, 2005 05:00 PM
Modify header and footer of word file in ASP Andraw Classic ASP Basics 1 January 14th, 2005 08:04 PM
Regarding Word header and footer Hari_Word General .NET 0 November 19th, 2004 06:22 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.