#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 7
Default COPY AND PASTE

I'm using GO TO /Current Region to create a macro to select a block of data
to copy and paste into a new worksheet. However, I dont want to copy the
header line...anyone???
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 623
Default COPY AND PASTE

Something like this will solve your problem. You need to resize your range to
exclude the first row:

Set Workrange = Workrange.Offset(1, 0).Resize(Workrange.Rows.Count - 1)


--
Regards,
Fred


"Polarbilly" wrote in message
...
I'm using GO TO /Current Region to create a macro to select a block of data
to copy and paste into a new worksheet. However, I dont want to copy the
header line...anyone???



  #3   Report Post  
Posted to microsoft.public.excel.misc
JMB JMB is offline
external usenet poster
 
Posts: 2,062
Default COPY AND PASTE

Assuming the headers occupy only one row. If more than 1 row is a header,
change the two 1's in the line beginning with ".Offset(1,0)....." to whatever
you need.

Sub test()
With Sheets("Sheet1").Range("A1").CurrentRegion
.Offset(1, 0).Resize(.Rows.Count - 1, _
.Columns.Count).Copy _
Destination:=Sheets("Sheet2").Range("A1")
End With
End Sub


"Polarbilly" wrote:

I'm using GO TO /Current Region to create a macro to select a block of data
to copy and paste into a new worksheet. However, I dont want to copy the
header line...anyone???

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
Can't Copy and Paste or Paste Special between Excel Workbooks wllee Excel Discussion (Misc queries) 5 April 29th 23 03:43 AM
Copy/Paste how to avoid the copy of formula cells w/o calc values Dennis Excel Discussion (Misc queries) 10 March 2nd 06 10:47 PM
Excel cut/Paste Problem: Year changes after data is copy and paste Asif Excel Discussion (Misc queries) 2 December 9th 05 05:16 PM
I cannot paste from one workbook to another. Copy works, paste do. JimmyMc Excel Discussion (Misc queries) 1 June 10th 05 03:54 PM
Copy/paste/paste special is not available Diane109 Excel Discussion (Misc queries) 3 December 2nd 04 01:46 AM


All times are GMT +1. The time now is 10:26 AM.

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

About Us

"It's about Microsoft Excel"