Are you inserting lines of commands from the Excel spreadsheet to the command line of AutoCad? In other words are you wanting to insert command lines that will then be executed? I do not understand.
Refer to thread555-51546 DimensionalSolutions@Core.com
While I welcome e-mail messages, please post all thread activity in these forums for the benefit of all members.
This works for Microstation. Notice that Microstation is called "ustn". You'll need Windows' internal name for Autocadd but this demonstrates the link:
Sub Export2Microstation()
Dim channel As Long
With Selection
FRow = .Row
RowCt = .Rows.Count
LRow = FRow + RowCt - 1
FCol = .Column
ColCt = .Columns.Count
LCol = FCol + ColCt - 1
End With
task = "PLACE LINE" 'command entry in Microstation
'replace as needed
' keyin is a command to Microstation to use the command entry box.
If you have full commands in Excel cells you can just copy and paste into Autocad and they will run. You must click on the command line in Autocad or else you will paste the Excel cells into the drawing.
At least this works with Quattro Pro, but I assume its the same.
Oh and it goes row by row if you paste in a 2d range.