Referencing another cell in active cell column

quackdad

Board Regular
Joined
Jul 23, 2013
Messages
110
I can reference a cell in the active cell row: Range("F" & ActiveCell.Row).
But I'm having a heckuva time trying to do it for the column. The comparable Range(ActiveCell.Column & "3") - and several other permutations - won't work. What will?
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
The problem is that ActiveCell.Column returns a NUMBER, not a letter.
And the Range function requires column Letter.

Try using Cells, which can use column number or letter.
Cells(Row#, Column# or Letter)
Cells(3, ActiveCell.Column)
 
Upvote 0
Thank you! I've been trying to use consistent references (Range or Cells) so that whoever comes after me will be able to make sense of my code (it's most likely this person will be trying to learn VBA at the same time, just like I'm doing). For that reason, I find using letter references to the columns much less confusing than Cells or Offsets. But sometimes you just got to deal with it. Thanks again.
 
Upvote 0

Forum statistics

Threads
1,203,666
Messages
6,056,640
Members
444,879
Latest member
suzndush

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top