Constraining Number Of Days A Workbook Can Be Accessed

Jan 24, 2013

Is there any way to have a input box pop up after a Prescribed number of days or on a particular date and from that point on prompting the user to enter a password that I created (hard coded into the code)In order for the workbook to open If the password is not entered or is not correct then the workbook will close.After the pasword is enterd then the workbook would open from that point on(the input box would be disabled) Also this macro would have to be password protected in order to prevent the user from accessing the code.

View 8 Replies


ADVERTISEMENT

Determining If Date In Row Is Within 90 Days Of Date Accessed?

Jul 27, 2012

ive created an excel spreadsheet with expiration dates in one row and im trying to write a code which will pull out all information in the column if the expiration date in a certain row is within 90 days of the date the excel file is accessed

View 2 Replies View Related

Worksheet Open Event: Macro Run Every Time A Sheet In A Workbook Is Accessed

Jan 5, 2010

Is there a way to have a macro run every time a sheet in a workbook is accessed? Something similar to the workbook open event, but for worksheets.

View 2 Replies View Related

Excel 2010 :: Workbook Not Closing Correctly When Accessed Via Link On Sharepoint Site

Feb 18, 2013

I was asked to create a userform for the use of our whole team which would enable them to select a name from a dropdown list and then it would display their business contact details in the rest of the form.

I'm running Office 2010 and Windows XP server/enterprise edition (not quite sure which). After some research I've managed to use VBA code to open the userform while hiding the workbook, then when the close button is clicked it closes the user form and it's associated workbook using the code below.

Code:
' ThisWorkbook module
Private Sub Workbook_Open()
Application.Visible = False
UserForm1.Show
End Sub
'UserForm module
Private Sub CommandButton1_Click()
Unload UserForm1
ThisWorkbook.Close (False)
End Sub

This works great when the excel file is accessed directly. However when the excel file is accessed via the link on my teams Sharepoint site it doesn't. When the Userform is closed the underlying workbook and data is then displayed which then has to be closed separately.

View 2 Replies View Related

Excel 2007 :: Count Number Of Days Between Two Date Where Off Days Are Friday / Saturday And Holiday

Mar 14, 2014

I am making process TAT(Turn Around Time) which required following information. In Excel 2007.

1-Count number of days between two dates where working days are (Sun to Thursday). So required to exclude (Friday,Sat + Holidays)

A1-Start Date Mar/01/2014
B1-End Date Mar/31/2014
C1-No Of Days 22
D1-Days between two dates 21
E1 To E10-Holidays

2-Count number of days between two dates where working days are (Sat to Thursday). So required to exclude (Friday + Holidays)

A1-Start Date Mar/01/2014
B1-End Date Mar/31/2014
C1-No Of Days 27
D1-Days between two dates 26
E1 To E10-Holidays

Note : Any weekend (off days) dates listed in holidays should not effect the query.

View 9 Replies View Related

Calculate End Date Using Start Date And Number Of Days Excluding Specific Days

Nov 22, 2013

I want to calculate the end date of my German courses. This is how it works:

A course consists of 60 LU*. The course can occur i. e. three times a week: Monday, Wednesday and Friday. In each day the course lasts 2 LU, which means 6 LU each week. There is no course on Tuesday, Thursday, Saturday, Sunday and on holidays. Therefore this type of course that begins on 18-Nov-2013 will end on 03-Feb-2014.

Another course which occurs Tuesday, Thursday and Saturday, and respectively has 2 LU on Tuesday, 2 LU on Thursday and 3 LU on Saturday and starts on 03-Dec-2013 will end on 06-Feb-2014.

Therefore I want to create a worksheet where I set the start date, choose the days and respectively the LU amount on those days. The end date shall be calculated according to these criteria.

The workday function on excel cannot do this and I do not have any programming skills to work with VBA.

Legend:
*LU = lesson units; 1 LU is 45 minutes

Holidays:
28-Nov-13
29-Nov-13
08-Dec-13
09-Dec-13
25-Dec-13
31-Dec-13
01-Jan-14

[Code] ...........

View 7 Replies View Related

Calculate Number Of Days Between 2 Dates And Then Assign Number Based On Answer

Mar 22, 2014

How to create a spreadsheet with what I think will be a very simple formula?

If date in B2 - date in A2 is 1 or less days, put a 1 in cell C2.
If date in B2 - date in A2 is 7 or less days but more than 1, put a 2 in cell C2.
If date in B2 - date in A2 is 30 or less days but more than 7, put a 3 in cell C2.
If date in B2 - date in A2 is 90 or less days but more than 30, put a 4 in cell C2.
If date in B2 - date in A2 is 91 days or more, put a 5 in cell C2.

OR

Another, maybe simpler, way of saying it is:

If date in B2 - date in A2 is 1 or less days, put a 1 in cell C2.
If date in B2 - date in A2 is 2-7 days, put a 2 in cell C2.
If date in B2 - date in A2 is 8-30 days, put a 3 in cell C2.
If date in B2 - date in A2 is 31-90 days, put a 4 in cell C2.
If date in B2 - date in A2 is 91 days or more, put a 5 in cell C2.

View 9 Replies View Related

Macro To Capture Who Accessed The File

Aug 25, 2008

Anyone know of a way to capture who (user name, machine name etc.) had the excel file open when a certain cell is selected? a Macro?

Trying to use an Excel spreadsheet for a peer review where each reviewer accesses the Excel peer reivew file and enters the minutes they spent in the peer review but would like to also capture the user that had the file open when the minutes spent on the peer review were entered. This would provide proof that the actual peer reviewer opened the file and entered their minutes.

View 9 Replies View Related

Paste Special Command Cannot Be Accessed After A Selection Has Been Cut

Mar 2, 2009

My question is why the paste special command cannot be accessed after a selection has been cut? (same for Excel 2003 and Excel 2007).

View 3 Replies View Related

Excel 2007 :: Add Attachment To Spreadsheet That Can Be Accessed By Others?

Jul 23, 2013

I'm using Excel 2007, and when I add attachements to a spreadsheet cell (e.g. a saved email) nobody else can open the file when viewing the spreadsheet. Is there a way around this?

Currently I'm inserting it by going Object > Create from File > Browse > Select File > Display as Icon. But if the spreadsheet is emailed to anyone else or put on a staff website nobody can open the attachements.

View 8 Replies View Related

Finding Atribute Last Accessed Date Of A File And Make It A Range Value

Dec 21, 2009

I want to place the atribute (Date as value): "LastAccessDate" of a file called "!FileSessionStart.nwd" in Sheet1.Cell A2 in my workbook - without opening/accessing" this "C:/so-and-so/!FileSessionStart.nwd" - just want to read and use the last accessed date of it.

How will a macro go finding this atribute of this particular file and place this atribute as value as described?

The filepath of it is valued in celle A1

View 9 Replies View Related

File Cannot Be Accessed - Process Crashes- Programmatically Trap The Condition

Apr 19, 2007

Workbook A has VBA code. The VBA code opens a collection of 2000 workbooks. The workbooks are processed one at a time, with Workbook A opening Workbook B, do something, close Workbook B, get next workbook. Sometimes Workbook B has some kind of access issue that results in:

"[File Name] cannot be accessed. The file may
be read-only, or you may be trying to
access a read-only location. Or, the
server the document is stored on may
not be responding.
RETRY ... CANCEL"

If RETRY is clicked, the process returns the same message. If CANCEL is clicked, the process is crashed, Excel is closed, and all data processed is lost. What is the VBA syntax to programmatically trap this condition so it can be processed in an orderly manner?

View 2 Replies View Related

Find Out How Many Ticks Were On Green Days, Amber Days And Red Days

Dec 19, 2008

I have a series of data that acts upon a traffic light system, i.e. Green, Amber and Red. These variables are posted along row 1 for example and there are 10 columns. Per column I have a tick and cross to answer a question. How can I find out how many ticks were on green days, amber days and red days? I have attached an example.

View 4 Replies View Related

Stop Workbook Functioning After X Days

Mar 18, 2009

I need to know how to make a workbook (and any/all copies made there from) cease to function (become irreversibly read-only) after a specific period of time following the first time it is loaded by a user (this would be preferable), or after a specified date (this could also work).

View 9 Replies View Related

Self Destruct Workbook After Not Logging In Within 30 Days

May 20, 2007

I need a macro that records users accessing a workbook over a network and if I have not logged in after a 30 day period it will replace all calculations with data and if possible wipe all macros.
I have tried to nut this out but time is against me.

I have had my work taken to other sites within our business and passed of as their work, and it bugs me.

View 9 Replies View Related

Working Out The Number Of Days A Job Has Taken.

Jan 28, 2009

I have a table with 2 date columns, and I need to subtract one date from another to give me the number of days the job has taken, but this also needs to exclude the weekends. There is no hours involved.

I.e.
Start Date Finish Date Days Taken
22/Jan/2009 27/Jan/2009 4

Is there a formula that i can use to work out the days taken.
there is multiple rows of information, the above is an example.

View 7 Replies View Related

Average Number Of Days

Sep 25, 2009

I would like to find the average number of days events take from start to finish.

My data is in 3 columns:

EventName StartDate EndDate

I have a ton of EventNames, each of which have a StartDate. But I want to calculate the average days to complete only for those EventNames that have EndDates.

So, if a cell in the column EndDate is greater than zero, then take that cell, subtract it from the corresponding cell in the StartDate column; Add all of them together and divide by the count of those rows in the EndDate column that have a value.

How do I put this in excel terms? ....

View 3 Replies View Related

Add Number Of Days To Dates

May 24, 2007

I have a start date (say 01/04/07) and I need to add a number of days to it to get the start of the next financial period. Unfortunately, I need to ignore a small list of dates (bank holidays, etc).

View 9 Replies View Related

Find The Number Of Days

Jun 12, 2007

If I was to say have a date in cell A1, is there a formula which would tell me how many days from that date left in the financial year?

I was thinking an IF statement, but I know thats way off course! And it could get quite messy.

This is what I would like it to do:

Cell A1 - 30/10/2007

Formula - Finds the number of days between 30/10/2007 and the remainder of the financial year, which for me ends on 30/06/2007

Should give me the answer of "x" amount of days.

View 9 Replies View Related

Counting The Number Of Days

Jul 6, 2007

1/1/2007
1/1/2007
1/2/2007
1/2/2007
1/2/2007
1/30/2007
1/30/2007
1/31/2007
1/31/2007
1/31/2007
1/31/2007
2/1/2007
2/2/2007
2/2/2007
2/2/2007
2/28/2007
2/28/2007
2/28/2007
2/28/2007
2/28/2007

This list goes on with every workday of the month repeat several times, with no day have any set number of entries. Also each new month is just tacked on to the previous list. All of this is in column A but there are many other columns of data with these dates. I just didn't see the need to replicate that here.

What I need is to be able to count the number of unique days per each month but I do not want to have to specify a range for the month of January, then another range for February, etc. I just want to be able to list the column A4:A1200 and have the formula select just the unique days for January. Then in another cell modify the formula for unique days in February and so on.

View 9 Replies View Related

Calculating The Number Of Days

Nov 3, 2008

If I had two dates in two separate cells , so E2 is the 01/10/08 and F2 is 06/10/08 and I want to work out that their is a difference of five days what would the sum be? Also is there anyway I could factor into that sum what is pure working days as opposed to weekends?

View 9 Replies View Related

Number Of Days Between 2 Dates

Nov 10, 2008

I am trying to set up a function to derive a number of days between 2 dates.

Within the table I have an on hire date, and off hire date, and an optional suspend hire date range in 2 other columns - ie. there are 4 columns with dates in.

On hire is in column B; offhire in C; suspend hire in G and recommence hire in H. The optional suspend hire date range will always fall within the main hire date range.

Column I calculates the number of days for the suspend hire period.

My key cut off date is in cell C4.

There are 3 different scenarios I need the function to cover.

1 - if the cut-off date (in C4) is later than recommence hire, calculate the number of days from hire start to cut-off date, less suspend hire period days.

2 - if the cut-off date (in C4) falls within the suspend hire period, calculate the number of days from the hire start to the begining of the suspend hire period.

3 - if the cut-off date (in C4) falls before the suspend hire period, calculate the number of days from the hire start to the cut-off date.

This is the fuction I have written:-

=IF($C$4>H10*($C$4-B10-I10),
IF(AND($C$4>G10,$C$4

View 9 Replies View Related

Whole Number For Days' Difference

May 20, 2009

I want to determine the days' difference between 2 days, but I keep getting decimals.
(I don't want to foramt the column, because I want to use the value in a Pivot Table.

I've tried:
=SUM(TODAY(),0-G2,0)

View 9 Replies View Related

360 Days :: What Is The Current Number Of Day?

Dec 22, 2009

there are 360 days in a year. is it possible for excel to show what is the current number of day?

eg. today is =350

View 9 Replies View Related

Number Of Days In Month VBA

Dec 30, 2003

Im trying to use the equivilent of: =DAY(DATE(YEAR(H5),MONTH(H5)+1,0)) in vba. but i am having trouble with the use proper parenthesis.

basically the above will work in an excel workbook and return the number of days in a month. thats all i really need. so if there is an easier way, which im sure there is, then im up for it...

View 9 Replies View Related

Number Of Days Per Year

Apr 24, 2007

If I have a year in a cell, say 2006, and in another cell I need a formula to tell me how many days are in that year. Just to try and calculate deliveries of things far into the future, so need to account for leap years.

View 9 Replies View Related

Number Of Days Between Two Dates

Jul 3, 2007

I couldn't find a solution to my problem in the forum: Is there are formula that will allow me to calculate number of days between two dates? The date format is eg. 07/06/07

View 3 Replies View Related

Calculate Number Of Days Between Two Dates?

Jul 29, 2014

I am trying to calculate the number of days between two dates where the arrival date is in b5 and the departure date is in c5 for each month. I have been using the following formula =IF($C5="","",MAX(0,MIN(L$1,$C5)-MAX(K$1,$B5))) but when the stay is a full year it is giving me 365 in a single column. I think maybe I need to add in the number of days in the month but not sure how to do it.

View 2 Replies View Related

Find Number Of Days Between Two Dates

Apr 17, 2014

I have attached a workbook for example, the dates im looking to find difference between is marked in yellow...Need result in column E, would be nice with a formula you can just drag down...

Tried doing this myself, but the dates have weird formatting in these documents, so not sure how to deal with it.

View 9 Replies View Related

Number Of Working Days Between 2 Dates

Oct 10, 2007

I'm currently working on a file that has employee holidays/sickness etc. What I want to do is be able to see is a DATE FROM and DATE TO and next to it the total amount of working days between and including those dates. On top of the since employee's sometimes like to take half days I need it so that it can determine half days as well.

So for example I have an employee going to be off work from 29/10/2007 until 09/11/2007 12pm which is 10.5 days in total, but that includes weekends when I don't want it to.

Also it comes out as 11 days at the moment because I can't figure out how to get it to determine is it is half a day.

What formula should I use or if someone could create an example that would be really usefull :D

View 12 Replies View Related







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