LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #8   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 230
Default Copy method crashed Excel somtimes

How did you get this to work when wsDestination is undefined??


"davidm" wrote in
message ...

Your code works fine for me. Let me however observe that you could do
with some simplification, weeding out the intermediate assignments.
See:

Sub copyOver()

Dim n As Long

n = Sheets("GRADE").Cells(Rows.Count, 2).End(xlUp).Row
Sheets("GRADE").Range("B12:F" & n).Copy
Sheets(wsDestination).Range("B12")

End sub


--
davidm
------------------------------------------------------------------------
davidm's Profile:
http://www.excelforum.com/member.php...o&userid=20645
View this thread: http://www.excelforum.com/showthread...hreadid=399357



 
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
Excel 2007 Crashed - All Hyperlinks broken Kevin Clark[_2_] Excel Discussion (Misc queries) 3 September 24th 07 08:15 PM
How do I re-download Excel onto my computer (it crashed)? sueb262 Excel Discussion (Misc queries) 3 November 26th 05 07:55 AM
Excel Crashed Terribly Kiran Excel Discussion (Misc queries) 5 August 16th 05 06:40 PM
Excel Copy Method Failing. [email protected] Excel Programming 2 May 11th 05 06:01 PM
Excel workbook crashed Edgar Thoemmes Excel Worksheet Functions 3 January 21st 05 12:36 PM


All times are GMT +1. The time now is 12:11 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"