Run A Macro Monthly
May 6, 2008
I have the following situation. I work off-site most of the time in another office. I would like to have a macro on my main office PC to run on a monthly basis at a set time.
For instance on the 15th of every month at 9:00 am the macro would go into a shared drive and pull an updated copy of a report, redo the report and send it out to various offices. I have VB code that performs all the tasks except for setting a timer to tell it too run on the 15th of every month at 9:00 am.
View 9 Replies
ADVERTISEMENT
Mar 6, 2013
I have a table of yearly totals for the amount spent by x. I also have a growth rate for each month so for example in 2001 in jan the growth rate might have been 0.3% and feb 0.5% What I want to do is for each month based on the growth rate and the total produce a value for each month which sum to the total amount. It's also important to note that it restarts each year.
Link for excel file is here: [URL] ...........
View 1 Replies
View Related
Aug 3, 2009
I’m currently pulling data into two columns labeled “Monthly” & “Non-Monthly” respectively. They indicate work orders with a frequency of “Monthly” or “Non-Monthly”
The Monthly data is obtained using the following formula:....
View 9 Replies
View Related
Jul 14, 2008
I want to do is set up a macro to autofill into a new column every month. My data is linked to another excel document so that is where it is pulling the data from. Currently I have data in columns monthly from Dec 2001 until June 2008. I just want a macro that will automatically add in the next month, so in this case July then August the following month ect.
View 10 Replies
View Related
Apr 20, 2007
I have this macro that I am using but want to automate the file it uses. This file has the last 5 text/digits change each month, e.g.
Internet_GB_Report_Feb07
Internet_GB_Report_Mar07
Clearly the next file would be Apr07. I would like the macro to identify this automatically and use the correct file without having to go into the macro every month and change the last 5 text/digits. If you have any ideas I would be very grateful to hear from you. The Macro is below:
[/code]strPath = "c:Internet"
strFilename = "INTERNET_GB_FEB07"
strThisWkb = ActiveWorkbook.Name
intReports = Workbooks(strThisWkb).Sheets("Lookups").Cells(1, 2)
Code:
View 9 Replies
View Related
Mar 7, 2014
i have a workbook that is doing a copy and paste between 2 workbooks.
the trouble i am having is every month workbook a changes to be the name of the current month and year workbook b never changes. so when a change in month happens the macro stops working due to new workbook name.
how could i have the macro reed the name of the work book and input that name into the necessary locations withing the macro.
View 2 Replies
View Related
Sep 29, 2013
I am trying to create a macro to insert monthly P&L figures into a spreadsheet.
I am needing the macro to insert a column to the left of a column titled 'movement' each month and copy&paste my monthly figures in.
I have recorded the below macro but my inserted column is always moving into column E and pushing the prior month to the right, where I need it to always be situated to the immediate left of the movement column, e.g. if the macro is inserting September P&L data I need it to be situated between August data (currently in column E and movement data currently in row F and so on.
Column C D E FItem
July
August
Movement
Fees
26,500
28,000
2,000
Assets Ongoing
150,000
160,000
10,000
Columns("E:E").Select
Selection.Insert Shift:=xlToRight, CopyOrigin:=xlFormatFromLeftOrAbove
Sheets("P&L Current Month").Select
Range("D11:D127").Select
[Code] ...
View 1 Replies
View Related
Feb 10, 2009
I am trying to get a function (sum) of several cells to be automated in a monthly spreadsheet. I can get the function to work, but how do I get it to Autofil? The syntex seems to call for a range, which will be different every month. I can't figure out how to loop it, so I thought autofill would work.
View 3 Replies
View Related
Jun 10, 2009
I have a two column A and B at Sheet1. Col A is a Date wise column and Col B is of the Values. I need formula for getting sum monthwise in sheet2. i.e the sum of jan, feb, mar etc
View 9 Replies
View Related
Sep 20, 2009
I wish to create a Vlookup & summing qty by month.
In sheet1 is date
Column A = Date
Column B = Code
Column C = Qty
In Sheet2 I wish to create Vlookup.
I have the code in Column A4 going down AND wish to create Vlookup in column C4 for month Apr-09(c3) display total qty.
In sort look up code - for the month and sum qty .
code Apr-09 May-09 Jun-09 etc
SW L 60 15 55
SW M 10 35 45
DD L 30 30 25.
View 9 Replies
View Related
Jan 7, 2014
I have a 12 month budget spreedsheet. Some expenses' are fixed every month. I would like those cells to be automatically filled with that fixed amount. Say on the 5th of every month a particular cell would have $50 automatically entered so i don't have to do it manually.
View 2 Replies
View Related
Jan 27, 2014
I am trying to convert quarterly data to monthly
The quarterly data columns go: Mar-14, Jun-14 etc
The monthly data columns goes Jan-14, Feb-14 etc
I am trying to use a vlookup and match formula but as you will see in the attached file it is only working for those months that are labelled in both data e.g. March 14, June 14
Is there a formula that will pick up for example that January and February numbers should be drawn from the March 14 quarter, April and May from June quarter etc?
View 2 Replies
View Related
Jan 31, 2014
I have a table which has the following columns:
Date - Data1 - Data2 - OtherData1 - OtherData2
I came up with some formulas to count my data monthly. I have 12 tables with this kind of formula in it:
[Code] ....
Where B12 is the year and A213 is my month number. My first try on the "date filter" looked like that:
[Code] .........
And it wasn't working so I thought it was because the 31 wasn't a good idea for non-31-days-months but none of the formulas above are working.
(BTW, IDK why it's not working but I have data in my table for months 10, 11 and 12 and the only calculation tables that are calculating data are the ones for months 9 and 10. The results are the same in these two tables and are counting all my Table1[Data1] and [Data2] (the count is not monthly))
View 7 Replies
View Related
Aug 14, 2014
Find the attached excel sheet.
I have, every month data like for one Year, every day in a month we will update the sales information in to excel sheets like jan, feb, march, ...December
In the Main sheet i want total, i have bunch of data and wide range of items, how to get monthly consumption into main sheet.
excel.xls.xlsx‎
View 1 Replies
View Related
Apr 28, 2007
I have a list of dates with respective balances. I am wondering how to get Excel to determine if the end of the month has passed after a certain date and then calculate the return for that month. What is the most efficient way in your opinion?
Here is a small data sample:
27/12/2005 06:23 0.3%
27/12/2005 05:47 -0.6%
29/12/2005 06:53 1.3%
04/01/2006 17:55 -0.1%
09/01/2006 15:35 3.99%
09/01/2006 15:46 2.54%
09/01/2006 17:07 1.8%
12/01/2006 07:12 -2%
12/01/2006 13:37 1.5%
12/01/2006 13:39 0.8%
12/01/2006 13:58 0.01%
View 14 Replies
View Related
May 20, 2009
I need to create a running monthly total formula for a worksheet. This is something i need in the data, so i can manipulate it without using a pivot table.
I think I would use the SUM, MONTH, and IF formulas, and maybe EOMONTH.
I guess where I'm stuck is figuring out how to make conditions for my SUM formula. So as the dates go down the page, I would like a running total in a column to the right, that will also restart with every new month.
Attached is my example.
View 6 Replies
View Related
Sep 10, 2013
How to translate dates which i already have in the US format, to the UK format.
i.e. mm/dd/yy becomes dd/mm/yy
View 3 Replies
View Related
May 21, 2014
where to start with automating a monthly report that I put together.
My report is generated from two or three tables of data - roughly 25,000 records.
Currently, I copy and paste this table of data into one worksheet, and then have pivot tables that are written to take data from this table (this is a typical marketing sales funnel - calls, raw leads, qualified leads, customers, revenue). Then I have another worksheet that is the display to the client, with the proper formatting, mathematical calculations, totals etc. On this client facing worksheet, I pull data from the pivot table (using =GETPIVOTDATA formulas).
It seems that I have constructed this report in a very inefficient way because I have a ton of manual work to do every month to make the client view presentable as changes come about in the raw data. For instance I segregate the client facing report by lead sources, but when new lead sources get added in month by month, I have to edit the client facing report at length.
where to start, or what steps to make this more automated
View 1 Replies
View Related
Apr 7, 2014
How to write a macro that will sum daily figures into monthly figures? On the attached spreadsheet I would like to take the daily figures on the amounts on the VRU DAILY worksheet and sum them in the appropriate month on the VRU # sheet.
View 14 Replies
View Related
Feb 24, 2006
best formula for adding figures in a column that correspond to each month of the year?
I have a sales register with the date of sale and commission on each row but want to display the total commissions for each month of the current year on one worksheet and monthly totals for previous year on athother worksheet.
View 10 Replies
View Related
Nov 11, 2011
The file name will change on a monthly basis. Is there a code that will open the file without making modifications to the macro itself? For example, October Budget.xls, next month the file will be November Budget.xls, etc.
View 4 Replies
View Related
Nov 26, 2011
Only recently have I really stumbled upon some of the more advanced functionality of excel, and I was literally blown away. I'm now trying to learn more and more about it.
[URL]
I need the Monthly totals of Apples, Oranges, Apples & Oranges.
I know how to select it by hand with the:
=SUM(, hold shift, mouse select the apples for March, and do the same for the other columns.
But how do you do it via a formula? Also, is it possible to make it dynamic? i.e. you add more transaction dates later, and the whole spread sheet gets updated automatically.
The only way I see how to do that is to write a loop that goes through all of the records. How would such a loop look like? Or is there a better way?
View 4 Replies
View Related
Jul 7, 2012
I am working on a spreadsheet to automatically generate teachers schedules for teaching various students on a weekly basis. (See section of the spreadsheet below)
The teaching dates in column A are generated using the formula
=WORKDAY.INTL(A2,6,11,$J$3:$J$70)
Where Column J is the list of Holiday dates to exclude.
The rate of pay for each lesson is in Column H.
What I am attempting to do is to automatically calculate the teachers pay each month by adding together the range of cells in column H that correspond to the dates taught in a particular month listed in Column A.
I have tried to use SUMIF but as there are a different amount of lessons taught each month the range of cells to add is different each month, I can't see a way to define the cells to add from column H without doing it manually.
Is there a way to define the range of cells to add together from column H based the dates in a particular month?
Date
Time
Instrument
Student Name
Location
Rate of Payment
Holiday2 2012/2013
05/09/2012
14:30 - 15:00
Guitar
Student 1
Studio 103
10
[Code] .........
View 8 Replies
View Related
Dec 10, 2007
there is probably is shorter code too
Dim sLastMonth As String
Dim sNextMonth As String
Dim iNextMonth As Integer
sLastMonth = Worksheets(Worksheets.Count).Name
iNextMonth = Month("1 " & sLastMonth) + 1 ' Need any valid day of month
sNextMonth = Format(DateSerial(2000, iNextMonth, 1), "mmm") ' Use any valid year & day
View 10 Replies
View Related
Mar 5, 2009
I am looking for a formula to sort out a budget problem I am currently working on... I am guessing that the formula is pretty simple but my mind is blank...
What I am trying to do is:
Cell A1 is my cash budget
Cell A3 is actual cash used
Cell A5 is The Difference between A1 & A3 (sum A1-A3)
What I want in Cell A7 is a formula to tell me if my Budget is over 50% either way..
For instance if A1 = 100 and A3 = 155 then I am 55% over and would like a note to appear saying "Explanation required".
If A1 = 100 and A3 = 45 then I am 55% under my Budget and would like a note to appear saying "Explanation required".
View 9 Replies
View Related
Sep 6, 2009
I would like to add avalue of 100 to cell E1 on th 19th of every month.
I currently have this code which I realize will just update every new month instead of the 19th but does not seem to work right.
It only works if I leave cell A1 blank and then it inserts 1/19/1900 into cell.
Private Sub Workbook_Open()
'Compare today's month against value in A1
If Month(Now) > Sheets(1).Range("A1") Then
Sheets(1).Range("E1") = Sheets(1).Range("E1") + 100
Sheets(1).Range("A1") = Month(Now)
End If
End Sub
View 9 Replies
View Related
Nov 9, 2009
I wonder if anyone could help with some VBA code to automatically save a copy of a workbook on a monthly basis (Say the 1st of each month, or the nearest date to that if it has not been saved on the 1st.)
I would like this to be done without user input, and to be saved with the current workbook name + the current date. It can also be saved in the current workbook folder. I am using Win XP Pro and Excel 2003. This would also obviously need to check if the file currently exists, we can say the filename is Cars and the directory is C:Data. Finally I do not wish to stop the users from saving their own version with save or save as.
View 9 Replies
View Related
Feb 13, 2009
I am trying to compare almost 2 identical spreadsheets. Please see the attachment below. This is used by our HR department to identify people that are active or inactive, department, title, who are their supervisors, etc. This spreadsheet will be updated monthly to reflect all the changes (new employees, people move from one dept/home location) to another, come back from temporary leave, promoted, or terminated). I saw some macro code application to highlight the differences of 2 spreadsheets but the spreadsheets are so much simpler than mine. We have approximately 1000 employees.
View 7 Replies
View Related
Oct 7, 2006
I want to have my monthly job chart automated. I got a leave chart marked with workers' leaves on a month basis. Each month, I got to consolidate a job roster containing names of workers who will be working at the counter. It takes me almost 2-3 hours to have the roster completed. I attached here with an excel file for your information. Can it be done automatically by vba if data of workers' leaves are available? The names assigned will be at random in seqence each month(i.e. Peter will be at counter work on 3/10/2006 if not on leave but may be on 08/11/2006). That's why it takes me so long to compile the roster.
View 9 Replies
View Related
Oct 23, 2006
I have a daily nutrition log that is made up of monthly sheets. New entries are placed below the last entry, into the proper sheet by date, automatically.
The problem I am having is to find a way to put my formulas and formats into row 1 of each new monthly sheet so that when the entry is for the next month, it will add the new entry into row 2 of the new month, seemlessly, without manual intervention.
The formula I am using works from row 2 and down. It doesn't work on row 1.
Here is one of formula's that works on row 2:
=If(Or($A2=$A1,$A2=""),"", SUMIF($A:$A,$A2,H:H))
When I copy/paste it into row1 (to get the starting reference row), I get this:
=If(Or($A1=#REF!,$A1=""),"",SUMIF($A:$A,$A1,H:H))
The code copies the last row (in the case of a new sheet that would be row 1) and pastes' it into the next row down and then overwrites the first five cells. The problem formulas are NOT in the first five cells.
I tried to using $A65536, but it also #REF! error's out.
View 4 Replies
View Related