LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default Efficient way to copy a range in numerous sheets within a work

Thanks for your help!!!! It worked perfectly, I appreciate it.


"Wolf" wrote:

How about this:

Sub test
Dim wks As Worksheet
Dim DontCopy1 As Worksheet
Dim DontCopy2 As Worksheet
Dim DontCopy3 As Worksheet
Dim DontCopy4 As Worksheet
Dim CopyRange As Range
Dim DestCell As Range

Set CopyRange = Range("C4:G56")
Set DestCell = Range("D4")
Set DontCopy1 = Sheets("Instructions")
Set DontCopy2 = Sheets("Summary")
Set DontCopy3 = Sheets("Balances")
Set DontCopy4 = Sheets("DataSheet")

Sheets("Sheet1").Select
For Each wks In Worksheets
If wks.Name = DontCopy1.Name Or _
wks.Name = DontCopy2.Name Or _
wks.Name = DontCopy3.Name Or _
wks.Name = DontCopy4.Name Then

Else
wks.Select
Range("C4:G56").Select
Selection.Copy
Range("D4").Select
ActiveSheet.PasteSpecial Format:=3, Link:=1

End If

Next wks

End Sub

after the "or it is <space<underscore

Wolf




 
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
how do i sum the same cell in numerous sheets behind a main njparamedic Excel Worksheet Functions 2 May 14th 09 02:27 PM
return same cell value from numerous sheets Laurie Excel Worksheet Functions 5 April 11th 08 02:19 PM
how to lookup in numerous different sheets Zak Excel Discussion (Misc queries) 6 January 11th 08 12:24 PM
Comparing numerous sheets Zak Excel Discussion (Misc queries) 5 January 10th 08 09:57 PM
How to repeat a code for selected sheets (or a contiguous range of sheets) in a Workbook? Dmitry Excel Worksheet Functions 6 March 29th 06 12:43 PM


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