Author Topic: copy an excel sheet in vlisp?  (Read 1749 times)

0 Members and 1 Guest are viewing this topic.

Amsterdammed

  • Guest
copy an excel sheet in vlisp?
« on: March 14, 2013, 08:25:09 AM »
Hello there,

i have a xls file with a standard sheet in it, i need to copy this and rename it and fill the fields with vlisp. the filling part i have covered, i found some code from fatty to add a sheet on the web but nothing to copy an existing one.

there was
Code: [Select]
(vlax-invoke-method
 xlSheets "Add" nil nil nil)
used, so what be the methode to copy?

anybody any idea?

BlackBox

  • King Gator
  • Posts: 3770
Re: copy an excel sheet in vlisp?
« Reply #1 on: March 14, 2013, 08:40:33 AM »
Have you considered the Copy Method?
"How we think determines what we do, and what we do determines what we get."

Amsterdammed

  • Guest
Re: copy an excel sheet in vlisp?
« Reply #2 on: March 14, 2013, 08:50:22 AM »
i did, but i don't know the parameters for that

Amsterdammed

  • Guest
Re: copy an excel sheet in vlisp?
« Reply #3 on: March 14, 2013, 02:22:09 PM »
sorry,
obviously i suffer from a slow mental day. Got it


Code: [Select]
(vlax-invoke-method
 xlSheets 'copy  nil xlLastSheet   )



Thanks


BlackBox

  • King Gator
  • Posts: 3770
Re: copy an excel sheet in vlisp?
« Reply #4 on: March 14, 2013, 08:13:53 PM »
sorry,
obviously i suffer from a slow mental day. Got it


Hey... No worries; I'm just getting a chance to check back... Glad you got it sorted.  :-)
"How we think determines what we do, and what we do determines what we get."