Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Test for the location of the cursor

Status
Not open for further replies.

MrMajik

IS-IT--Management
Apr 2, 2002
267
When the user clicks a button I need to test for the location of the cursor. It needs to be in the first column and the row does not matter. If it is not in the first column then how do I put it there?

Thank you.

MrMajik

Everything should be made as simple as possible, but not simpler
--Albert Einstein


 
MrMajik,

This should do the trick...

Sub Check_ColumnA()
curcolm = ActiveCell.Column
currow = ActiveCell.Row
If curcolm <> 1 Then
Cells(currow, 1).Select
End If
End Sub

Hope this is what you need. Please advise.

Regards, ...Dale Watson dwatson@bsi.gov.mb.ca
 
MrMajik,

Here I went and &quot;performed a trick&quot; for you, but you've &quot;gone and disappeared&quot; on me. :cool:

...Just checking to see &quot;what happened&quot; to our Tek-Tips' &quot;Magician&quot;. [openup]

Regards, ...Dale Watson dwatson@bsi.gov.mb.ca
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top