Re: What is the Visual Basic command to select an entire row in Excel.
From: RobFMS (Rob_at__xIgnoreThisx_fmsinc.com)
Date: 09/22/04
- Next message: papou: "Re: What is the Visual Basic command to select an entire row in Excel."
- Previous message: StephanieH: "Re: Custom Views based on sheet name"
- In reply to: Sahja: "What is the Visual Basic command to select an entire row in Excel."
- Next in thread: papou: "Re: What is the Visual Basic command to select an entire row in Excel."
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 22 Sep 2004 08:56:21 -0400
Try:
ActiveSheet.Range(Range).EntireRow.Select
Where Range is a cell address on the row you want to select.
If row 3 is what you wanted selected, then range can be set as "A3", "D3",
etc.
HTH
-- Rob FMS Professional Solutions Group http://www.fmsinc.com/consulting Software Tools for .NET, SQL Server, Visual Basic & Access http://www.fmsinc.com -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- "Sahja" <Sahja@discussions.microsoft.com> wrote in message news:5DE03FD6-55DA-4C85-9D80-96BA878195D1@microsoft.com... > When I use the command Rows.EntireRow.Select in Visual Basic to select a > single row in an Excel spreadsheet it selects all the rows in the > spreadsheet. Is there another command that will select a single row??
- Next message: papou: "Re: What is the Visual Basic command to select an entire row in Excel."
- Previous message: StephanieH: "Re: Custom Views based on sheet name"
- In reply to: Sahja: "What is the Visual Basic command to select an entire row in Excel."
- Next in thread: papou: "Re: What is the Visual Basic command to select an entire row in Excel."
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|