Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 13
Default Transfer of data on mouse click €“ Urgent!!!

Hi,

Is it possible in an Excel sheet to get the data in an empty cell from
another cell at a single click of mouse on the cell which contains that data
or number. Basically, its transferring of a number from one cell to another
without using Copy & Paste. The number or data will come from a cell in a
matrix. Further, is it possible to automatically change the colour of the
cell which is being clicked. Please reply urgently with detail solution to
the problem if achievable by programming or any means, it will be highly
appreciable.


Thanks,
Eddy

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,533
Default Transfer of data on mouse click €“ Urgent!!!

Hi Eddy

More details needed!

How do I know which cell to transfer data to ? Will it be next empty cell in
a certain column or ....

What is the range you want to transfer data from?

Regards,
Per

"Eddy" skrev i meddelelsen
...
Hi,

Is it possible in an Excel sheet to get the data in an empty cell from
another cell at a single click of mouse on the cell which contains that
data
or number. Basically, its transferring of a number from one cell to
another
without using Copy & Paste. The number or data will come from a cell in a
matrix. Further, is it possible to automatically change the colour of the
cell which is being clicked. Please reply urgently with detail solution to
the problem if achievable by programming or any means, it will be highly
appreciable.


Thanks,
Eddy


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 13
Default Transfer of data on mouse click €“ Urgent!!!

Hi Per Jessen,

Thanks for your prompt reply.

For details, let takes this example.
A B C

1 $2 $4 $8
2 $3 $6 $9
3 $10 $11 $7

Here, Matrix A1 to C3 has some values. Now I want to check/select the value
sitting in A1 cell (ie, $2) and want to transfer (copy) it into any another
empty cell lets say N6, by just clicking once on A1 cell. Is this possible?
Further if possible, I also want to change the cell background colour of the
checked cell once selected.

I hope this will help you enough to understand the problem. Look forward for
your reply.

Thank you.
Eddy



"Per Jessen" wrote:

Hi Eddy

More details needed!

How do I know which cell to transfer data to ? Will it be next empty cell in
a certain column or ....

What is the range you want to transfer data from?

Regards,
Per

"Eddy" skrev i meddelelsen
...
Hi,

Is it possible in an Excel sheet to get the data in an empty cell from
another cell at a single click of mouse on the cell which contains that
data
or number. Basically, its transferring of a number from one cell to
another
without using Copy & Paste. The number or data will come from a cell in a
matrix. Further, is it possible to automatically change the colour of the
cell which is being clicked. Please reply urgently with detail solution to
the problem if achievable by programming or any means, it will be highly
appreciable.


Thanks,
Eddy



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,533
Default Transfer of data on mouse click €“ Urgent!!!

Hi Eddy

I'm still not sure how to determine which cell to transfer to....

Here's a solution that will copy the value to N6. I can change the code to
work as desired when I know how to find the destination cell.

This is an event code, so it has to go in the code page for the sheet where
you need this routine. Rightclick on the sheet tab on the desired sheet and
select View Code. Copy the code below to the code page. Go back to the
worksheet and test it.

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Dim Matrix As Range
Dim isect As Range

Set Matrix = Range("A1:C3")
Set isect = Intersect(Target, Matrix)

If Not isect Is Nothing Then
Range("N6").Value = Target.Value
Target.Interior.ColorIndex = 41
End If
End Sub

Best regards,
Per

"Eddy" skrev i meddelelsen
...
Hi Per Jessen,

Thanks for your prompt reply.

For details, let takes this example.
A B C

1 $2 $4 $8
2 $3 $6 $9
3 $10 $11 $7

Here, Matrix A1 to C3 has some values. Now I want to check/select the
value
sitting in A1 cell (ie, $2) and want to transfer (copy) it into any
another
empty cell lets say N6, by just clicking once on A1 cell. Is this
possible?
Further if possible, I also want to change the cell background colour of
the
checked cell once selected.

I hope this will help you enough to understand the problem. Look forward
for
your reply.

Thank you.
Eddy



"Per Jessen" wrote:

Hi Eddy

More details needed!

How do I know which cell to transfer data to ? Will it be next empty cell
in
a certain column or ....

What is the range you want to transfer data from?

Regards,
Per

"Eddy" skrev i meddelelsen
...
Hi,

Is it possible in an Excel sheet to get the data in an empty cell from
another cell at a single click of mouse on the cell which contains that
data
or number. Basically, its transferring of a number from one cell to
another
without using Copy & Paste. The number or data will come from a cell in
a
matrix. Further, is it possible to automatically change the colour of
the
cell which is being clicked. Please reply urgently with detail solution
to
the problem if achievable by programming or any means, it will be
highly
appreciable.


Thanks,
Eddy




  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 13
Default Transfer of data on mouse click €“ Urgent!!!


Dear Per,

Thanks so much for your solution. Its exactly what I was looking for. Rest
I will figure out the destination cell and change the values as required.
Thank you.

Kind regards,
Eddy

"Per Jessen" wrote:

Hi Eddy

I'm still not sure how to determine which cell to transfer to....

Here's a solution that will copy the value to N6. I can change the code to
work as desired when I know how to find the destination cell.

This is an event code, so it has to go in the code page for the sheet where
you need this routine. Rightclick on the sheet tab on the desired sheet and
select View Code. Copy the code below to the code page. Go back to the
worksheet and test it.

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Dim Matrix As Range
Dim isect As Range

Set Matrix = Range("A1:C3")
Set isect = Intersect(Target, Matrix)

If Not isect Is Nothing Then
Range("N6").Value = Target.Value
Target.Interior.ColorIndex = 41
End If
End Sub

Best regards,
Per

"Eddy" skrev i meddelelsen
...
Hi Per Jessen,

Thanks for your prompt reply.

For details, let takes this example.
A B C

1 $2 $4 $8
2 $3 $6 $9
3 $10 $11 $7

Here, Matrix A1 to C3 has some values. Now I want to check/select the
value
sitting in A1 cell (ie, $2) and want to transfer (copy) it into any
another
empty cell lets say N6, by just clicking once on A1 cell. Is this
possible?
Further if possible, I also want to change the cell background colour of
the
checked cell once selected.

I hope this will help you enough to understand the problem. Look forward
for
your reply.

Thank you.
Eddy



"Per Jessen" wrote:

Hi Eddy

More details needed!

How do I know which cell to transfer data to ? Will it be next empty cell
in
a certain column or ....

What is the range you want to transfer data from?

Regards,
Per

"Eddy" skrev i meddelelsen
...
Hi,

Is it possible in an Excel sheet to get the data in an empty cell from
another cell at a single click of mouse on the cell which contains that
data
or number. Basically, its transferring of a number from one cell to
another
without using Copy & Paste. The number or data will come from a cell in
a
matrix. Further, is it possible to automatically change the colour of
the
cell which is being clicked. Please reply urgently with detail solution
to
the problem if achievable by programming or any means, it will be
highly
appreciable.


Thanks,
Eddy





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
Excel : insert new data series via mouse click on graphic. qpwe61 Charts and Charting in Excel 1 February 1st 07 11:56 AM
Entering data using a mouse click Cheers100 Excel Discussion (Misc queries) 4 January 9th 07 04:03 PM
Transfer cell data from one worksheet to another === URGENT rajesh Excel Discussion (Misc queries) 1 December 5th 05 02:40 PM
Mouse right click problem Anthony Excel Discussion (Misc queries) 3 July 1st 05 12:21 AM
Each Click of the Mouse D.Parker Excel Discussion (Misc queries) 13 April 28th 05 11:24 PM


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