Save values every month

Joxon

Board Regular
Joined
Nov 3, 2008
Messages
56
Hello!

I would like to autosave (copy/paste) some values in the end of every month of the year.
I want it too save a average value in a column every month.

I have done this in collage but dont remeber it. (But maybee it was power plus pro)
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
I am thinking why not try this
you write a macro to copy paste deseired cells .suppose this mcro is called "test" then

right clilck the excel icon to the left of the <file> menu and vlick view code copy this event code.


Code:
Private Sub Workbook_BeforeClose(Cancel As Boolean)
If Day(Date)+1= 1 Then Application.Run test 
End Sub

so on the last day of the month when you close the file the macro will be run. If you are thinking of last working day you have to modify the event code
 
Upvote 0

Forum statistics

Threads
1,214,521
Messages
6,120,018
Members
448,937
Latest member
BeerMan23

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top