Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
HI All
Could somebody explain why this isnt working?
sub WordExportset objWord = CreateObject(“Word.Application”)objWord.visible = falseset objDoc=objWord.Documents.addConst wdOrientLandscape = 1objDoc.PageSetup.Orientation = wdOrientLandscapeActiveDocument.GetSheetObject(“CH18″).CopyTableToClipboard trueobjWord.Selection.PasteobjDoc.SaveAs “Y:\James Makepeace\EmpSalaryReport”end sub
Thanks
James