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: 23
Default i have two parts of a solution but can still not get it to run

i am going to explain what i am trying to do,so things will hopefully be more
understandable.
i have a workbook with 4 worksheets, ie, Daily Production,Daily Crane Info,
Crane Wt Summary,
Calender Summary. production is entered into Daily Production and copied to
Daily Crane Info. The information is manipulated and generates information
that is placed in the range AA15:AF15.
I need to copy the date in cell I7 and the information in AA15:AF15 to Crane
Wt Summary starting at A7to E7and that information for each production date
is tabulated ,. when the daily production is for a new month the information
in Crane Wt Summary pasted to Calender Summary and Crane Wt Summary is
cleared and new month enteries fill into appropriate place. the following is
the code i have so far , much of due to the good people on this website. ALL
help greatly appreciated

Sub CO()
Dim rng1 As Range
Dim rng2 As Range
Dim rng3 As Range
Set rng1 = Worksheets("DAILY CRANE INFO").Range("I7")

With Worksheets("CRANE WT SUMMARY")
Set LASTROW2 = .Cells(Rows.Count, 1).End(xlUp)
Set LASTROW3 = .Cells(Rows.Count, 7).End(xlUp)
Set rng2 = Worksheets("CRANE WT SUMMARY").Range("LASTROW2")
Set rng3 = Worksheets("CRANE WT SUMMARY").Range("A3:LASTROW3")
End With

If Month(rng1) Month(rng2) Then
Range("rng3").Copy _
Worksheets("CALENDER SUMMARY").Range("A1:E31").Offset(X, Y)
( i require the information for the months to be stored in Calender
Summary in a 4 month across
3 months down array)

Worksheets("CRANE WT SUMMARY").Range("A7:G31").Select
Application.CutCopyMode = False
Selection.ClearContents

Else: Call Sheet2.test

End If

End Sub


Sub test()


Dim DestCell As Range

With Worksheets("crane wt summary")
Set DestCell = .Cells(.Rows.Count, 1).End(xlUp).Offset(1, 0)
End With

With Worksheets("daily crane info")
.Range("I7").Copy
DestCell.PasteSpecial Paste:=xlPasteValues


.Range("AA15:AF15").Copy
DestCell.Offset(0, 1).PasteSpecial Paste:=xlPasteValues

End With


With Worksheets("DAILY PRODUCTION")
.Range("C9:D44").Select
Application.CutCopyMode = False
Section.ClearContents

.Range("F9:G44").Select
Application.CutCopyMode = False
Selection.ClearContents

End With

End Sub

Rick Mason

--
Message posted via http://www.officekb.com

 
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
Sum parts of a column Roger Dodger Excel Discussion (Misc queries) 2 September 17th 09 06:31 AM
Extracting parts of names klysell Excel Worksheet Functions 6 May 3rd 07 07:17 PM
Chop off parts of the statement 0-0 Wai Wai ^-^ Excel Worksheet Functions 1 April 23rd 06 10:01 AM
Deleting Parts of Cells GOL Excel Discussion (Misc queries) 2 November 3rd 05 09:15 PM
There are a couple of parts to this ???...Thank you for the help. Pete Petersen Excel Worksheet Functions 0 December 30th 04 02:45 PM


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