Miss leah
asked on
excel range address by numbers
I need to translate a column number at runtime to an excel range address in vb.net.
is there any function I can use instead of writing my own?
is there any function I can use instead of writing my own?
ASKER
Thank you Shaun. can you tell which librarys do I need to add ?
Probably just System.Collections.Generic and CellCoordinates is just a class
private class CellCoordinates
{
public int x;
public int y;
}
ASKER
trying to convert to vb.net im getting an error "operator - is not defined for types char and char"
on this:
colVal = 26 * colVal + (cellAddr(jj) - "A"c) + 1
on this:
colVal = 26 * colVal + (cellAddr(jj) - "A"c) + 1
This question needs an answer!
Become an EE member today
7 DAY FREE TRIALMembers can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Open in new window