ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Macro for selecting a row (https://www.excelbanter.com/excel-programming/286477-macro-selecting-row.html)

Remko Campagne

Macro for selecting a row
 
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

J.E. McGimpsey

Macro for selecting a row
 
One way:

Public Sub SelectRow()
ActiveCell.EntireRow.Select
End Sub

In article ,
"Remko Campagne" wrote:

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


cornishbloke[_11_]

Macro for selecting a row
 
try typing the following in the worksheet object in question:


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


---
Message posted from http://www.ExcelForum.com/



All times are GMT +1. The time now is 08:44 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com