LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default VBA error in Excel 2003

I did a little more testing and have come to the following conclusion:

Sub test()
Sheets("Sheet1").Range("A1").CurrentRegion.Copy _
Sheets("Sheet2").Range("A1")
End Sub

the above code worked for several years in previous versions of Excel
but produces errors in Excel 2003. The errors occur when the data is
filtered and the data to be copied is made op of non-contiguous rows.

Example:

1. after filtering you want to copy rows 1,5,8,13,23 then there is an
error message

2. after filtering you want to copy rows 1,2,3,4,5,6 then the code
runs fine (NO ERROR)


thanks, Jenny



 
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
VBA Error in Excel 2003 Mike Flory Excel Discussion (Misc queries) 14 April 4th 23 10:34 AM
Excel 2003 serious error guraqte Excel Discussion (Misc queries) 5 March 16th 08 02:19 PM
Excel 2003 Macro Error - Runtime error 1004 Cow Excel Discussion (Misc queries) 2 June 7th 05 01:40 PM
MID$ error in excel 2003 Andy Excel Programming 1 September 17th 04 01:49 AM


All times are GMT +1. The time now is 09:15 AM.

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"