Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


Change from number range to regular/alphabetical range

Posted on 2011-10-19
Medium Priority
Last Modified: 2012-05-12
Cells(5, count).code

Open in new window


I have the above being used in a function's loop. However, I have another function which uses 'alphabetical numer' (or not sure how to call this)


If above points to A5:E2 (at a given point within loop)

I only want to extract the "E2" part to be sent to another function which is called by

Call ExampleFunction("E2")

Open in new window

I tried online search and searching here but I do not know what exactly to search.

Any help is appreciated!

Question by:Shanan212
LVL 36

Accepted Solution

Norie earned 1000 total points
ID: 36995116
Cells(5, count) is only one cell and it points to a cell in row 5 of column count.

You can get it's address using it's address property Cells(5, count).Address.

Have you considered changing the data type of the argument passed to the function?

If it was Range then you could pass either Range("E2") and Cells(2, 5).

Or you could just pass Cells(2,5).Address.
LVL 12

Assisted Solution

kgerb earned 1000 total points
ID: 36995150
You could do something like this I suppose.

Call ExampleFunction(Chr(64 + Count) & "2")

LVL 13

Author Closing Comment

ID: 36995486
Both answers are very helpful!

Thank you both!

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article descibes how to create a connection between Excel and SAP and how to move data from Excel to SAP or the other way around.
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
This Micro Tutorial will demonstrate how to use a scrolling table in Microsoft Excel using the INDEX function.
This Micro Tutorial will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.

578 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question