Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

vba cell reference

ResolvedVersion 2016

Martin has attended:
Excel VBA Introduction course
Excel VBA Intermediate course
Excel VBA Advanced course

VBA Cell reference

Is there a way to return cell references in terms of cells(x,y) where x and y are integers?

RE: VBA Cell reference

Hi Martin,

Thank you for the forum question.

The lines below will return the row number and column number as integers.

MsgBox ActiveCell.Row
MsgBox ActiveCell.Column



Kind regards

Jens Bonde
Microsoft Office Specialist Trainer

Tel: 0207 987 3777
STL - https://www.stl-training.co.uk
98%+ recommend us

London's leader with UK wide delivery in Microsoft Office training and management training to global brands, FTSE 100, SME's and the public sector

Wed 29 May 2019: Automatically marked as resolved.

 

Training courses

Training information:

Welcome. Please choose your application (eg. Excel) and then post your question.

Our Microsoft Qualified trainers will then respond within 24 hours (working days).

Frequently Asked Questions
What does 'Resolved' mean?

Any suggestions, questions or comments? Please post in the Improve the forum thread.

Excel tip:

Using basic functions without doing formulas

When you highlight figures Autocalc tells you the total in the bottom right of the screen, but if you right click on the sum it will give you some basic functions. The functions are Min, Max, Average, Sum, Count, and Count Nums.

View all Excel hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.38 secs.