This may be useful you do say an alert "select range in excel"
then select the layout range in excel,
you now press OK for the Alert,
the range is returned so the c1:c10 is not needed and you can have any range you like.
I use alpha to number by Gile to work out the "C1" etc
; get active range selcted
(defun getrangexl ( / lst UR CR RADD )
(setq lst '())
(setq UR (vlax-get-property (vlax-get-property xlapp "ActiveSheet") "UsedRange"))
(setq CR (vlax-get-property UR "CurrentRegion"))
(setq RADD (vlax-get-property CR "Address"))
(setq cnt (vlax-get-property CR "Count"))
(setq lst (csv->lst radd))
(setq st (vl-string-subst "" "$" (vl-string-subst "" "$" (nth 0 lst) )))
(setq end (vl-string-subst "" "$" (vl-string-subst "" "$" (nth 1 lst) )))
(setq st (columnrow st)))
(setq end (columnrow end))
(princ st)
(princ "\n")
(princ end)
)
;-------------------------------------------------------------------------------
; Number2Alpha - Converts Number into Alpha string
; Function By: Gilles Chanteau from Marseille, France
; Arguments: 1
; Num# = Number to convert
; Syntax example: (Number2Alpha 731) = "ABC"
;-------------------------------------------------------------------------------
(defun Number2Alpha (Num# / Val#)
(if (< Num# 27)
(chr (+ 64 Num#))
(if (= 0 (setq Val# (rem Num# 26)))
(strcat (Number2Alpha (1- (/ Num# 26))) "Z")
(strcat (Number2Alpha (/ Num# 26)) (chr (+ 64 Val#)))
);if
);if
);defun Number2Alpha