Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 141
Default Inserting Value from one cell to another

I have a range of Cells eg A1 to A15 that contain a value, when I select one
of those cells with my mouse I would like that value to be inserted into
another Cell ie B1

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Inserting Value from one cell to another

right click on the sheet tab and select view code.

Paste in this code

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Target.Count 1 Then Exit Sub
If Target.Column = 1 And Target.Row < 16 Then
Range("B1").Value = Target.Value
End If
End Sub


remove any other procedures with the same name.

--
Regards,
Tom Ogilvy

"Nigel" wrote in message
...
I have a range of Cells eg A1 to A15 that contain a value, when I select

one
of those cells with my mouse I would like that value to be inserted into
another Cell ie B1

Thanks



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
Changing one cell colour by inserting date in another cell JohannM Excel Worksheet Functions 3 September 4th 06 07:42 PM
Split a Blank Cell into Two (Without Inserting Cell) mutax2003 Excel Discussion (Misc queries) 1 July 24th 06 08:30 PM
Split a Blank Cell into Two (Without Inserting Cell) mutax2003 Excel Discussion (Misc queries) 0 July 24th 06 06:43 PM
Inserting two cell values into a new cell + text mmednick Excel Discussion (Misc queries) 6 December 6th 05 08:15 PM
inserting data from a row to a cell, when the row number is specified by a formula in a cell [email protected] New Users to Excel 2 January 6th 05 07:18 AM


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