Message 1 of 6
Setting an active cell in Excel from Autocad
Not applicable
01-24-2006
01:48 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I've tried every which way to execute this Excel VBA code from Autocad VBA program but nothing works. This code works when I do it from Excel:
Range(Cells(1, 1), Cells(1, 1)).Activate
so when I use this code in Acad VBA, it doesn't work
Set excelApp = GetObject(, "Excel.Application")
excelApp.Range(Cells(1, 1), (1, 1)).Activate
Also I need to use the the numbers (1, 1) instead of ex. $A$1
Range(Cells(1, 1), Cells(1, 1)).Activate
so when I use this code in Acad VBA, it doesn't work
Set excelApp = GetObject(, "Excel.Application")
excelApp.Range(Cells(1, 1), (1, 1)).Activate
Also I need to use the the numbers (1, 1) instead of ex. $A$1