Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Can Excel do 'lookups' and show different data depending upon the cell with the focus?

I have Excel 2008 for the Mac and (to be honest) I'm only an occasional
user.

Is there a way to do the following:

I have the focus on cell A1. In cell D1 Excel will display the word
"Elephant"
I move the focus to cell A2 and Excel will display in cell D1 the word
"Giraffe".
I move the focus to cell A3 and Excel will display in cell d1 the word
"Zebra"

In other words, can Excel do some kind of lookup based on the cell the focus
is on?


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 137
Default Can Excel do 'lookups' and show different data depending upon thecell with the focus?

You wouldn't do it with a lookup() function.

You'd do it with a

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
End Sub

Detect the current cell address, and update the value of D1
accordingly.
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Can Excel do 'lookups' and show different data depending upon the cell with the focus?


"Greg Glynn" wrote in message
...
You wouldn't do it with a lookup() function.

You'd do it with a

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
End Sub

Detect the current cell address, and update the value of D1
accordingly.



I'm something of a novice user and I am guessing that what you show above is
VBA and that VBA is not supported in Excel for Mac 2008.

Can you give me anymore information on this, but even having Goggled
"Worksheet_SelectionChange" I am still at a loss as to what it is or where I
would use it.


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 137
Default Can Excel do 'lookups' and show different data depending upon thecell with the focus?

Yes, it's a VBA function. Sorry - Didn't realise the MAC version was
knobbled. I'm not sure how you'd do it otherwise.
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Can Excel do 'lookups' and show different data depending upon the cell with the focus?


"Greg Glynn" wrote in message
...
Yes, it's a VBA function. Sorry - Didn't realise the MAC version was
knobbled. I'm not sure how you'd do it otherwise.


The solution would be to upgrade to Office Mac 2011...




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
Show cell contents depending on other cells information RedBeard Excel Programming 7 November 23rd 09 09:11 AM
How to show cell selection when excel not in focus + other questio Jim E Setting up and Configuration of Excel 1 September 27th 09 08:20 PM
Can I show a picture depending on what data is selected in a cell Lesley Murray Excel Discussion (Misc queries) 3 April 12th 07 04:34 PM
Hide or show data labels depending on value? L. Lancin Excel Programming 2 February 28th 07 02:23 PM
How to hide/show a textbox depending on cell value Sam Kuo Excel Programming 3 January 12th 07 07:02 AM


All times are GMT +1. The time now is 06:26 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"