06-02-2012, 04:37 AM
Hi Rahul,
Instead of using treating the application as a Windows application and directly recording on it, you can try using the AOM to declare an object of type Word.Application and then try to access the specific action or property you need to use.
A start would be. You could declare an object of type Word.Application.
'Code
This would open a new Word Application. You can no use the oWordObj to perform your specific operation.
Thank You,
Ravi Shankar
Instead of using treating the application as a Windows application and directly recording on it, you can try using the AOM to declare an object of type Word.Application and then try to access the specific action or property you need to use.
A start would be. You could declare an object of type Word.Application.
'Code
Code:
Set oWord = CreateObject("Word.Application")
oWord.Visible = True
Set oWordObj = oWord.Documents.Add()
This would open a new Word Application. You can no use the oWordObj to perform your specific operation.
Thank You,
Ravi Shankar