c# - Match Column Int to column letters? or Write to column using Letter Header -


so when write excel worksheet it's osheet.cells[1, 2] supply int row , supply column int.

well have config file thats 70 columns range h ce df ect.

how write column so? osheet.cells[1, af]?

i hope makes sense

you can reference excel ranges using a1 notation. try

osheet.range("af1") 

then different letters, can concatenate

col = "a" osheet.range( col & "1" ) 

edit: sorry, realized should parens (had square brackets).


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -