Hi,
I have the below windows macro which runs perfectly in windows. I want to run the same macro in MAC. Can someone help me in editing the macro so that it can in MAC Pc's also.
Sub subtoWord()
Range("D2:D33").Select
Selection.Copy
Dim objWord As Word.Application
Set objWord = CreateObject("Word.Application")
With objWord
.Documents.Add
.Visible = True
.Selection.Paste
MsgBox "Your tables have successfully been exported to a new Word document."
End With
End Sub
I have the below windows macro which runs perfectly in windows. I want to run the same macro in MAC. Can someone help me in editing the macro so that it can in MAC Pc's also.
Sub subtoWord()
Range("D2:D33").Select
Selection.Copy
Dim objWord As Word.Application
Set objWord = CreateObject("Word.Application")
With objWord
.Documents.Add
.Visible = True
.Selection.Paste
MsgBox "Your tables have successfully been exported to a new Word document."
End With
End Sub