Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 171
Default heperlink cell and cell content

I am looking for a function or proceedure to link cell and its contents in a
worksheet?. For example:
in Sheet1 :
A1=blank
B1=Mango
B2=apple
B3=50
B4=XYZ
I want to hyperlink cells B1 to B4 to Cell A1.When I select B1,cursor should
move to cell A1 with value 'Mango',and if I select B3, cell A1 should
display 50.
Any body from this forum suggest me a function !!!

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default heperlink cell and cell content

The usualy method is to use a Data Validation pull-down list. When you click
on the empty A1 cell, all the options in column B appear and a single click
will fill cell A1.

See:

http://www.contextures.com/xlDataVal01.html
--
Gary''s Student - gsnu200783


"TUNGANA KURMA RAJU" wrote:

I am looking for a function or proceedure to link cell and its contents in a
worksheet?. For example:
in Sheet1 :
A1=blank
B1=Mango
B2=apple
B3=50
B4=XYZ
I want to hyperlink cells B1 to B4 to Cell A1.When I select B1,cursor should
move to cell A1 with value 'Mango',and if I select B3, cell A1 should
display 50.
Any body from this forum suggest me a function !!!

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 171
Default heperlink cell and cell content

thanks, my basic need is i have a webquery in A1 based on a macro.Instead of
selecting from datavalidation list in A1 i would like to automise it by
selecting the parameter 'word' from the list in Column B.

"Gary''s Student" wrote:

The usualy method is to use a Data Validation pull-down list. When you click
on the empty A1 cell, all the options in column B appear and a single click
will fill cell A1.

See:

http://www.contextures.com/xlDataVal01.html
--
Gary''s Student - gsnu200783


"TUNGANA KURMA RAJU" wrote:

I am looking for a function or proceedure to link cell and its contents in a
worksheet?. For example:
in Sheet1 :
A1=blank
B1=Mango
B2=apple
B3=50
B4=XYZ
I want to hyperlink cells B1 to B4 to Cell A1.When I select B1,cursor should
move to cell A1 with value 'Mango',and if I select B3, cell A1 should
display 50.
Any body from this forum suggest me a function !!!

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default heperlink cell and cell content

In B1 insert a hyperlink to B1 and make the Text to Display be Mango
In B2 insert a hyperlink to B2 and make the Text to Display be apple
In B3 insert a hyperlink to B3 and make the Text to Display be 50
In B3 insert a hyperlink to B4 and make the Text to Display be XYZ

If any of these cells are clicked, nothing happens since they jump to
themselves.

Now in the worksheet event code area insert the following event macro:

Private Sub Worksheet_FollowHyperlink(ByVal Target As Hyperlink)
Range("A1").Value = Target.Name
End Sub

Now if B1 thru B4 are clicked, they value in A1 gets established.


Because it is worksheet code, it is very easy to install and automatic to use:

1. right-click the tab name near the bottom of the Excel window
2. select View Code - this brings up a VBE window
3. paste the stuff in and close the VBE window

If you have any concerns, first try it on a trial worksheet.

If you save the workbook, the macro will be saved with it.


To remove the macro:

1. bring up the VBE windows as above
2. clear the code out
3. close the VBE window

To learn more about macros in general, see:

http://www.mvps.org/dmcritchie/excel/getstarted.htm

To learn more about Event Macros (worksheet code), see:

http://www.mvps.org/dmcritchie/excel/event.htm





--
Gary''s Student - gsnu200783


"TUNGANA KURMA RAJU" wrote:

thanks, my basic need is i have a webquery in A1 based on a macro.Instead of
selecting from datavalidation list in A1 i would like to automise it by
selecting the parameter 'word' from the list in Column B.

"Gary''s Student" wrote:

The usualy method is to use a Data Validation pull-down list. When you click
on the empty A1 cell, all the options in column B appear and a single click
will fill cell A1.

See:

http://www.contextures.com/xlDataVal01.html
--
Gary''s Student - gsnu200783


"TUNGANA KURMA RAJU" wrote:

I am looking for a function or proceedure to link cell and its contents in a
worksheet?. For example:
in Sheet1 :
A1=blank
B1=Mango
B2=apple
B3=50
B4=XYZ
I want to hyperlink cells B1 to B4 to Cell A1.When I select B1,cursor should
move to cell A1 with value 'Mango',and if I select B3, cell A1 should
display 50.
Any body from this forum suggest me a function !!!

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 171
Default heperlink cell and cell content

Many thanks, you are really a genius.My task beautifully automised.you are
not Gary's student, you are Raju's teacher.

"Gary''s Student" wrote:

In B1 insert a hyperlink to B1 and make the Text to Display be Mango
In B2 insert a hyperlink to B2 and make the Text to Display be apple
In B3 insert a hyperlink to B3 and make the Text to Display be 50
In B3 insert a hyperlink to B4 and make the Text to Display be XYZ

If any of these cells are clicked, nothing happens since they jump to
themselves.

Now in the worksheet event code area insert the following event macro:

Private Sub Worksheet_FollowHyperlink(ByVal Target As Hyperlink)
Range("A1").Value = Target.Name
End Sub

Now if B1 thru B4 are clicked, they value in A1 gets established.


Because it is worksheet code, it is very easy to install and automatic to use:

1. right-click the tab name near the bottom of the Excel window
2. select View Code - this brings up a VBE window
3. paste the stuff in and close the VBE window

If you have any concerns, first try it on a trial worksheet.

If you save the workbook, the macro will be saved with it.


To remove the macro:

1. bring up the VBE windows as above
2. clear the code out
3. close the VBE window

To learn more about macros in general, see:

http://www.mvps.org/dmcritchie/excel/getstarted.htm

To learn more about Event Macros (worksheet code), see:

http://www.mvps.org/dmcritchie/excel/event.htm





--
Gary''s Student - gsnu200783


"TUNGANA KURMA RAJU" wrote:

thanks, my basic need is i have a webquery in A1 based on a macro.Instead of
selecting from datavalidation list in A1 i would like to automise it by
selecting the parameter 'word' from the list in Column B.

"Gary''s Student" wrote:

The usualy method is to use a Data Validation pull-down list. When you click
on the empty A1 cell, all the options in column B appear and a single click
will fill cell A1.

See:

http://www.contextures.com/xlDataVal01.html
--
Gary''s Student - gsnu200783


"TUNGANA KURMA RAJU" wrote:

I am looking for a function or proceedure to link cell and its contents in a
worksheet?. For example:
in Sheet1 :
A1=blank
B1=Mango
B2=apple
B3=50
B4=XYZ
I want to hyperlink cells B1 to B4 to Cell A1.When I select B1,cursor should
move to cell A1 with value 'Mango',and if I select B3, cell A1 should
display 50.
Any body from this forum suggest me a function !!!



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default heperlink cell and cell content

And thank you for for kind comments.
--
Gary''s Student - gsnu200783


"TUNGANA KURMA RAJU" wrote:

Many thanks, you are really a genius.My task beautifully automised.you are
not Gary's student, you are Raju's teacher.

"Gary''s Student" wrote:

In B1 insert a hyperlink to B1 and make the Text to Display be Mango
In B2 insert a hyperlink to B2 and make the Text to Display be apple
In B3 insert a hyperlink to B3 and make the Text to Display be 50
In B3 insert a hyperlink to B4 and make the Text to Display be XYZ

If any of these cells are clicked, nothing happens since they jump to
themselves.

Now in the worksheet event code area insert the following event macro:

Private Sub Worksheet_FollowHyperlink(ByVal Target As Hyperlink)
Range("A1").Value = Target.Name
End Sub

Now if B1 thru B4 are clicked, they value in A1 gets established.


Because it is worksheet code, it is very easy to install and automatic to use:

1. right-click the tab name near the bottom of the Excel window
2. select View Code - this brings up a VBE window
3. paste the stuff in and close the VBE window

If you have any concerns, first try it on a trial worksheet.

If you save the workbook, the macro will be saved with it.


To remove the macro:

1. bring up the VBE windows as above
2. clear the code out
3. close the VBE window

To learn more about macros in general, see:

http://www.mvps.org/dmcritchie/excel/getstarted.htm

To learn more about Event Macros (worksheet code), see:

http://www.mvps.org/dmcritchie/excel/event.htm





--
Gary''s Student - gsnu200783


"TUNGANA KURMA RAJU" wrote:

thanks, my basic need is i have a webquery in A1 based on a macro.Instead of
selecting from datavalidation list in A1 i would like to automise it by
selecting the parameter 'word' from the list in Column B.

"Gary''s Student" wrote:

The usualy method is to use a Data Validation pull-down list. When you click
on the empty A1 cell, all the options in column B appear and a single click
will fill cell A1.

See:

http://www.contextures.com/xlDataVal01.html
--
Gary''s Student - gsnu200783


"TUNGANA KURMA RAJU" wrote:

I am looking for a function or proceedure to link cell and its contents in a
worksheet?. For example:
in Sheet1 :
A1=blank
B1=Mango
B2=apple
B3=50
B4=XYZ
I want to hyperlink cells B1 to B4 to Cell A1.When I select B1,cursor should
move to cell A1 with value 'Mango',and if I select B3, cell A1 should
display 50.
Any body from this forum suggest me a function !!!

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
How to click on a cell and have the content of the cell display in a different cell [email protected] Excel Worksheet Functions 0 June 6th 06 03:05 PM
How make hyperlink refer to cell content rather than cell address. Omunene Excel Discussion (Misc queries) 3 March 2nd 06 01:07 AM
Excel - create button to replace cell content with cell value blackmot Excel Worksheet Functions 3 December 7th 05 05:10 PM
Cell Formula reference to cell Based On third Cell Content Gabriel Excel Discussion (Misc queries) 1 February 11th 05 06:36 AM
Cell Formula reference to cell Based On third Cell Content Gabriel Excel Discussion (Misc queries) 0 February 11th 05 05:35 AM


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

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"