VBA Code To Check If Service Required For A Machine In That Month And Create Popup

May 16, 2014

What I'm basically trying to do is make a code that looks at where the "x" values are in my range and if the month matches the current month, open a pop up that says "Service Required: Equipment Name" when the file is opened.

If it's any easier, an actual date could be written instead of an x.

An alert system for service required if you will. I have attached a file.

TestSchedule.xlsx‎

View 4 Replies


ADVERTISEMENT

Summary Of Losses By Machine By Month

Oct 4, 2013

I am stuck on a database that is becoming a lot more complex and confusing every time i open it. As of right now i am going to take it one step at a time. I have 2 columns. Column A is "Machine", Column B is "Loss" From there, there is a list of machines and their losses for a given month. Each month has its own report of machines and losses. Some machines may be on the first report. And possibly no losses in the second month making in absent on the second report. What i am trying to set up a formula or macro to automatically updated a TOTAL list, that will automatically list every machine that has ever been on any of these reports, and keeping the highest loss for that machine. For example if machine Z had a loss of $100 in the first report, and a loss of $500 in the second report, then the TOTAL list would have machine Z at a loss of $500. What i have been thinking is a macro that takes both reports and combines them, then grouping the duplicate rows of machines together and somehow deleting the duplicate row witht he lower loss?

View 2 Replies View Related

Popup Message With Required Information

Dec 19, 2006

Im trying to come up with a popup message That informs the user that the quanity they entered is not divisible by 12. Here is what I got so far:

The Range("D" & Target.Row) = "6' PANELS WITH STANDS"( this is the item chosen by the user via a drop down)
Then they enter the quanity in Range("A" & Target.Row)

So if the item chosen in Column "D" is "6' PANELS WITH STANDS" and they enter the quanity in Column "A" and it is not divisible by 12 you would then get the message letting you know that.

View 9 Replies View Related

VBA Code To Check Month And Give New Product

Jan 14, 2008

I hv following data in the excel.

I hope some one can help me to create code to do the following :-

1) if have last purchase date , but no last issue date = New Product.
2) if no purchase date , also no last issue date = None stock issue.
3) if have last purchase date , also have last issue date = cal the date between and put the month value .

For example :-

if last purchase date = Oct 07
if last monment date = Nov 07
then the stock duration = 1

View 9 Replies View Related

ReDim Vs. Dim: Code On Another Machine Not Working

Oct 19, 2007

I have: ReDim X(3,1) as double. The code runs fine on my machine, but when I take it to another machine, the code gets stuck on that line.

View 3 Replies View Related

Code To Check For And Create New Folder

Sep 13, 2006

I have a macro that creates a spreadsheet on a weekly basis and have been using it for quite sometime. Due to the large number of spreadsheets I would like to incorporate some code that would create a folder every month. I would assume that the code would need to include a check routine to see if a folder for that month exsists.

View 3 Replies View Related

Length Of Service For Service Awards

Dec 8, 2009

I have an excel spreadsheet with the column headings a1(Emp Name), b1(Hire Date[dd/mm/yy]). There around 1000 records of employees. Every month I have to generate a report for the following month, for example by the 3rd week of this December 2009 I have to extract the report of following staffs from those 1000+ records.

- those who will be completing 1 year in January 2010
- those who will be completing 5 years in January 2010
- those who will be completing 10 years in January 2010
- those who will be completing 20 years in January 2010

How shoud I do it? What should be the formula in which cells? I would appreciate if anyone could guide me with the complete formula with a very reliable way to do it.

View 9 Replies View Related

Check For DLL And Register If Required

Jul 14, 2008

i have created a workbook that looks for files and creates hyperlink within a worksheet to these files, to help the user I have included the title from the document properties.

To get the document properties i used the DSOFile DLL from Microsoft and added it in to my project and it works fine.

My problem is that i wish to distribute this to a large group of users within the workplace and I need a method of checking if the DLL is added in and registered, if not can it be added in and registered on the fly.

I have tried placing the DLL on a common network drive, but this could be further complicated b some users taking laptops out of office but hopefully the microsoft synch of files might take care of this.

View 9 Replies View Related

Create A Popup Window

Nov 18, 2009

Is it possible to create a popup window that contains drawing objects?
I created a "form" with the objects, but I don't know how to use the form.

I want to have this image, or form, or whatever it is, to popup when the user clicks a cell. Is this possible without getting into programming?

Can it be hidden and then made visible when the cell is selected?

View 8 Replies View Related

Create Popup Error

Aug 11, 2009

I'm reading up on and learning VBA slowly.

I'm trying to create a pop-up error within a macro.

The macro is as follows:

View 11 Replies View Related

Create RMB Popup Menu In Userform?

Jan 25, 2010

I would like to create a simple right mouse button popup menu for the text box on a userform. I just want Copy and Paste and the functionality that goes with them if possible.

View 2 Replies View Related

Create Popup Of Range On Another Worksheet?

Feb 3, 2014

.How do you create a popup windows which shows cells on another worksheet that you can change the values based upon a index / match or vlookup?

I select a cell that has a vaule of 102.

then Popups a box which matches that 102 range in another worksheet and shows pulldown (yes no). (Theres about 5 cells (side by side) of yes no pulldowns.

I want the user to then select the values they want and close the popup box.

User selects the following cell with 103. and then goes thru the same process.

View 3 Replies View Related

Excel VBA - Create Popup Window With Instructions For Worksheet

Mar 10, 2014

How to use an Excel worksheet I have, so I decided to make a button with a macro, which when clicked a kind of message box pops up and you can read the tutorial. When you are done you just press ok and the pop up window closes.

I know about vba I just have to use msgbox, keep on adding lines with the text and that's it! But after many attempts I found out that it ain't that easy.

[Code] ......

So I made something like this:

[Code] ....

but at a point I got this error: "Too many lines continuations".

I wanna make something that looks a bit like this: p69pxC8.jpg

But way simpler, with my text, a scroll bar to roll up and down to read and an ok button at the end. I don't need special text with hyperlinks or anything at all, plain text does the job.

It just now crossed my mind, would it be viable to also add a "Print" button next to the "Ok" button in the pop up windows with the tutorial, so when the "Print" button is clicked, the tutorial is printed?

View 7 Replies View Related

Excel 2010 :: How To Create Popup Message When Cell Value Is Over 100

Sep 21, 2012

Creating a pop up message when a cell value is over 100%.

I have in cell T21 "=sum(t7:T21) but I'd like to give a pop up message when this cell value is over 100%.

Excel 2010
windows XP

View 2 Replies View Related

Create Year To Date Sales Comparing 4 Years Month By Month?

Dec 25, 2013

Need to create year to date sales comparing 4 years month by month. Stacked chart (Excel 2010) works OK for the first three months but adding the fourth month changes the chart to 4 series with a monthly axis. To put it another way I need a vertical axis of years and a horizontal axis of $$$ with each months sales of each year stacked on its year.

View 10 Replies View Related

Modify Code To Have Popup Box For Input

Jun 12, 2009

I wanted to change a column text to call intial Caps. I found this macro code on the microsoft web site

Sub Proper_Case()
' Loop to cycle through each cell in the specified range.
For Each x In Range("C1:C5")
' There is not a Proper function in Visual Basic for Applications.
' So, you must use the worksheet function in the following form:
x.Value = Application.Proper(x.Value)
Next
End Sub

I need to change the macro to have a input box (asking what column to convert text to initial CAPS)

View 9 Replies View Related

Formula Required To Take First Letter In 1 Cells And Add Random Number To Create Unique ID

Mar 27, 2014

I have 1200 doctor/patient records to input into an excel spreadsheet for import to an online EHR database. I can set up all the normal formulas and formatting but for the life of me not figure out how to create a custom formula to take the first letter of the patient first name and last name and add 6 figures to create a unique patient identifier.

ie. James + Smith+ random 6 figures = JS245318.

In my spreadsheet the first name is under Column 1, Last name Column 3 and the unique number generated in column 4.

View 10 Replies View Related

Cell Validation Code (If Then Else) Not Working As Required

Jul 10, 2012

I have the following code to check the date of birth entered into cell C18 and to alert the inputter if the age is either under 16 or over 25.

VB:
Sub AgeValidation()
Dim age As Integer
Dim dob As Range
Dim AgeMsgAnswer16 As String
Dim AgeMsgAnswer25 As String

[Code] .....

It works to some extent in that the correct message box pops up if the age is under 16 and similarly if over 25. If answering Yes on either message box then the correct thing happens. Its what happens if the inputter selects No thats not right. If the age is under 16 and the user selects No in answer to "Is this correct?" then the code is clearing the cell contents and showing the calendar again but is also popping up the 'Over 25' validation message box which then won't go away until Yes is selected. Also there are then multiple copies of the calendar open.

What I need the code to do is look at the date selected from a popup calendar in c18 and decide if that age is within the 16-25 year old range. If it is outside that then the inputter needs to be alerted to it. I can't use the inbuilt data validation because there are some scenarios where it would be acceptable to have an age outside of that range but we want to cover inputting errors as well as double checking the age.

When a msgbox pops up to alert the inputter and they choose "Yes" to say the date of birth is correct then I want the focus to go to cell C20 ready to input the next piece of information.

When the inputter selects "No" on the message box, then I want the original date to be deleted and the calendar to reappear so they can select another date. So effectively resetting the field so they can start again choosing a date like when they first entered the cell.

View 4 Replies View Related

VB Code Required To Move Macro To Next Row Down Cell

Apr 18, 2014

I have 'sheet 1' (data collection sheet) and 'sheet 2' (form filling sheet)

I've recorded a macro which sends data from 'sheet 2' to 'sheet 1' (linked to a submit button on 'sheet 2')

I want the macro to allow the next form filled information to be transferred onto the next line down on 'sheet 1'.

The current code is:

[Code] ......

View 4 Replies View Related

VBA Code Required To Pick Value In Upper Cell?

Feb 25, 2014

I want a macro fill the value which is on the upper cell.

eg:If A1= Code and A2 is blank, A2 should be filled with A1 value which is 'Code'.

In the attached, I want C3,C4,C5 to be filled with 'A' which is in C2,

likewise I want C7,C8 to be filled with 'B' which is in C6 and C11 to be filled with 'C' which is in C10, likewise the data has to be filled in entire C col.

View 5 Replies View Related

Code Required To Ensure Minimum Of 6 Rows Between Ranges

Oct 26, 2008

I use excel 2007 and have a s/s running to 350,000+ rows.

Data is in ranges of 2 to 30 rows with blank row between each range.

Column F numbers the rows in a range (if row 120,000 begins new range then F1200,000 = 1, F120001 = 2, etc).

If there are 2 rows of data in a range then, including blank row, there are 3 rows between this and next range.

What I want to achieve is a minimum of 6 rows between each range.

Does anyone know code that can can achieve this end?

View 3 Replies View Related

Macro/Code Required For Calculations Base On Pivot Tables Sum

Jan 29, 2009

What I required is either a Macro or Code for formulas in column 'F' in the attached spreadsheet that correspond to the SUM of each description and divided by 37.5 e.g. in F10 the formula should be =D10/37.5 the formula should be F12 D10/37.5 and so on all the way down the Pivot table

My problem is as the amount data increases on the Data Tab the formulas in column 'F' will become out of line with the corresponding Sum of each description so I guess I need some code or formula that check every time the Pivot table is refreshed.

View 3 Replies View Related

Modify The Formula Entries In The Following Code To Cycle Or Loop Through All Checks Required

Feb 22, 2009

I'm working on a spreadsheet to compile and print checks. All the check information except the date and first check number is contained in a Wins sheet. I also have a Checks sheet which contains a master check. I used text boxes on the master check to contain individual check information. Each text box is filled in from the Wins sheet by means of formulas. The problem I'm having is how to modify the formula entries in the following code to cycle or loop through all checks required. A sample spreadsheet is attached.

View 2 Replies View Related

Check For Month Change?

May 8, 2013

I have column with dates in it. What I need to do is check if the cell below changes to month beginning then generate 1 else its 0.

See example: Cell A2 is same month as cell A1, hence 0. But Cell A4 changes to a new month hence should be 1. So basically I have to check two dates but within this set criteria. Last few days of the month to first few days of the month.

A1
28/04/2013
A2
29/04/2013

[Code].....

View 4 Replies View Related

Check Many Weeks In A Month

Jan 19, 2008

I need a formula that will tell me how many weeks there are in a month.
If cell A2 had the month and cell B2 had the year then I would like to return 4.....

View 9 Replies View Related

Check Month & Year Of Dates

Aug 20, 2007

I am trying to calculate the number of days it takes to complete a project when the project ends in a specific month. If it is July 2007 I want the number of days for each project completed in July 2007. The number of days is not the problem it is reflecting the number when a project takes longer than one month to complete. To add to things the users sometimes have "open" or "00/00/00" in E (for never close).

I have a spreadsheet with dates a project begins in column D and dates the project ends in column E and a start and end date for each month going across rows 1 and 2. When the project starts and ends in the same month life is good and my original formal of greater than and less than the dates (courtesy of this website) is effective. I tried the following formula in F34. Each piece of the formula worked but when I combined it I either broke it or have too many nested formulas.

=IF(OR($E34="OPEN",$E34="00/00/00",$E34>F$2),"",IF(AND(MONTH($D34)=MONTH($E34),IF($D34>F$1,$E34<F$2)),$A34,IF(AND(MONTH($D34)>MONTH($E34),if(MONTH($E34)=(MONTH(F$2)-1)),$A34,""))))

I created a work around by putting formulas in B and C and row 3 that would answer some of the nested if and working off the results. I was hoping someone might be able to help me make this a little more effecient.

View 9 Replies View Related

Error 40351 On One Machine But Not Other

Oct 2, 2008

i m getting error 40351 on one machine but not other.
I am running the following code

View 6 Replies View Related

VBA Solution - Inserting Machine Name

Apr 23, 2009

I'm looking for a VBA solution that will look at the machine name above in blue and insert in in column E

Machine 2's expected results have been filled in....

View 9 Replies View Related

Header And Footer, For Individual Machine

Jun 25, 2008

to create a file, and each employee will use it (Timesheet)

In the footer, I would like to put in the log on to their individual machine?

I know you can put in [Date] [Time] etc etc

But would like their user name (Eg Joe, Bill, Fred) etc etc

View 9 Replies View Related

Delete A Workbook If Opened On Another Machine

Apr 15, 2008

Is this possible to set a macro which will delete the file if opened on another computer? Ie say on WB open I want to set a macro that if Environ(“Username”) = “ABCD” then proceed else delete the file permanently from th e other computers machine. If deletion of file is not possible then deletion of sheets or contents of sheets should be deleted. The sheets will be protected. Expecting a solution to delete the file.

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved