ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   copy part of row (https://www.excelbanter.com/excel-programming/316685-copy-part-row.html)

hme

copy part of row
 

Hi everybody

I use:

rng.EntireRow.copy Destination:_
CurrentWkbk.Worksheets("sheet1").cells(Rows.Count, 1).End(xlUp)(2)

to copy entire row.

How can I copy just form column A to N.

Regards
HM

--
hm
-----------------------------------------------------------------------
hme's Profile: http://www.excelforum.com/member.php...fo&userid=1593
View this thread: http://www.excelforum.com/showthread.php?threadid=27796


sujata_ghosh[_3_]

copy part of row
 

hi!

try this to copy specific range of cell

Range("A9:N9").Select
Selection.Copy
Application.CutCopyMode = Fals

--
sujata_ghos
-----------------------------------------------------------------------
sujata_ghosh's Profile: http://www.excelforum.com/member.php...fo&userid=1643
View this thread: http://www.excelforum.com/showthread.php?threadid=27796


sujata_ghosh[_4_]

copy part of row
 

hi!

try this to copy specific range of cell

Range("A9:N9").Select
Selection.Copy
Application.CutCopyMode = False


sujat

--
sujata_ghos
-----------------------------------------------------------------------
sujata_ghosh's Profile: http://www.excelforum.com/member.php...fo&userid=1643
View this thread: http://www.excelforum.com/showthread.php?threadid=27796


Tom Ogilvy

copy part of row
 
set rng1 = rng.parent.Cells(rng.row,1).Resize(1,14)
rng1.EntireRow.copy Destination:_
CurrentWkbk.Worksheets("sheet1").cells(Rows.Count, 1).End(xlUp)(2)


--
Regards,
Tom Ogilvy


"hme" wrote in message
...

Hi everybody

I use:

rng.EntireRow.copy Destination:_
CurrentWkbk.Worksheets("sheet1").cells(Rows.Count, 1).End(xlUp)(2)

to copy entire row.

How can I copy just form column A to N.

Regards
HME


--
hme
------------------------------------------------------------------------
hme's Profile:

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





All times are GMT +1. The time now is 04:28 PM.

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