Copy value from sheet 1 to cell on sheet2

ipbr21054

Well-known Member
Joined
Nov 16, 2010
Messages
5,226
Office Version
  1. 2007
Platform
  1. Windows
Hi,

Please advise a simple code to do the following

I am trying to do the following & so far not much luck
Sheet1 copy value in cell A50

Now paste that value in sheet Sheet2 in cell B36

Both sheets are in the same workbook

I can then take it from there
Thanks
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
There are many ways to do that, but here is one simple example:

VBA Code:
Sub SimpleCopy()
    'Declare worksheet variables
    Dim srcWS As Worksheet, destWS As Worksheet
    
    'Define source worksheet
    Set srcWS = ActiveWorkbook.Worksheets("Sheet1")
    
    'Define destination worksheet
    Set destWS = ActiveWorkbook.Worksheets("Sheet2")
    
    'Perform copy
    srcWS.Range("A50").Copy destWS.Range("B36")
End Sub
 
Upvote 0
Solution
Thanks,
I was going round in circlers but yours works well
 
Upvote 0

Forum statistics

Threads
1,215,300
Messages
6,124,138
Members
449,145
Latest member
Suresh215

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