VBA SendCommand Trouble

I've posted a message on Adesk's VBA NG, too, relating to this
problem, though I've narrowed to something I find terribly strange and
have not been able to even think of a possible workaround. Any
thoughts appreciated.
The offending code:
sDsd = "c:\windows\temp\cecdwflogtemp.dsd"
sCmd = "-PUBLISH" & vbCr & DsdFileName & vbCr
ThisDrawing.SendCommand sCmd '
Reply to
Loading thread data ...
I resolved this problem by using SendKeys instead of ThisDrawing.SendCommand. The final result looked something like:
ThisDrawing.SendCommand "-PUBLISH" & vbCr & sFileName SendKeys "{ENTER}"
It works fine this way.
Reply to

PolyTech Forum website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.