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)
 

Some videos you may like

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.

venkat1926

Well-known Member
Joined
Aug 21, 2005
Messages
4,824
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
 

Watch MrExcel Video

Forum statistics

Threads
1,122,180
Messages
5,594,713
Members
413,924
Latest member
OMGSALESFORCE2

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
Top