View Single Post
 
Old 05-13-2020, 01:19 AM
jcc285 jcc285 is offline Windows 10 Office 2016
Novice
 
Join Date: Aug 2014
Location: UK
Posts: 4
jcc285 is on a distinguished road
Default Creating a Word Document in vba from an Access Function

Thank you for your reply. I have tried this route before however when the Document is produced the text moves to the bottom of the page. I guess I need to do 'something' to position the table on the page but I have no idea what?

I've attached an image of the current result having replaced the .selection coding with:-

Code:
With oWordDoc
  .PageSetup.Orientation = wdOrientLandscape
  .Range.Text = "Station Name" & vbCr & "Programme Number" & vbCr & "Programme                      Date" & vbCr
End With
Attached Images
File Type: jpg Heading at bottom.jpg (115.3 KB, 13 views)
Reply With Quote