Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
H.S H.S is offline
external usenet poster
 
Posts: 1
Default VBA help sought

Dear Experts



I hope someone can assist with my request.



I have a workbook with 13 sheets. Worksheet1 is the main working sheet, the
remaining 12 sheets represent one month of the year each. (Jan05, Feb05..)



On Sheet1 I carry out all my calculations. Cell A1 is always displaying the
current date; cells F5 to F11 display the final calculations. I manually
copy the date in A1 (Sheet1) and paste it into the corresponding monthly
sheet starting in cell A3 and the final calculations from D5:D11 (Sheet1) to
the same monthly sheet filling cells

B3: B9. The next day the working sheet (Sheet1) is overwritten with new data
and the same process is carried out copying and pasting the summary to the
corresponding monthly sheet under the previous days entries leaving an empty
row between the entries. The new date is now in A11 and the final
calculations in cells B11:B17.

I am looking for a macro that would copy this data to the required monthly
sheet.

I would be grateful if one of your experts could guide me in the write
direction.



Thank you


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default VBA help sought

Sub CopyData()
Dim sMonth As String
Dim iDateRow As Long
Dim iDataRow As Long

sMonth = Format(Date, "mmmyy")
iDateRow = Day(Date) * 2 + 1
iDataRow = Day(Date) * 7 - 2

With Worksheets(sMonth)
.Cells(iDateRow, "A").Value = Range("A1").Value
Range("F5:F11").Copy Destination:=.Cells(iDataRow, "D")
End With
End Sub

--

HTH

RP
(remove nothere from the email address if mailing direct)


"H.S" wrote in message
...
Dear Experts



I hope someone can assist with my request.



I have a workbook with 13 sheets. Worksheet1 is the main working sheet,

the
remaining 12 sheets represent one month of the year each. (Jan05, Feb05..)



On Sheet1 I carry out all my calculations. Cell A1 is always displaying

the
current date; cells F5 to F11 display the final calculations. I manually
copy the date in A1 (Sheet1) and paste it into the corresponding monthly
sheet starting in cell A3 and the final calculations from D5:D11 (Sheet1)

to
the same monthly sheet filling cells

B3: B9. The next day the working sheet (Sheet1) is overwritten with new

data
and the same process is carried out copying and pasting the summary to the
corresponding monthly sheet under the previous days entries leaving an

empty
row between the entries. The new date is now in A11 and the final
calculations in cells B11:B17.

I am looking for a macro that would copy this data to the required monthly
sheet.

I would be grateful if one of your experts could guide me in the write
direction.



Thank you




Reply
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
Solution sought for Budget calculations DocBrown Excel Discussion (Misc queries) 0 December 17th 08 06:26 AM
Proper function fix sought Niniel Excel Discussion (Misc queries) 3 September 6th 07 04:46 PM
Advice sought: Multiple column sorting davidm Excel Worksheet Functions 3 July 29th 05 02:06 PM
how do i sought coloured number cells from normal ones? sjb1981 Excel Discussion (Misc queries) 1 April 1st 05 02:49 PM


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