VBA: Within Excel how do I save a word document as a PDF?
问题 I have some code that copies and pastes data from an Excel file into a word document, how can I get that word document to save as a PDF? My code is as follows: Sub RetailerGraphs() Dim Location As String Dim Detail As String Worksheets("-Summary").Activate Range("AE9").Select While ActiveCell.Value <> "" ActiveCell.Offset(1, 0).Select Location = ActiveCell.Value Worksheets("Detail Summary").Activate Range("B7").Value = Location Dim objWord, objDoc As Object ActiveWindow.View = xlNormalView