ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Copy cell (https://www.excelbanter.com/excel-programming/354177-copy-cell.html)

Metrazal[_7_]

Copy cell
 

Code:

Worksheets ("Master").Range ("Q:R").Copy Worksheets("Sjournal").Range
("U:V")


What's the best code to copy just "Q" to "R"


Thanks,

Met


--
Metrazal
------------------------------------------------------------------------
Metrazal's Profile: http://www.excelforum.com/member.php...o&userid=31648
View this thread: http://www.excelforum.com/showthread...hreadid=515849


Gary''s Student

Copy cell
 
Your way will work O.K. between worksheets:


Worksheets ("Master").Range ("Q:Q").Copy Worksheets("Sjournal").Range ("R:R")


If all you want to do is copy within a single worksheet then:


Sub asdf()
Dim r1 As Range
Dim r2 As Range
Set r1 = Columns("Q:Q")
Set r2 = Columns("R:R")
r1.Copy r2
End Sub

--
Gary''s Student


"Metrazal" wrote:


Code:

Worksheets ("Master").Range ("Q:R").Copy Worksheets("Sjournal").Range
("U:V")


What's the best code to copy just "Q" to "R"


Thanks,

Met


--
Metrazal
------------------------------------------------------------------------
Metrazal's Profile: http://www.excelforum.com/member.php...o&userid=31648
View this thread: http://www.excelforum.com/showthread...hreadid=515849



Ardus Petus

Copy cell
 
If I understand your question, the answer should be:
Worksheets ("Master").Range ("Q:Q").Copy Worksheets("Sjournal").Range("R:R")

I have doubts: it looks too trivial

HIH
--
AP


"Metrazal" a écrit
dans le message de
...

Code:

Worksheets ("Master").Range ("Q:R").Copy Worksheets("Sjournal").Range
("U:V")


What's the best code to copy just "Q" to "R"


Thanks,

Met


--
Metrazal
------------------------------------------------------------------------
Metrazal's Profile:

http://www.excelforum.com/member.php...o&userid=31648
View this thread: http://www.excelforum.com/showthread...hreadid=515849





All times are GMT +1. The time now is 10:05 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com