Popup Macro, New To Vba, Due Monday Night

Aug 17, 2008

What I was told to do was to create an Excel Macro that would record 7 fields via pop-up box. I had no problem with this (see code below) but now I would like to run that same macro for 10 or more students. I would like to have the same data collected (first name, last, email, address, phone, etc) for each student, but have excel compile a list of the recorded data for each individual. Ideally John, Mary, Will, Greg, and Matt would fill out the form and their responses would appear as:

First Last Email Phone Other
John Doe johndoe@yahoo.com 5551245 etc etc
Mary Jones mjones@gmail.com 5551227 etc etc
Next Student student@google.com 5551212 etc etc


The macro is started by clicking on a button to register for a free giveaway



Originally Posted by code

Sub RetisterToWin()
Dim FirstName As String
Dim LastName As String
Dim Email As String
Dim MailingAddress As String
Dim PhoneNumber As String
Dim Major As String.............

View 9 Replies


ADVERTISEMENT

6 Months Ahead If Falls On Monday If Not Next Monday Date

Sep 23, 2007

I am currently using this formula =DATE(YEAR(A1),MONTH(A1)+6,DAY(A1)) to get me 6 months ahead from a certain date. There is a new problem that has arose for me. I need a formula that will give me 6 months from a certain date if it falls on a Monday if the 6 months does not fall on a Monday then give me the next Monday date.
for example 6 months from 1/2/2007 is 7/2/2007 which falls on a Monday which is fine but, If the start date was 1/3/2007 this falls on a Tuesday so I would need the next Monday date 7/9/2007.

View 9 Replies View Related

NIGHT Working Hours Macro Calculation

Sep 29, 2012

I would like to write a macro that can return the number of hours worked during the night shift.

In this case, the night shift starts at 21:00pm and ends at 6:am next day.

The column "I2" returns the number of hours worked during the day - formula ((F3-C3+(F3<C3))-(E3-D3+(E3<C3)))*24);
The column "J2" gives the overtime hours taking into account the number of regular hours allowed - IF(OR(I3="",I3<6),"",IF(I3>H3,"",I3-H3));
Cells "C3:F13" allows users to set up (using a data validation list) starting time, lunch in, lunch out, end time ( columns C and D AM; E and F PM);

My question is: How can I calculate night hours in column K, without having conflits with numbers returned in column I (worked hours)? Is it possible to write a macro for this?

Below please see the table:

B
C
D
E
F
G
H
I
J
K

1
Name
Start Time
Lunch In
Lunch Out
End time
BREAK?
Regular hours
Worked Hours
Overtime
Night Shift

[Code] ......

View 1 Replies View Related

Week Starting On Saturday Instead Of Sunday Or Monday? (formula Not Macro)

Feb 8, 2012

Can weeknum work with the week starting on saturday instead of sunday or monday?

if not, what are my options?

View 4 Replies View Related

Macro To Highlight Cell A1 Every Monday Only Once When Open Book For First Time

May 20, 2013

Macro to highlight a cell A1 every monday ( or any day) when we open the book for the first time.

Macro should not run when we open the book from the next time till that week gets over and again it should run once the next week started.

View 1 Replies View Related

Macro PopUp Box

Dec 8, 2008

to create a macro that will launch a pop up box once cell B5's value is equal to "3".

I need the pop-up box to say, "You win the game!"

View 10 Replies View Related

Popup Q/A Box When Macro Starts

Mar 27, 2009

I would like to have a question box pop up w/Yes and No Buttons at the start of my macro to choose between two different sub routines. Therefore, MsgBox would say: Import New Yard Inventory?

If Yes, then it would run the alternate subroutine. If No, Then it would run macros normal routine. Not quite sure how to do this. Would the msg box have to be a form box where, a representive value would have to get filled into a cell? Then
reference if cell value is true ,then or would it register the value to memory so then, the code would have to to call the given value then run code if value it true?

View 3 Replies View Related

Macro To Autofilter Using Popup

Sep 15, 2009

I am trying to create a macro to autofilter a sheet based on the value a user will enter into a popup box. I have found bits of code which I have been attempting to figure out and use somehow however I am getting more lost.

I can create a basic macro to autofilter, the problem I am having is that I am unsure of how to link this to an input/popup box of some sort

View 10 Replies View Related

Macro - Take Control Of Popup Window?

Feb 16, 2013

Just want to know if is possible control a popoup window through a VBScript Macro in excel? I don't know if I could click a button from a PopUp when it appears? I mean I cant go forward because a popup message appears and I dont know how take the control of it.

I mean how can the parent window take the control of the child window (popup window)

View 2 Replies View Related

Macro To Access Worksheet Via Popup Box

Jan 19, 2010

I have a macro below that gives me a popup box that lets me type in the new sheet i want to access. etc(sheet1.xls) It give me 2 boxes one i must type the old sheet i currently access etc(sheet0.xls) and the next is the new sheet i will now be accesssing.

Is there a way to change this so i only get one box that will let me type in the new sheet i want to access?

View 11 Replies View Related

Macro To Popup Image In Excel (Just For Viewing)

Sep 15, 2014

I am in need of a macro. I have a column with Image No.s around 900. What i want is as soon as i click on a image No. in a cell, the image has to pop up in excel itself(Not in particular cell). The images are in separate folder in the same directory. I have to view the images only(not inserting). Just Pop up the image and as soon as i click on next image no. macro has to remove the old image and in that place new image has to pop up.

View 1 Replies View Related

Night Payment Calculator

Feb 8, 2010

Not sure if this is the correct section for this kind of query but I'd like some assistance with a calculation that I can't seem to figure out.

Essentially it's for calculating night payments for our employee time-sheets. Our staff have very sporadic shifts and are paid extra for working between the hours of 00:00 and 06:00, basically when employee's enter their start and end times I'd like the spreadsheet to automatically calculate how many hours they have worked between those hours, I imagine it's very simple but I cannot figure out which function to use.

To complicate matters, because staff can work shifts which start on one day and finish the next we work on a 48:00 clock basis so its' not only between the hours of 00:00 - 06:00 where they qualify for night payments but also from 24:00 - 30:00 if that makes sense?

View 9 Replies View Related

Timesheets With Day And Night Hours

Jan 26, 2009

I have a timesheet that the manager fill in every night for the workers, simply it has a start time and end time and it calculates the hours worked (all times are entered in quarters of an hour ie 9.25 for 9:15 etc). At the moment i can work out if a person is on day or night with:

View 2 Replies View Related

Night Vs Day Working Hours

Jan 31, 2008

I have a spreadsheet that calculates the total working hours of our warehouse staff, overtime, etc... using some good advice that has been published here before.

Cell C1 : starting hour
Cell D1 : ending hour

The hours are filled in, using 1904 system, without date as 08:00, 12:00, 21:00, etc... total hours is calculated as follows:
=(D1-C1+(D1

View 9 Replies View Related

Get Price From Matrix For Daytime And Night?

Jan 27, 2013

get a formula to calculate hourly rates from a matrix for different areas and daytime and night.

View 4 Replies View Related

Calculating Night Shift Hours

Jan 15, 2009

I'm trying to calculate the hours worked for both my day shift and my night shift.
Day shift (thanks to search ) I have managed to figure out and worked quite well.
=ROUND((E7-D7)*96,0)/4
It totals adds up the time and converts it into a decimal of hours worked.

For example Joes starts at 1100 and finishes at 1330 it returns a total of 2.5 hours worked.

However I strike a problem with nightshift.
They start in the late afternnon and work thoguh into the am.
I have used the same formula but it doesn't seem to work:
=ROUND((K7-L7)*96,0)/4

I assume because once the clock strikes 12 it's a new day and it can't work out the maths.

Lets use the example form about but make it pm.
Joe starts at 2300 and finishes at 0130 it should give me a total of 2.5 hours instead it gives me 21.5 hours

View 9 Replies View Related

Excel 2007 :: Separate Night From Day Hours

Mar 12, 2013

(Excel 2007). I want to separate night hours 22:00-6:00 fom day hours 6:00-22:00 in my work plan.

I am using all kind of shifts for example

8:00-23:00 = 14 day hours 1 night hour
21:00-7:00= 2 day hours 8 night hours.
16:00-2:00=6 day hours 2 night hours

View 6 Replies View Related

Time Zone Conversion - Morning Or Night Shift

May 6, 2014

I have this Spreadsheet that has different country, Is it possible that it will auto convert the time into PHT Time (GMT +8) which is in Column A.

For example:

Its 3PM (Cell G1) in Bhutan. I want it to be converted in GMT +8
So therefore the time for GMT+8 will be 5PM and will be shown in Cell A1.

Also there will be an automated identifier in Column B that will identify if that time is for morning shift or night shift.

The morning shift is 12PM til 8PM
While the night shift is 8PM til 11AM.

View 4 Replies View Related

Calculating Day And Night Shift Hours From Date / Time

Dec 22, 2009

I want to find the hours worked in day shift and night shift. Day shift is from 06:30 to 18:30 and night shift is from 18:30 to 06:30. Listed below is an example of my date/times.

Note that the night shift carries over to the next day.

Start/Finish
21/12/09 07:00 to21/12/09 11:09
21/12/09 07:46 to21/12/09 14:41
21/12/09 12:13 to21/12/09 22:08
21/12/09 16:40 to21/12/09 18:05
21/12/09 19:40 to22/12/09 02:34
21/12/09 23:20 to22/12/09 04:39
22/12/09 02:06 to22/12/09 06:15

View 9 Replies View Related

Calculating Start / End Time Between Night Shifts 24 Hours?

Dec 26, 2013

We have a person who work in 24/7 support. One person work passive 24 hour, but it 24 hours are divided in to next shifts: normal 06-18, over hours 18-22, night hours 22-06.So if we have some one who is supporting client say from 17h till 23h, we have next results:

Name Start time End Time 06:00 - 18:00 18:00 - 22:00 22:00 - 06:00

John 17:00 23:00 1:00 4:00 1:00

Is it possible to in time range enter formula who subtracted end time from start time, but taking into account 24 hours?

View 9 Replies View Related

Lorry Driver Shifts (Day / Night / Saturday / Sunday) Variable Payrate

Dec 15, 2013

I have attached the xlx sheet. I am a truck driver and I always have to calculate my weekly wage on paper.

I start everyday at different times it varies the end of shift as well. We have day shift, night, saturday, sunday payrates.
I have done an excel sheet I was trying for a couple of days reading forums and watching videos but just I couldn't.

Example if I start Friday at 18:00 and finisth Saturday at 04:00. I have in total 10 hours.

Day shift: 1 hour
Night shift: 5 hour
Saturday: 4 hour

So in one shift I get 3 different payrate. In one shift if I work more than 6 hours it must be deducted 00:45 minutes.

Day shift: 07:00-19:00 - £10.7
Night shift: 19:00-07:00 - £11.7
Saturday - £12.7
Sunday - £14.7

Attached File : DRIVER SHIFTS VARIABLE SHIFTS AND PAYRATES.xlsx‎

View 7 Replies View Related

Last Monday Of The Year

Oct 4, 2012

Is there a formula that would tell me the last Monday of any given year ?

View 5 Replies View Related

How To Set Monday As First Day Of Week

Jan 26, 2014

Outlook allows you to easily specify, but eExcel always treats Sunday as the first day of the week by default. Yes you can manipulate that within formulas and functions, but if you use the autofilter in excel and choose "this week" (or "next week", or "last week") excel considers Sunday as the first day of the week. I would like to know how (or if) this can be changed to Monday as the first day of the week.

View 5 Replies View Related

1st Monday In The Month

Dec 25, 2006

I am currently looking for a formula that will give me the actual date for the first Monday of the week.

I have for example in column A dates from 1st Jan 06 to 31st Jan 06 I just need to workout what the date is for the first Monday then after that for the 2nd Monday it would just be the 1st Monday +7.

View 9 Replies View Related

Get First Monday After Set Date

Jul 29, 2008

The clue's in the title. I have a date in cell (BC25). I need to jump forward by one year then if the date doesn't fall on a Monday I need to find the next Monday.

I've looked at this thread which should point the way but I'm particularly dim this morning and can't get it to work.

http://www.mrexcel.com/forum/showthr...ghlight=monday

View 9 Replies View Related

Find Every Monday In A Month Using VBA?

Apr 9, 2014

I need a macro that allows a user to input a Month and a Year on an input box. When this is done the macro would pull out the date for each Monday (in the format DD-MM-YY) in that month and paste it into four or five cells (A1:A5)

Eg for April 2014

A1
A2
A3
A4
A5

07-04-14
14-04-14
21-04-14
28-04-14

View 2 Replies View Related

Monday Morning IF Blues

Apr 20, 2009

In cell AI12, i want it to show the value in cell AE12, however, if AE12 is empty i want it to show the value from cell AD12, if AD12 is empty i want it to show the value from AC12 but is AC12 is empty i want it to remain empty.

View 9 Replies View Related

Return Monday Of Given Week

Feb 16, 2007

I have seen this before and once figured it out, but I have not had any luck this time. I'm looking for a formula that will reference a cell that contains a date and will then return the date of the Monday of the given date's week. If I gave it a cell that contained 2/15/07 it would return 2/12/07. Probably a simple question but I think I must not be working on all cylinders. =)

View 6 Replies View Related

Return A Date That Begins On Following Monday

Jan 16, 2007

Is it possible to to return a date that begins on following mondayand adds days unless it was entered on a monday then just add 17 days
if someone enters a date say 10/01/07 (wednesday) i need to be able get the following mondays date and add 10 days to it IE 25/01/07

View 14 Replies View Related

Function To Display First Monday Of Year

Apr 30, 2009

I am trying to write a function that will display the first Monday of the year based on the user entry.

For example, if I enter;

5/1/2011, It should produce 1/3/2011...
12/31/2012, it should produce 1/2/2012..

View 4 Replies View Related







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