LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Copy paste ranges from multiple sheets

Hi

I am new to VBA and need help on the following problem:

I have a workbook with 2 types of worksheets. 2 permanent worksheet in
the begining and 2 and the end of the work book. In between theses
worksheets are a variable amount of sheets which a user can create.

I need to copy and paste a specific range from the variable sheets into
a "Data" sheet (a permanent sheet) , one column for each sheet.

I have read a few books and this is what I Have so far

Sub copydna()
Dim lastsheet As Long
Dim rng As Range
lastsheet = Sheets.Count
For N = 3 To lastsheet - 3
Sheets(N).Activate
Set rng = Range("H49:H303")
Sheets("Data").Cells(1, 1).offset(0, 1).Value = rng.Value
Next
End Sub

It is not correct , I am missing the correct way to offset the range.

I will be greatful for any help.

Thanks

John

 
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 can I copy big ranges of cells without drag or copy/paste? Ricardo Julio Excel Discussion (Misc queries) 3 March 23rd 10 02:38 PM
search, copy and paste through multiple sheets Jeff S.[_2_] Excel Discussion (Misc queries) 1 August 16th 09 12:08 AM
Copy paste WkBk/sheet 1 to multiple wkbks/sheets wrpalmer Excel Programming 1 August 20th 05 03:08 PM
cut and paste variabe ranges in one sheet to different sheets in workbook philaugust2004 Excel Programming 2 August 4th 04 10:26 PM
Copy and Paste ranges between files dude Excel Programming 3 July 23rd 03 01:37 PM


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