Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Very basic question because I don't know much excel code. The question seems
too basic even for the help file! I have a VB project where I create a spreadsheet and populate 8 columns and approx 100 rows. I want to click on any row in column 1 and then get the value of column 8 in the same row. Column 1 is a location name, column 8 is a pointer to an rtf file and I wish to click on the name and open the rtf file in word. I have no problem with handling the rtf file I just don't know how to return the location of the cell which I click. TIA Ian B |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I think the following did it for me!
Still welcome any more robust way of doing same. Dim myRange As Range Worksheets("Sheet1").Activate Set myRange = Selection MsgBox myRange.Address Tks "Ian Bayly" wrote in message ... Very basic question because I don't know much excel code. The question seems too basic even for the help file! I have a VB project where I create a spreadsheet and populate 8 columns and approx 100 rows. I want to click on any row in column 1 and then get the value of column 8 in the same row. Column 1 is a location name, column 8 is a pointer to an rtf file and I wish to click on the name and open the rtf file in word. I have no problem with handling the rtf file I just don't know how to return the location of the cell which I click. TIA Ian B |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Not sure how that helps unless you are going to parse the row out of it, but
cells(selection(1).row,8).Value would return the value in the 8th column in the first row of the selection. -- Regards, Tom Ogilvy "Ian Bayly" wrote in message ... I think the following did it for me! Still welcome any more robust way of doing same. Dim myRange As Range Worksheets("Sheet1").Activate Set myRange = Selection MsgBox myRange.Address Tks "Ian Bayly" wrote in message ... Very basic question because I don't know much excel code. The question seems too basic even for the help file! I have a VB project where I create a spreadsheet and populate 8 columns and approx 100 rows. I want to click on any row in column 1 and then get the value of column 8 in the same row. Column 1 is a location name, column 8 is a pointer to an rtf file and I wish to click on the name and open the rtf file in word. I have no problem with handling the rtf file I just don't know how to return the location of the cell which I click. TIA Ian B |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Hyperlink from one.xlsx cell to another two.xlxs cell & click back | Excel Worksheet Functions | |||
How do I double click a cell and jump to cell's referenced cell | Excel Discussion (Misc queries) | |||
Click on graph bar to execute a double-click in a pivot table cell | Charts and Charting in Excel | |||
Click on cell-calendar drops down-click on date-date fills cell. . | Setting up and Configuration of Excel | |||
Want to be able to click on a cell and have a list box appear to give values to populate a cell | Excel Programming |