kevininstructor@state.or.us
Guest
Re: LastColumn used as letter(s) in VBA
Mika,
Excellent! One question, I am using version 2002 and had to change the code
to below lose the "_" preciding ReferenceStyle to run.
var = ActiveSheet.UsedRange.Address(ReferenceStyle:=xlA1)
Any reason why?
Many thanks,
Kevin
"Mika" <rigel_58@yahoo.com> wrote in message
news:1108675845.388573.299190@c13g2000cwb.googlegroups.com...
Hi,
You don´t need to convert, use something like:
var = ActiveSheet.UsedRange.Address _ReferenceStyle:=xlA1)
and then with the text functions (mid, left, etc) you can extract form
var the column letter you need.
Rg
Mika
Bookmarks