VBA Commands

ds_robb

Board Regular
Joined
Aug 25, 2002
Messages
72
Can anyone tell me a useful VBA command to copy the contents of one cell on one worksheet to another cell on another worksheet.

Am trying to copy cell A3 on a worksheet called Q2 to cell A5 on a worksheet called Entry.

Thanks
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
Sub test()
Sheets("Entry").Range("a5").Value = _
Sheets("Sheet1").Range("a3").Value
End Sub
 
Upvote 0
Hi,

This will also copy formats beside cell value.

Worksheets("Q2").Range("A3").Copy Worksheets("Entry").Range("A5")

Regards
Suat
 
Upvote 0

Forum statistics

Threads
1,203,728
Messages
6,057,012
Members
444,902
Latest member
ExerciseInFutility

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