Poll

How extract atributtes to an excel file already made

How extract atributtes to an excel file already made
0 (0%)
How extract atributtes to an excel file already made
1 (100%)

Total Members Voted: 1

Author Topic: How extract atributtes to an excel file already made  (Read 1266 times)

0 Members and 1 Guest are viewing this topic.

carlossebas

  • Guest
How extract atributtes to an excel file already made
« on: September 05, 2018, 09:23:06 AM »
hi, my problem is that i want to get the information of a several number of Autocad files into an Excel file that iīve already made previously(becouse in that Excel file, i have excelīs macros to work easier) , and the code that iīm going to show now, opens a new Excel and thatīs what i donīt want to.

I have the excel file that i want to work with, in a route like  "C:\Users\Desktop\actualiza.xlsm"

Thanks beforehand

 

(if (and Dwg$lst (apply 'or (apply 'append (mapcar 'cadr Dwg$Lst))))
   (progn

      (setq xlApp (vlax-get-or-create-object "Excel.Application")

                xlCells (vlax-get-property
                               (vlax-get-property
                                  (vlax-get-property
                                     (vlax-invoke-method
                                         (vlax-get-property xlApp "Workbooks")
                                          "Add"
                                     )
                                     "Sheets"
                                  )
                                  "Item" 1
                              )
                              "Cells"
                           )
)

 

 

ribarm

  • Gator
  • Posts: 3309
  • Marko Ribar, architect
Marko Ribar, d.i.a. (graduated engineer of architecture)

:)

M.R. on Youtube