Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 09-29-2013, 10:04 PM
macropod's Avatar
macropod macropod is offline VBA to write into a Word doc from Outlook, then have Word VBA read what was written? Windows 7 32bit VBA to write into a Word doc from Outlook, then have Word VBA read what was written? Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,467
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Hi stildawn,

Basically:
Code:
With word 
    .Visible = True
    .Application.Activate 
    .Documents.Open (Template) 
    .ActiveDocument.Sections(1).Headers(wdHeaderFooterPrimary).Range.InsertBefore job
End With
Since you already have the 'job' variable, though, I don't see any value in having another macro retrieve it from the header. Why not simply continue using the same variable?
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Opening files with MS Word using URL with IIS 6 for read AND write. wyattbiker Word 0 03-21-2013 07:32 AM
Blogs Written With Word Not Posting to Wordpress hpfan1972 Word 0 02-05-2013 04:48 PM
VBA to write into a Word doc from Outlook, then have Word VBA read what was written? Read text Report file with VBA and write parsed fields to Excel workbook tpcervelo Excel Programming 1 01-05-2012 10:14 PM
VBA to write into a Word doc from Outlook, then have Word VBA read what was written? How to write a table of contents in word ugurkocak1980 Word 4 05-31-2010 06:10 AM
How to write in Word from Select query lakhan.p Word 0 03-27-2009 07:25 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 01:15 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft