Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default cell selection

Is there a way for me to select a cell and then have the information in
another cell change values?

i.e.
I select cell E1 by clicking on the cell with my mouse. I would like the
information in cell A15 to change to a stored value in another cell, G5.

Is this possible?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 20
Default cell selection

You could use this code in the Worksheet_SelectionChange event.

If Target.Address = ("$E$1") Then Range("A15").Value = Range("G5").Value

You can access this by right clicking on the worksheet in question and
choosing view code.

Change the drop down box showing General to Worksheet and the
SelectionChange event should automatically appear.

Cheers,
Matt

"ronreggin" wrote:

Is there a way for me to select a cell and then have the information in
another cell change values?

i.e.
I select cell E1 by clicking on the cell with my mouse. I would like the
information in cell A15 to change to a stored value in another cell, G5.

Is this possible?

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 692
Default cell selection

One way is with a worksheet selection change event.
Put the code in the worksheet module

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Target.Address = "$E$1" Then
Range("A15") = Range("G5")
End If
End Sub


--
steveB

Remove "AYN" from email to respond
"ronreggin" wrote in message
...
Is there a way for me to select a cell and then have the information in
another cell change values?

i.e.
I select cell E1 by clicking on the cell with my mouse. I would like the
information in cell A15 to change to a stored value in another cell, G5.

Is this possible?



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
Limiting selection in a cell AND linking that selection to a list Lisa Excel Discussion (Misc queries) 1 July 28th 09 05:00 PM
Force entry into cell, based on validation selection in adjacent cell Richhall[_2_] Excel Worksheet Functions 3 June 18th 09 10:28 AM
Copy Selection - Transpose Selection - Delete Selection Uninvisible Excel Discussion (Misc queries) 2 October 23rd 07 04:18 PM
Lock data in a cell a specific cell based on selection on other ce CrimsonPlague29 Excel Worksheet Functions 0 May 10th 06 11:06 AM
limit cell list selection based on the selection of another list lorraine Excel Worksheet Functions 2 December 14th 04 08:17 PM


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