get column name

  • Thread starter Thread starter Agostino
  • Start date Start date
A

Agostino

I iterate throught the cells of a Range using Offset method.
When I encounter a specific value, I would like to show a message box saying
'The value in B5 is wrong".
How can i get the 'string reference', B5 in this case, of a cell?

Thanks in advance
Agostino
 
msgbox "The value in " & range("a1").offset(x,y).address(rowabsolute:=false,
columnabsolute:=false) & " is wrong"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top