LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default beginner problem: getting selected rows, row by row

Looks good, but does it work also, if there are selected more then one
row? If the user select more then one row, it have to do the work with
every row by itself.

Holger

DPZ_Online schrieb:

Private Sub Worksheet_SelectionChange(ByVal Target As Range)

End Sub

This function is found in the VBA editor when you doubleclick on a
sheet, ant then go to the right dropdownbox and chose SelectionChange


In this one you can have a check...

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Dim sRow, sCol as String

sRow = Target.Row
sCol = Target.Column

Then you can work with the string "sRow" to find out if it is 1 2 or 3

End Sub


 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Color alternate rows when after hiding selected rows Monk[_2_] Excel Worksheet Functions 6 June 7th 08 01:36 AM
how many rows did I selected Paul Ho Excel Worksheet Functions 1 November 26th 05 06:59 AM
Beginner programmer problem Rednosebob Excel Programming 0 September 28th 04 09:17 PM
Beginner Variable Problem doc_in_bc[_4_] Excel Programming 6 May 29th 04 07:04 AM
insert selected rows problem rhplus Excel Programming 2 April 19th 04 05:01 PM


All times are GMT +1. The time now is 03:38 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"