Move cell to same cell on another sheet

andrew9993

New Member
Joined
Apr 28, 2011
Messages
4
If I have a cell selected and I click my macro,
how would I make it so It moves the text within the current cell to the exact same cell on another sheet?

e.g. C3 on sheet #1 - MOVED TO - to C3 on sheet #2
etc

thanks in advance :)
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
Hello,

Welcome to the board!

This uses a sheet named "Sheet2":

<font face=Courier New><SPAN style="color:#00007F">Sub</SPAN> MoveToSameCell()<br><br>Sheets("Sheet2").Range("C3").Value = ActiveCell.Value<br><br><SPAN style="color:#00007F">End</SPAN> <SPAN style="color:#00007F">Sub</SPAN></FONT>

If the sheet is named different and you would like to use the index number then:
<font face=Courier New><SPAN style="color:#00007F">Sub</SPAN> MoveToSameCell()<br><br>Sheets(2).Range("C3").Value = ActiveCell.Value<br><br><SPAN style="color:#00007F">End</SPAN> <SPAN style="color:#00007F">Sub</SPAN></FONT>

Does that do what you would like?
 
Upvote 0
Not sure what you mean by "Moved", but try

Sheets("sheet2").Range("a1") = Sheets("sheet1").Range("a1")
 
Upvote 0
If you paste this code into Sheet1 it should do what you asked.

Code:
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
 
    If Not Application.Intersect(Target, Sheet1.Range("C3")) Is Nothing Then
        Target.Cut (Sheets("Sheet2").Range("C3"))
    End If
 
End Sub
 
Upvote 0
Hi,

Welcome to the board.

Can you post your macro on here using
Code:
tags?

Without seeing your current macro, this is a guess:

Code:
    myRange = "C3"
    Range(myRange).Cut Destination:=Sheets("Sheet2").Range(myRange)
 
Upvote 0
Here is another way that would take any cell that is the active cell and move to the same cell on Sheet2. This does uses sheet2 by the index.

<font face=Courier New><SPAN style="color:#00007F">Sub</SPAN> MoveToSameCellOnSheet2()<br><br>Sheets(2).Range(ActiveCell.Address).Value = ActiveCell.Value<br><br><SPAN style="color:#00007F">End</SPAN> <SPAN style="color:#00007F">Sub</SPAN></FONT>
 
Upvote 0
Noticed the "Moved" keyword. This line before End Sub will clear the activecell.

<font face=Courier New>ActiveCell.ClearContents <SPAN style="color:#007F00">'''Delete selected cells contents.</SPAN><br></FONT>
 
Upvote 0
thank you heaps everyone...

this one worked perfect for me
much appreciated :biggrin::biggrin::biggrin:

Sub MoveToSameCellOnSheet2()

Sheets(2).Range(ActiveCell.Address).Value = ActiveCell.Value

End Sub
 
Upvote 0

Forum statistics

Threads
1,224,566
Messages
6,179,555
Members
452,928
Latest member
101blockchains

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top