If any cell in certain column selected macro

curleyy

New Member
Joined
Mar 4, 2013
Messages
8
I'm trying to run a macro or function so that if any cell in a certain column is selected a message will appear in a different cell.

So: If cell A6 is selected, Cell A1 will say: A6 selected
If B10 is selected, cell A1 will say: B10 selected
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
A2:O1000

Each column contains different information. This information is being populated by a group of people, and so I need instructions to appear in cell A1 outlining the information expected in the cells of each column.

Exactly what range do you want the macro to apply to?
 
Upvote 0
Try this in the module for the worksheet:

Code:
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
    If Not Application.Intersect(Target, Range("A2:O1000")) Is Nothing Then
        Range("A1").Value = Target.Address(False, False) & " selected"
    Else
        Range("A1").ClearContents
    End If
End Sub
 
Upvote 0
I'm afraid this hasn't worked.

Also, to complicate things, I was just giving an example of the instruction above. It won't mention the cell, it will be more like: 'enter *** here'. *** being different depending on what column the person is working in.
 
Upvote 0
When I click on the cells in column A, no instruction shows up in cell A1. I both integrated it into the macro I already have and made a seperate macro to no avail
 
Upvote 0

Forum statistics

Threads
1,215,482
Messages
6,125,058
Members
449,206
Latest member
Healthydogs

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