[RISOLTO] modifica codice vba per copiare in word
Buongiorno a tutti,
sapreste darmi una mano per far sì che il foglio Excel che viene copiato dal seguente codice venga centrato orizzontalmente e verticalmente sul foglio Word che si crea?
Grazie mille anticipatamente
Sub ExportWord()
Dim number As Integer, i As Integer, ws As Worksheet, number_exported As Integer
Dim wdApp As Object, wdDoc As Object, MyWd As Object
Set wdApp = CreateObject("Word.Application")
Set wdDoc = wdApp.Documents.Add
Set ws = ActiveSheet
ws.Range("B4:W63").Copy
wdDoc.Paragraphs(wdDoc.Paragraphs.Count).Range.Paste
wdApp.Visible = True
Set wdApp = Nothing
End Sub
[Modificato da prinztegame 13/07/2017 12:53]
Excel 2003 SP3