Macro for selecting a row

  • Thread starter Thread starter Remko Campagne
  • Start date Start date
R

Remko Campagne

When I have selected a cell I want a macro to select the
entire row of the selcted cell.
Does someone know how to make a macro for that purpose?

Thanks in advance,
Remko
 
One way:

Public Sub SelectRow()
ActiveCell.EntireRow.Select
End Sub
 
try typing the following in the worksheet object in question:


Private Sub Worksheet_SelectionChange(ByVal Target As Range)
ActiveCell.EntireRow.Select
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top