Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Go to next blank row

I wish to copy a row of data 2:2 from Sheet 1 to the next blank row in Sheet
2, would appreciate VBA code to execute. Many thanks
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Go to next blank row

with worksheets("Sheet2")
worksheets("Sheet1").rows(2).copy _
Destination:= .Cells(rows.count,1).End(xlup)(2)
End With

--
Regards,
Tom Ogilvyl


"Andy Josolyne" <Andy wrote in message
...
I wish to copy a row of data 2:2 from Sheet 1 to the next blank row in

Sheet
2, would appreciate VBA code to execute. Many thanks



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,441
Default Go to next blank row

Andy,

Worksheets("Sheet1").Range("2:2").EntireRow.Copy _
Worksheets("Sheet2").Range("A65536").End(xlUp)(2). EntireRow

HTH,
Bernie
MS Excel MVP

"Andy Josolyne" <Andy wrote in message
...
I wish to copy a row of data 2:2 from Sheet 1 to the next blank row in

Sheet
2, would appreciate VBA code to execute. Many thanks



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Go to next blank row

Many thanks, please advise what is required to paste special as values in
Sheet 2

"Bernie Deitrick" wrote:

Andy,

Worksheets("Sheet1").Range("2:2").EntireRow.Copy _
Worksheets("Sheet2").Range("A65536").End(xlUp)(2). EntireRow

HTH,
Bernie
MS Excel MVP

"Andy Josolyne" <Andy wrote in message
...
I wish to copy a row of data 2:2 from Sheet 1 to the next blank row in

Sheet
2, would appreciate VBA code to execute. Many thanks




  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,441
Default Go to next blank row

Andy,

Worksheets("Sheet1").Range("2:2").EntireRow.Copy
Worksheets("Sheet2").Range("A65536").End(xlUp)(2) _
.EntireRow.PasteSpecial Paste:=xlPasteValues

HTH,
Bernie
MS Excel MVP

"Andy Josolyne" wrote in message
...
Many thanks, please advise what is required to paste special as values in
Sheet 2

"Bernie Deitrick" wrote:

Andy,

Worksheets("Sheet1").Range("2:2").EntireRow.Copy _
Worksheets("Sheet2").Range("A65536").End(xlUp)(2). EntireRow

HTH,
Bernie
MS Excel MVP

"Andy Josolyne" <Andy wrote in

message
...
I wish to copy a row of data 2:2 from Sheet 1 to the next blank row in

Sheet
2, would appreciate VBA code to execute. Many thanks








  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Go to next blank row

Dear Bernie

Many many thanks for your amazingly fast response.

Regards

Andy Josolyne
"Bernie Deitrick" wrote:

Andy,

Worksheets("Sheet1").Range("2:2").EntireRow.Copy
Worksheets("Sheet2").Range("A65536").End(xlUp)(2) _
.EntireRow.PasteSpecial Paste:=xlPasteValues

HTH,
Bernie
MS Excel MVP

"Andy Josolyne" wrote in message
...
Many thanks, please advise what is required to paste special as values in
Sheet 2

"Bernie Deitrick" wrote:

Andy,

Worksheets("Sheet1").Range("2:2").EntireRow.Copy _
Worksheets("Sheet2").Range("A65536").End(xlUp)(2). EntireRow

HTH,
Bernie
MS Excel MVP

"Andy Josolyne" <Andy wrote in

message
...
I wish to copy a row of data 2:2 from Sheet 1 to the next blank row in
Sheet
2, would appreciate VBA code to execute. Many thanks






  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 469
Default Go to next blank row

not good how can I modify this to copy from data sheet E:L cells
to donors A:H paste
I dont follow the 2:2

"Bernie Deitrick" wrote:

Andy,

Worksheets("Sheet1").Range("2:2").EntireRow.Copy
Worksheets("Sheet2").Range("A65536").End(xlUp)(2) _
.EntireRow.PasteSpecial Paste:=xlPasteValues

HTH,
Bernie
MS Excel MVP

"Andy Josolyne" wrote in message
...
Many thanks, please advise what is required to paste special as values in
Sheet 2

"Bernie Deitrick" wrote:

Andy,

Worksheets("Sheet1").Range("2:2").EntireRow.Copy _
Worksheets("Sheet2").Range("A65536").End(xlUp)(2). EntireRow

HTH,
Bernie
MS Excel MVP

"Andy Josolyne" <Andy wrote in

message
...
I wish to copy a row of data 2:2 from Sheet 1 to the next blank row in
Sheet
2, would appreciate VBA code to execute. Many thanks






  #8   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 116
Default Go to next blank row

2:2 designates row 2.

You need to do a better job of describing what you need. It is hard to
understand what you want when you say:

"copy from data sheet E:L cells to donors A:H paste"

Is it a sheet called "data"? Is it a sheet called "donors"? Are you copying
Column E:L to A:H?

Worksheets("data").Columns("E:L").Copy
Worksheets("donor").Range("A1").PasteSpecial xlPasteValues


Regards,

Alan



"Curt" wrote in message
...
not good how can I modify this to copy from data sheet E:L cells
to donors A:H paste
I dont follow the 2:2

"Bernie Deitrick" wrote:

Andy,

Worksheets("Sheet1").Range("2:2").EntireRow.Copy
Worksheets("Sheet2").Range("A65536").End(xlUp)(2) _
.EntireRow.PasteSpecial Paste:=xlPasteValues

HTH,
Bernie
MS Excel MVP

"Andy Josolyne" wrote in message
...
Many thanks, please advise what is required to paste special as values
in
Sheet 2

"Bernie Deitrick" wrote:

Andy,

Worksheets("Sheet1").Range("2:2").EntireRow.Copy _
Worksheets("Sheet2").Range("A65536").End(xlUp)(2). EntireRow

HTH,
Bernie
MS Excel MVP

"Andy Josolyne" <Andy wrote in

message
...
I wish to copy a row of data 2:2 from Sheet 1 to the next blank row
in
Sheet
2, would appreciate VBA code to execute. Many thanks








Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Index/match - make blank cells return a blank value. diaare Excel Worksheet Functions 3 May 3rd 23 03:44 AM
Excel 2002: Return blank when VLOOKUP on blank cells Mr. Low Excel Discussion (Misc queries) 2 June 4th 09 05:12 PM
Average Formula to display blank cell if named range is blank Rachael F Excel Worksheet Functions 3 February 22nd 08 05:05 PM
Not showing blank and non blank items in filter mode for values Bhaskar Polisetty Excel Worksheet Functions 0 June 20th 06 02:04 PM
Copying and pasting a worksheet to a blank and removing blank rows Bob Reynolds[_3_] Excel Programming 0 June 24th 04 02:55 PM


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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"