Application.StatusBar Cell Address

bsquad

Board Regular
Joined
Mar 15, 2016
Messages
194
I am looking if anyone knows of a LIVE function or sub that would give the Cell Address in the numeric format(I am not sure the technical name for it). But lets say I select A1 - in the status bar it would I would see "Cell(1,1)"


I thought of it when I found something someone had wrote that gives something similar to the COUNT: MIN: MAX:...features already built in

Code:
Private Sub Workbook_SheetSelectionChange(ByVal Sh As Object, _
ByVal Target As Range)
On Error GoTo ErrHandler:
    With Application
    .StatusBar = "Sum: " & Application.Sum(Target) & " | " _
    & "Count(Nums): " & .WorksheetFunction.Count(Target) _
    & " | Count(items): " & Application.CountA(Target) _
    & " | Average: " & Application.Average(Target)
    End With
Exit Sub
ErrHandler:
Application.StatusBar = False
End Sub
 
are you saying to include it in the sub?

i.e.

Code:
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Application.StatusBar = False
Application.StatusBar = "CELL(" & Target(1).Row & ", " & Target(1).Column & ")"
End Sub

or

Code:
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Application.StatusBar = "CELL(" & Target(1).Row & ", " & Target(1).Column & ")"
Application.StatusBar = False
End Sub
 
Last edited:
Upvote 0

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
are you saying to include it in the sub?
No. When you see Ready Num Lock in the status bar, can you clear it (return the status bar to Ready) by typing in the Immediate Window: Application.StatusBar = False and hitting Enter?
 
Upvote 0
when I input that in the Immediate Window and hit Enter no changes occur. But this part is interesting that I just noticed - regardless of the workbooks (existing, new, code, no code), when I have 2 separate workbooks open it works just fine.
 
Upvote 0
when I input that in the Immediate Window and hit Enter no changes occur. But this part is interesting that I just noticed - regardless of the workbooks (existing, new, code, no code), when I have 2 separate workbooks open it works just fine.
Possibly there's something corrupt in the existing workbook.
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,324
Members
452,635
Latest member
laura12345

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