Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Which cell did I click?

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Which cell did I click?

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Which cell did I click?

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
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
Hyperlink from one.xlsx cell to another two.xlxs cell & click back Bobbi-Joe Excel Worksheet Functions 1 August 7th 09 07:18 PM
How do I double click a cell and jump to cell's referenced cell JerryJuice Excel Discussion (Misc queries) 2 September 10th 05 10:24 PM
Click on graph bar to execute a double-click in a pivot table cell [email protected] Charts and Charting in Excel 4 August 3rd 05 01:37 AM
Click on cell-calendar drops down-click on date-date fills cell. . George Setting up and Configuration of Excel 1 April 15th 05 08:22 AM
Want to be able to click on a cell and have a list box appear to give values to populate a cell Richard Zellmer Excel Programming 2 September 16th 03 11:12 PM


All times are GMT +1. The time now is 11:29 PM.

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"