Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Hitesh_sethi
 
Posts: n/a
Default Remembering a value moving from one sheet to another


Hi

I am looking for a help in my case where i have an excel sheet. On
Sheet1 i have one column and 6-7 rows each having different text .Now
on sheet 2 of the same file there is a column where i want to populate
the value of the text selected on sheet 1.

eg
sheet1 has 6 diff entries like A,B,C,D,E,F and sheet 2 column is
empty.

Suppose i select B(Second Row) on sheet1 and go to Sheet2 then the data
populated there should be B, similarly if i change and select C(Third
Row) on sheet1 and go to sheet2 then teh data populated there should be
C.

Help me Pls ...

Hitesh


--
Hitesh_sethi
------------------------------------------------------------------------
Hitesh_sethi's Profile: http://www.excelforum.com/member.php...o&userid=33851
View this thread: http://www.excelforum.com/showthread...hreadid=536284

  #2   Report Post  
Posted to microsoft.public.excel.misc
 
Posts: n/a
Default Remembering a value moving from one sheet to another

You can only accomplished that by using VBA

Goto ToolsMacroVisual Basic Editor.
In the project explorer, double click SHEET1

then paste this code to the coding area.

Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel
As Boolean)
Worksheets("Sheet2").Cells(Target.Row, Target.Column).Value =
Target
End Sub

  #3   Report Post  
Posted to microsoft.public.excel.misc
Hitesh_sethi
 
Posts: n/a
Default Remembering a value moving from one sheet to another


I have pasted the code in the corresponding space but then also the
problem is not solved.

Dont i need to mention about the line no and the row no in the code.


--
Hitesh_sethi
------------------------------------------------------------------------
Hitesh_sethi's Profile: http://www.excelforum.com/member.php...o&userid=33851
View this thread: http://www.excelforum.com/showthread...hreadid=536284

  #4   Report Post  
Posted to microsoft.public.excel.misc
 
Posts: n/a
Default Remembering a value moving from one sheet to another

Hitesh_sethi,

when you copied and paste the code, does it change the color of the
text to RED.
the code should be 3 lines only. like this

Private Sub Worksheet_....., Cancel As Boolean)
Worksheets("Sheet2").Cells(Target.....= Target
End Sub

I hope u understand, what i am trying to explain.

I also forgot to mention, you have to double click the cell to transfer
the data from sheet1 to sheet2.

If you're still getting an error email me, so that i can email you a
sample excel. OK

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
Moving from one sheet to another JMB Excel Discussion (Misc queries) 0 March 26th 06 11:44 PM
Combining data from cells from several excel sheets to a new sheet Rik Excel Discussion (Misc queries) 4 February 22nd 06 09:16 AM
moving values from one sheet to another makdaddy925 Excel Discussion (Misc queries) 2 December 8th 05 05:44 PM
Moving rows to sequential position on another sheet Jenno Excel Discussion (Misc queries) 5 August 15th 05 09:48 AM
moving formula resupts to another sheet automatically jv Excel Worksheet Functions 1 February 27th 05 01:40 PM


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