Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello,
Could someone please help me with the following: When a user selects a row of cells, I wish to determine the beginning and & end cell of their selection. The row selected is a single row. The row length may vary. Kind regards, Chris. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Sub GetSelectionInfo()
MsgBox Selection(1).Address MsgBox Selection(Selection.Count).Address End Sub Regards, Greg -----Original Message----- Hello, Could someone please help me with the following: When a user selects a row of cells, I wish to determine the beginning and & end cell of their selection. The row selected is a single row. The row length may vary. Kind regards, Chris. . |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks Greg for your e-mail reply - much appreciated.
The reason I wanted the beginning and end cell addresses when a user selects a single row of cells at random, is that I wanted to color the first and last cell in their selection with the color black (Excel color number is 1). Could you please advise on how I may achieve this. Kind regards, Chris. *** Sent via Devdex http://www.devdex.com *** Don't just participate in USENET...get rewarded for it! |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Sub GetSelectionInfo()
Selection(1).Interior.ColorIndex = 1 Selection(Selection.Count).Interior.ColorIndex = 1 End Sub -- Rob van Gelder - http://www.vangelder.co.nz/excel "Chris Hankin" wrote in message ... Thanks Greg for your e-mail reply - much appreciated. The reason I wanted the beginning and end cell addresses when a user selects a single row of cells at random, is that I wanted to color the first and last cell in their selection with the color black (Excel color number is 1). Could you please advise on how I may achieve this. Kind regards, Chris. *** Sent via Devdex http://www.devdex.com *** Don't just participate in USENET...get rewarded for it! |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks Rob for your help - much appreciated.
Kind regards, Chris. *** Sent via Devdex http://www.devdex.com *** Don't just participate in USENET...get rewarded for it! |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Need some plotting help - determining which points are farthest apart | Excel Discussion (Misc queries) | |||
Determining if a chart is selected | Charts and Charting in Excel | |||
Determining chart points at mouse position | Excel Programming | |||
Determining selected worksheet | Excel Programming | |||
Determining whether selected cell has value or formula? | Excel Programming |