Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi gurus,
When a certain cell is selected, I want to access the values in the same row, but a couple of columns to the left of the selected cell for inclusion in a list box. Also, how can I create a list box on the fly using these values that the user can select from to input into the selected cell? Any info would be appreciated. Thanks DJH |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Darren,
First part. ActiveCell.Offset(n,m) where n refers to the number of rows to offset (0 is same row), and m is the number of columns. Both n and m vcan be negative to allow for rows/columns before. Second part. I would suggrest popping up a userform with a listbox, shich can be linked to the cell. -- HTH Bob Phillips ... looking out across Poole Harbour to the Purbecks (remove nothere from the email address if mailing direct) "Darren Haslett" wrote in message u... Hi gurus, When a certain cell is selected, I want to access the values in the same row, but a couple of columns to the left of the selected cell for inclusion in a list box. Also, how can I create a list box on the fly using these values that the user can select from to input into the selected cell? Any info would be appreciated. Thanks DJH |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Bob Phillips wrote:
Darren, First part. ActiveCell.Offset(n,m) where n refers to the number of rows to offset (0 is same row), and m is the number of columns. Both n and m vcan be negative to allow for rows/columns before. Or ActiveCell(n+1, m+1) Alan Beban |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Offset worksheet function does what you need to do.
-----Original Message----- Hi gurus, When a certain cell is selected, I want to access the values in the same row, but a couple of columns to the left of the selected cell for inclusion in a list box. Also, how can I create a list box on the fly using these values that the user can select from to input into the selected cell? Any info would be appreciated. Thanks DJH . |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Conditional Formatting-Referencing adjacent cell | Excel Discussion (Misc queries) | |||
Viewing selected non-adjacent cells | Excel Discussion (Misc queries) | |||
referencing selected cells | Excel Worksheet Functions | |||
Conditional coloring of Excel cells, based on adjacent cell values? | Excel Worksheet Functions | |||
SOS VBA Code Emergency: need to copy tell to empty cell direct below where values in adjacent cells in different column are equal to each other. | Excel Programming |