Vba Auto-update Colours
May 1, 2007
I am in charge of a report spreadsheet which gets updated by my users multiple times a day. The spreadsheet is called the R-A-G report (red, amber, green). One of the columns has colours which are updated manually in accordance to the ammount of stock we have in the database (oracle column) and in our warehouse (utl column).
Right now the users update these colours manually, using a key at the bottom of the spreadsheet. My dream is to have these colours auto-updating when a macro is run.
I spent a little time and wrote a very basic macro, but there are a few problems with it. For one i do not think that the macro fills out of the possible variables; therefor it has around 50% accuracy.
I have uploaded the file and would really appreciate if i could get some feedback on how i could write this correctly, maybe some usefull websites specifically directed at elseif (if that is the correct code for me to use).
View 9 Replies
ADVERTISEMENT
May 6, 2014
I'm sure this will be an easy query.
These are marks scored by 5 people in 10 exams
Name of the student
MARKS
MARKS
MARKS
MARKS
MARKS
MARKS
MARKS
MARKS
MARKS
MARKS[code]....
Range
A1 to K6
In each row top 5 MARKS should be filled with BLUE,VIOLET,YELLOW,RED AND PINK
If its not possible. Top 3 with dark colour, remaining 2 with light colour using conditional formatting
View 1 Replies
View Related
Oct 29, 2007
The idea came about after wanting to show a 'gold' 'silver' and 'bronze' background colour, but having to plump for yellow, grey and orange looked a little crap :f
If not, can a workaround be created by using code and a picture or 2?
View 9 Replies
View Related
Mar 31, 2009
I have been tasked with coming up with a solution to an excel issue my boss has. I'll try to explain it as simply as I can but it might get confusing.
We have workbooks containing ledgers for a retail establisment. We create a new book for each year. Each book contains a sheet per month. We also have a comparison book/sheet. Currently we have the rolling total for each line item transfer over to the comparison sheet and then manually workout and enter the data for the same day from the previous year. What we would like to do is have the data from 2008 automatically update as we update the 2009 data.
View 14 Replies
View Related
May 9, 2014
Auto Updating the Comments in Column "M" based on the Values.
I had a TAT Report where there Two different Types i.e., OBI & OBC in Column "D".
In Column "L" i had a overall Production TAT (TAT - Turn Around Time).
Now i need to Auto update the Column "M" using below Criteria's.
1. Type : OBI
If the Production TAT is less than or equal to 3 hours then i need Auto Comment as "Completed"
If the Production TAT is Greater than 3 hours then i need Auto Comment as "Exceeded due to Neglegency"
2. Type : OBC
If the Production TAT is less than or equal to 10 hours then i need Auto Comment as "Completed"
If the Production TAT is Greater than 10 hours then i need Auto Comment as "Exceeded due to Neglegency"
View 5 Replies
View Related
May 11, 2009
I’m just starting to learn the VBA process with Excel, this problem is probably very basic so forgive me.
I have a cell in excel that is linked to a textbox, if you add text to the textbox it will update the cell. If you close and reopen the application you need to click the textbox to show the value previously added to the cell, can this be viewed automatically.
Here is my
View 6 Replies
View Related
Mar 15, 2012
What I'm trying to do is this:
In sheet "Available", I have a list of all shirts available in store. I often make a printable shopping list in sheet "Shopping list". Once the shopping is done, I would like to automatically add the shirts bought to "Available" sheet.
View 3 Replies
View Related
Mar 31, 2009
i have a workbook that pulls data from 7 other workbooks based off of 3 criteria. In 6 of the 7 workbooks there are 6 sheets and in the last sheet there are 15sheet. All the sheets are used on different computers and currently the member who use these sheets cant remember to save them so the main workbook can pull the information. So I was hoping for a VB code to do the save for them after they enter any data in the range of A1:J50.
Then for the main work book i was hoping for a VB code to auto update after entering the 3 criteria. I have a marco made but it takes awhile to do it. First it saves the sheet, then pulls the information, then refreshes some pivot table, then populates into the proper cells.
View 9 Replies
View Related
May 10, 2006
I have a spreadsheet of 30 or so tabs, all of identical layout, with columns B to AS used. Each day I have to drag a row down to collect data from various other spreadsheets, on each of the 30 tabs (different data in each tab, but same format), i.e. today I dragged down B216:AS216 down to B217:AS217 for all 30 tabs. I could record a Macro on the first tab and then play it for the remaining 29, but I have to record the Macro each day so it drags down the next row down.
I am after a Macro that will drag down the columns to the current date (which is in column A and is already entered down to the end of the year) on all tabs, so if I left it for 5 days etc, and then ran the Macro, it will drag down 5 rows. But if I had to run it 5 times that wouldn't matter. A button on the first sheet would be brilliant too, meaning I could open it up, click the button, and then all 30 tabs would drag down to todays date.
View 4 Replies
View Related
Jun 20, 2007
Ok this is tough to explain but I will try. I am using edate to find data that is older than 2 years old. I have a formula that works. =If(C2<EDATE(TODAY(),-24),B2,""). My issues is that it does not auto-update the data until I have manually changed the date. You can look at my sample. If you change the date or double clik on any "cert date" cell, then my data updates.
View 7 Replies
View Related
May 22, 2014
I have an add row macro and i need to sum up all of the numbers in a column however when i add a row the sum doesnt update to include the new row. Is there a way to fix this?
View 4 Replies
View Related
Aug 22, 2014
I create daily report for dispatch documents to our various branches. Now I am looking for formula (or formula is not possible then VBA code) that will auto update document number and dispatch date in "output" sheet.
Find attached sheet with desired output.
View 5 Replies
View Related
Jul 5, 2014
I modified an employee schedule that I found on here to meet my needs but I am needing one more thing:
I need a field (or separate worksheet in the workbook) where I can enter employee availability and if they are unavailable for a specific day, it will auto update in the calendar stating they are unavailable for that day.
View 7 Replies
View Related
Sep 17, 2013
I am trying to do exactly what the calendar from this thread does with the Waste Log: [URL]....
But the years only go to 2012, can someone update this for 2013? And include Saturday and Sunday on the calendar too?
View 2 Replies
View Related
Oct 17, 2013
I want to auto update ( refresh ) an external feed containing odds from Pinnacle Sports website, at 30-60 seconds intervals. Here is the link : [URL] .....
I would also want to apply some formulas to other columns in excel, but mainly I would want to know where is the change in odds. For example if Bayern Munchen has the odds 2, and after the refresh the odds dropped at 1.9 I would want to see the difference in another cell.
View 2 Replies
View Related
May 25, 2009
I have a quote that has a value in a few cells =IF(B31="","",VLOOKUP(B31,'[Product Supply-1.xlsm]Sheet1'!$B$8:$N$11,13,0)). Though when i make changes in the product supply file i need it to automaticaly update the quote file. Look at thread http://www.excelforum.com/excel-gene...how-value.html to understand the problem. The quote file is there in thread.
View 4 Replies
View Related
Jul 21, 2008
i have a list called "parts". i want this list to be updated everytime a new part # is entered into the list cell. i can get it to work in one cell. i have been able to get it to work in up to 6 rows, however i want it to work in up to 50 rows. here is the vba code i am using
Private Sub Worksheet_Change(ByVal Target As Range)
Dim lReply As Long
If Target.Cells.Count > 1 Then Exit Sub
If Target.Address >= "$D$3" Then
If IsEmpty(Target) Then Exit Sub
If WorksheetFunction.CountIf(Range("parts"), Target) = 0 Then
lReply = MsgBox("Add " & Target & " to list", vbYesNo + vbQuestion)
If lReply = vbYes Then
Range("parts").Cells(Range("parts").Rows.Count + 1, 1) = Target
End If
End If
End If
End Sub
i am using insert>name>define for the list and this is what i used for that
=OFFSET(lists!$A$1,0,0,COUNtA(lists!$A:$A),1)
like i said, it will work for d1-d6, then it stops working.
View 9 Replies
View Related
Aug 17, 2008
I did try a search before posting this - either I am too stuipid or the info was a bit too cpmplicated and in bits and peices for me to figure out. My query is this
Lets say I have a workbook with around 10 sheets in it. and I have a saved a copy of the sheet ias a webpage (HTML ) for user convinence. Now is it possible to somehow ensure that when the orginal workbook is updated then this webpage would also get updated - both would be in the same drive ( I dont want to use internet for this purpose)
View 2 Replies
View Related
Jun 14, 2014
The below is a data sheet which is going to be designed to keep the records of "sending and receiving" details of wash-garments from a garment factory.
Descriptions;
01. Starting from B12, the dates of sending and receiving are entered in the sequence they occur. Both sending and receiving can occur on the same date.
02. Starting from C12, there are reference codes related to the activity, if Sending the letter is entered as "S", and if receiving it is entered as "R". I included this for the calculation or sorting purpose.
03. Columns D to J includes the break down of sizes of the quantities sent or received.
04. column K simply calculates the totals of the columns from D to J.
Requirement : I need to have the totals of each size wise quantities sent and received in the "summary table" as follows;
>> Size wise totals of "sent qtys" to be shown in D5 to J5(referring to the code "S")
>> Size wise totals of "received qtys" to be shown in D6 to J6(referring to the code "R")
>> The dates to be updated and displayed"automatically" in the rows of the column B, when the code letters("S" or "R") is entered in the column "C"
Special Remarks : The last date of sending or receiving cannot be predefined, the rows(dates)will be kept adding according to the way sending and receiving may occur.
View 14 Replies
View Related
Dec 9, 2009
I'm using a total of 20 Rows and 2 Columns. Each row has Column A for Description and Column B for Score. There are total 10 subjects with 10 noneditable rows, and 10 editable rows.
I'd like to protect column A and B for rows 1 to 10 and unprotect only Column B for rows 11 to 20. When any cells from Column B, rows 11 to 20 updates, I'd like to automatically sort columns A+B for ONLY rows 1 to 10.
Therefore, rows 1 to 10 need to be sorted based on the scores on Column B, and since rows 11 to 20 are just input fields, they are never to be sorted.
Column B for Rows 1-10 will be formulas and are based on Column B values from rows 11-20.
When a value in any of the rows 11-20 of Column B is updated, Range A1:B10 will automatically sort from highest score to lowest score (Column B).
Since Column B for rows 1 to 10 contains formulas and not actual values, would it throw off the order of things when sorting formulas?
the macro coding to perform this task.
Here is just a visual of what the spreadsheet will look like
....A B
=======
1||A (B11)
2||B (B12)
3||C (B13)
4||D (B14)
5||E (B15)
6||F (B16)
7||G (B17)
8||H (B18)
9||I (B19)
10||J (B20)
11||A 10
12||B 9
13||C 8
14||D 7
15||E 6
16||F 5
17||G 4
18||H 3
19||I 2
20||J 1
The Bold are editable fields. and I want to use auto sort A1:B10 based on updated values of B11 to B20.
I have also attached the basic excel file that situates my concern.
View 9 Replies
View Related
Oct 25, 2012
I have excel graphs linked to a power point presentation that runs in a loop and I would like have to the links update everytime slide 1 pops up or when the loop restarts, either one works for me. When I close the looping presentation and reopen it I get a message asking me if I want to update the charts, but I would really prefer the looping presentation to update itself. I know this is going to be a VBA setup, but I cant seem to figure it out. I pasted the links by: pasting special, paste link as microsoft office excel worksheet object.
View 8 Replies
View Related
Feb 7, 2014
Trying to get this macro to auto-run after the referenced cell is changed:
Sub Headerdata()
ActiveSheet.PageSetup.RightHeader = Range ("d1").Value & Range ("e1").Value
End Sub
I got it to work in one book but it won't work in any other book...
View 5 Replies
View Related
Sep 21, 2004
Is it possible to update a cell with an additional number eg from 22 to 23 when a template is opened. In accounting packages for example, every time you open an invoice it automatically increases the invoice number to the next higher number. I was thinking I might be able use excel to create an inwards goods receipt for items received for repair.
View 9 Replies
View Related
May 12, 2006
I have 3 pivot tables on the same page - they all have the same PAGE and ROW fields, just different column and data fields. (may seem weird, but I'm producing reports for non-Excel people and this seems the only way to display info in user-friendly way).
Problem: If a user changes the selection in a Page field, I need the other 2 pivot tables to automatically select the same Page field, so the pivot tables are still all like-for-like.
I've started writing a macro which I can run to do this - below - but
1) I need it to run automatically when any of the page or row fields are updated
2) my macro is probably far too basic for my needs - one of the page fields has 245 values, so the below isn't really going to cut it!...
View 4 Replies
View Related
Jun 9, 2006
I have a graph that is showing the date on "Y" axis and a value on "X" axis, when I add a new date and value to my data the graph does not update, it just shows the data when I first created the graph.
How do I get the graph to display the new data I entered ?
I created a line graph by clicking on the "A" in column "A" (Thats where my date is) then clicking on the "B" in column "B" (Thats where my values are) and clicking the create graph button then clicked finished.
View 6 Replies
View Related
Aug 4, 2006
When copying data from a closed workbook, I frequently get the prompt:
"Links to 'Source.xls' were not updated because 'Source.xls' was not recalculated before it was last saved.
To update links with current values in 'Source.xls', click OK..."
Is there a way I can bypass this prompt and automatically update with the saved (uncalculated) values and therefore not require a user intervention?
View 5 Replies
View Related
Feb 21, 2008
1. Is there any way a Cell can automatically be updated? for example:
On Citi Bank worksheet, As soon as a deposit matures, I insert another row and enter new fixed deposit data on "Row 13", but then I have to manually change the references on "Row 4" so that it points to the new "Maturity date" and the "Interest" and the "Current balance".
Is there any way I can automatically update Maturity, Interest rate and Current balance as soon as I enter new deposit information.
2. On the "Fixed Deposit Report" worksheet. Is there any way the list of deposits can automatically sort based on the maturity date as soon as I enter the new deposit information?
View 8 Replies
View Related
Jul 24, 2013
i want to update values fon an excel sheet on a month by month basis. So i have jan to dec folders and excel sheets under each folder , i want to update my monthly forecast sheet based on the numbers in the folder I want to just change the cell in my monthly forecast sheet to Jan or Feb and the values should be pulled from the closed excel files in the monthly folders. I tried concatenation but it gave me #REF .. Is there a way to do it other than using "pull" ??
View 1 Replies
View Related
Jun 7, 2013
We are currently utilizing a shared workbook (yes, I've read the inherent problems with this). This workbook needs to automatically save any changes and refresh itself every minute. We are seeking an answer to this goal, perhaps utilizing VBA code ?
We have researched the forums and attempted numerous snippets of VBA code and different settings already available in Excel (ver 2010) without success. And, we have tried using the Advanced Settings (Shared Workbook / Advanced Settings (5 mins)) .... however the display of newly added data is not updated on all viewing terminals unless we close the shared workbook on those viewing terminals and then re-open.
View 14 Replies
View Related
Jan 30, 2014
I have this code :
[Code] .....
Great Timer. Have this assigned to a button to start, how can I work in a button to stop or pause this code from running?
View 3 Replies
View Related