Copy / Paste Cell's Value

kasen401

New Member
Joined
Aug 10, 2011
Messages
3
I'm using the following code:

Code:
Option Explicit

Private Sub Worksheet_Change(ByVal Target As Range)
Dim sh As Worksheet
If Target.Address = "$G$3" Then
Set sh = Worksheets("Sale Sheet")
On Error Resume Next
sh.Shapes("MyNewShape").Delete
With sh.Pictures.Insert(Target.Value)
  .Name = "MyNewShape"
  .Left = sh.Range("F5").Left
  .Top = sh.Range("F5").Top
End With
ElseIf Target.Address = "$G$5" Then
Set sh = Worksheets("Sale Sheet")
On Error Resume Next
sh.Shapes("MyNewShape1").Delete
With sh.Pictures.Insert(Target.Value)
  .Name = "MyNewShape1"
  .Left = sh.Range("M5").Left
  .Top = sh.Range("M5").Top
End With
End If
End Sub

I need to copy the VALUE of cells G2 and G5 and paste them into another cell any time their values change. Any help would be much appreciated.
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
And what is it about the task that you are finding difficult? Why can't you adjust your current code to do that?
 
Upvote 0

Forum statistics

Threads
1,224,504
Messages
6,179,142
Members
452,892
Latest member
JUSTOUTOFMYREACH

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