MsgBox Tied To User Logged In

Oct 2, 2008

Is it possible to have a MsgBox that would say "Hello" to the user who is logged in on that computer. How would you reference the user info?

View 4 Replies


ADVERTISEMENT

Run VBA On Schedule When Workbook Closed And User Logged Off

Feb 12, 2014

I've been tasked at work to make an excel file to do more than what I think I can figure out on my own. What I need done is this:

1. Every Monday, check excel file for data
2. If data exists, send email with said data

Here's my issues:

How do I get the workbook to open while logged off the computer? The file is stored on a share network drive, not locally. How do I get it to send an email without someone logged on to click "send"?

I tried using windows scheduler, but I don't have sufficient privileges to run as batch (IT restrictions).

View 2 Replies View Related

Before Close Event (check User If They Logged Out?)

Jun 6, 2008

I am trying to ask to the user to check if they logged out when they close the workbook but my code is not working...

Private Sub Workbook_BeforeClose(Cancel As Boolean)

Sheets("OD&D Log-in").Select
If Range("H5") = "reconcile" Then
a = MsgBox("Do you want to Log-Out?", _
vbYesNo)
If a = vbNo Then Cancel = True
If a = vbYes Then
Sheets("OD&D Log-in").Select
Else
Workbooks("Daily OSD Log (ver5).xls").Close SaveChanges = True
End Sub

View 9 Replies View Related

Creates Duplicate File When Logged In As A User With Restricted Permissions On Our Network

Apr 24, 2009

I am having an issue with Excel creating a duplicate file when logged in as a user with restricted permissions on our network. If I modify a file while logged in as another user, excel will save the file but will also create a duplicate file with an eight character random name and no file extension. For example if user "Dave" opens a file called test.xls and saves it, in that same folder on the server a file named 296E9E20 will be created. Users are using Windows XP SP3 boxes and the server is running Win 2003. I am not sure why this only happens with Excel.

View 3 Replies View Related

Using MsgBox Without User Interaction

Nov 25, 2009

Is there a way to use MsgBox without any necessary user interaction to continue on with the macro? For example, I want to occasionally display a MsgBox for a few seconds containing relevant data and then have it disappear and the macro continue on without the user having to click the OK button, etc.

View 3 Replies View Related

MsgBox To Pop-up To The User With 3 Options

Oct 20, 2009

I want a MsgBox to pop-up to the user with 3 Options.

Option A, Option B, Cancel.

If user presses Option A GOTO 1:
If user Pressed Option B GOTO 2:

And if Cancel End Sub, not sure if this is doable, please let me know. Basically I am writing this VBA to archive files from the network drive and there are two different kinds and depending on what Option the user chooses, the Destination variable needs to take on a different value, that's why I need this, unless there is a better way to do this.

Basically so far my code is like this:

Sub Archive_GTP()

Dim Nlog As Worksheet
Dim DestinationFile, SourceFile
Dim lr As Long
Dim c As Range

Set Nlog = Worksheets("Log")..........................

View 9 Replies View Related

Have A Msgbox Without Waiting For User To Click

Nov 6, 2007

I have a macro with about 20 Subs and before each one I wanted a msgbox saying "macro is now running sub 1." which then changes to "Macro is now running sub 2", all while the user is sat there with his feet on the desk twiddling his thumbs.

View 9 Replies View Related

Quick "msgbox" Question (Visual Basic) / Allow User To Respond With Text ? []

May 27, 2008

I have searched the 'net and read MSDN msgbox but I cant find what I am looking for. Maybe msgbox is not the correct function to be focusing on?? I want a message box to ask a question, and the answer is dumped into a variable, much like you can do with yes/no/cancel, but (much like a pop-up textbox) I want to be able to respond with text in a textbox. [This of course is part of my Excel spreadsheet]
(I think with C++ it was something like "msgbox = ?$-" or something like that, but I don't know what to look for with VB.)

View 4 Replies View Related

Find Out Who Is Logged On When Running My Macro

Feb 17, 2009

I want to find out who is logged on when running my macro.

View 2 Replies View Related

Query SLA Based On Time Logged

Jan 23, 2009

Is it possible for a formula to calculate SLA's based on the time its logged on the spreadsheet.

For an example if a spreadsheet is opened and a date of a query logged in cell A1, this date would be 23/01/09. This would then be given an SLA date in cell B1 of 23/01/09. Unless this was inputted on the spreadsheet after 3pm then it would be given a SLA of 24/01/09.

Is there a formula which could do this as we have to manually check around 3pm and manually update all the SLA's.

Sorry it also needs to exclude weekends and bank holidays.

View 9 Replies View Related

Find Out Total Duration Logged In

Oct 18, 2009

is it possible to calculate the total duration of logged in from the data below?

TimeDateTimeExtCoDial Number08:02:00 AM11/10/200908:02AM203LOG IN08:03:00 AM11/10/200908:03AM2033448249908:05:00 AM11/10/200908:05AM207LOG IN08:05:00 AM11/10/200908:05AM132102445477708:08:00 AM11/10/200908:08AM207102445477708:11:00 AM11/10/200908:11AM1322908:11:00 AM11/10/200908:11AM1323008:12:00 AM11/10/200908:12AM2073008:12:00 AM11/10/200908:12AM2032908:13:00 AM11/10/200908:13AM132202631121108:14:00 AM11/10/200908:14AM203LOG OUT

Column 'A' has the time and extn# on column 'D' and indication of logged in or logged out on column 'F'

there can be several log in and log out by an extn.

View 9 Replies View Related

How To Calculate A Number Of Calls Logged In A Shift

Jan 7, 2014

calculating the number of calls logged in a shift, based on a 3 shift system in a day. shift 1 from 08h00 to 16h00, shift 2 16h00 to 24h00, and shift 3 00h00 to 08h00. each shift receives a number of calls based on the time the call was submitted.

View 2 Replies View Related

Object Buttons Tied To Frame

Feb 3, 2009

I have a form that has object buttons in a frame. I see that I can only select one or the other of the object buttons that are in a frame. Is it possible to see if no object buttons were selected in a frame and then display a msgbox telling the user that they need to go back and pick a button?

View 4 Replies View Related

Multiple Photos Tied To One Dropdown List

Aug 6, 2014

In the link below, the video shows you can link a photo to a dropdown box. Is it possible to link 2 photos to 1 dropdown box?

[URL] ....

View 1 Replies View Related

Index-Match Formula Tied To Cell Value

Dec 28, 2009

I am trying to get an Index-Match formula to search a different sheet depending on the value selected in a particular cell using a dropdown list. See the attached workbook.

View 3 Replies View Related

Moving Worksheets With Macros Tied To Buttons

Sep 10, 2004

I have a setup at the moment where I have a spreadsheet using a bunch of macros that are coded in a module attached to another spreadsheet. In both spreadsheets the macros are tied to Excel buttons placed within worksheets. When I copy the spreadsheets each month to new directories - they're used for some monthly reporting - I see the following behavior:

1/ The spreadsheet that contains the module with the code for the macros correctly updates the location of the macros and works OK.

2/ If I open the other spreadsheet and save it the macros appear in the tools/macro dialog as having changed location OK. However, if I try to use the macros by pressing a button the macros invoked are in the old location. If I check the assignment of the macros in this spreadsheet by right-clicking on a button, indeed the macros invoked are in the old location. This means that I have to go through and manually update for each button the macro invoked.

View 2 Replies View Related

Conditional Formatting Vertical Bar Chart Tied To A Date

Dec 2, 2012

I have 60 days of data, Nov 1st through Dec 31st.

The date is my x-axis labels.

I produce a daily report. I'd always like for the current dates vertical bar to be "red".

Is there any easy way to have this accomplished?

View 6 Replies View Related

Inserting Formula Tied To Specific Column Into Macro

Jul 25, 2014

I want to insert a formula that is tied to a specific column. I know how to do formulas and have a slight understanding of macros. Can I insert the formula as part of a larger macro?

View 3 Replies View Related

Scatter Chart Coloration Tied To Cell Values

Dec 4, 2007

The idea of getting a scatter chart to have a smooth spectrum from http://www.ozgrid.com/Excel/xy-scatter-color.htm is brilliant, but there is a slight problem I am having with it. The number of points possible in the chart determines the color, rather than the values of cells. I have a table with 100 rows and the chart is based off data from that table; however, instead of using cell references in SERIES, I have named ranges, as part of the table returns a shortened list of values based on user-selected parameters.

In short, this means that if only 7 values are returned in this shortened table, the coloration sees 7 values out of 100 and goes only 7/100ths of the way from red to green. Is there a way to get the coloration based on a certain value in the worksheet for that row? For example, if I have a list of test scores ranging from 0% to 100%, can I get the same coloration to show for a score of 88%, regardless of whether one record is selected or all of them?

Also, if I wanted a user to be able to easily change the parameters of the spectrum so that they could see a spectrum of scores from 50% to 100%, can I get the macro to look these values up from the worksheet?

There are two modules in what I am using now, the class module is called CSpectrum and reads:....

View 9 Replies View Related

Excel 2010 :: Finding Data With Tied Maximum Scores

Nov 14, 2012

i have product group,product name and the statistics. I'll use an example of students with score. I have these set of data:

A B C D
1 Student Name Score Sum
2 Student1 Anna 48 80=Sumif(A:A,A2,C:C)
3 Student1 Anna 32 80
4 Student2 Tom 30 80
5 Student2 Tom 30 80
6 Student2 Tom 20 80
7 Student3 June 55 60
8 Student3 June 1 60
9 Student3 June 4 60

Now we have 2 students with tied highest scores with 80 Scores. Naturally i want the rank to be as follow: Top1 Anna since she has the highest score "48", and Top2 Tom, and Top3 June.

The problem is, the score data can vary and Top3 can probably have the highest score and he still didnt make the highest score collectively. And there will also going to be other situations as well because im working on a very large data set, and not these 3 students.

the max score is tied, and since im making another column with sum scores, the data is going to be redundant, and hopefully theres a formula to ignore this.

View 2 Replies View Related

Making Excel File Accessible For Few Users But One User Should Not See Other User Entries

Jul 11, 2012

I have an excel file with multiple sheets. I want my HR team to update that file, but one user shouldnt see the entries of other users. I want to make a consolidated file out of three files. This excel template is for salary input.

View 3 Replies View Related

Prevent The User From Saving The Data Input From The User Form If Any Of Those Three Fields Is Left Blank

Feb 9, 2010

I have a user form that has a combo box "City" two text boxes one called "Flight" and the other "Date". What I'm trying to do is to prevent the user from saving the data input from the user form if any of those three fields is left blank. The code that I have so far checks all of the required fields, if any are left blank a message notifys which field(s) is left blank and return the focus back to that field. But the rest of code also fires.

What I really need is either to stop the code if any fields are blank and return the focus back to the blank field, the user completes the field(s) and clicks the save again, or better yet, pause the code until all the required fields are completed and then complete the save. (There is actually another 200+ lines of code in this sub, but I deleted it to keep the post a little shorter.)

View 2 Replies View Related

Exl2K User: Sheet Is Password Protected But User Can Change Color In Unlock Cells

Jun 16, 2006

find attached zip file . if you open the file then you can understand the problem.

I need to change cells color and text color as per user choice in Password protected sheet : (user is useing excl2000)

Kindly open attahced file i putted the note inside the file.

View 3 Replies View Related

Check A User Input To See If The User Has Entered The Date Correctly

Feb 17, 2010

I am trying to check a user input to see if the user has entered the date correctly. I am using the code below but it keeps giving me a "Type Mismatch" error.

View 2 Replies View Related

Prevent User From Accessing The Excel File When It Is In Use By Another User

Jul 22, 2013

An Excel file named CLEARING is availble in thr central server system. it will be accessed by 5 or 6 staffs from some other systems what i need is when one person accesses/edits this file the others should not even able to open in the read only file ,when the file is saved and closed ,then only the next person should access it

View 1 Replies View Related

Logon Box - User / Pass - Unique Actions Per User.

Apr 2, 2009

I have a workbook that is used to track overtime hours worked through the year. I've received some help from users on this forum, and others, to create the necessary macros and formulas to allow a supervisor to make use of the form; however, the workbook is also used to track those that wish to volunteer to work overtime each weekend. The sheet has a list of names for the employees on each shift, then a column to allow a "Y" to be placed under the date - designating them as a volunteer for any overtime available. I've found this spreadsheet (attached - from this site) that will allow individual users to access the workbook and have unique passwords for each. I don't completely understand how it works, but I feel it may be a start to getting what I want.

Essentially, once the user selects their name and inputs their password, I'd like the workbook to be opened and then allow them to only manipulate the row associated with their name. That row will change from week to week, so specific numbers will not be able to be used, but their name will be the same as the name used in the logon.

I feel like I'm asking for a lot here, so just some initial guidance on whether this type of thing is possible would be an acceptable answer.

View 9 Replies View Related

How To Add Msgbox

Jul 31, 2014

i have been trying to add msgbox to show that if textbox1 and textbox3 are empty than show "please enter i.d or lockern no but if textbox3 is true than run the code or textbox1 is true than run the code.

View 1 Replies View Related

Using Msgbox In VLOOKUP

Feb 21, 2009

I am currently setting up a ID/Password function on my spreadsheet. On the main page is the login boxes and an Ok button. When the Ok button is pressed, I have a formula that checks the user ID and Password and if correct, it types correct. Otherwise it types incorrect. This is using;

View 2 Replies View Related

Msgbox To Appear When Cell B5 Changes

Apr 8, 2009

In one of my spreadsheets users can see the active period on multiple worksheets
All have cell references to the 1st worksheet (cell B5). I would like 2 things:

1. If users change one of the reference cells on the other worksheets I would like a msgbox to appear

2. After clicking the msgbox away I would like the "old" cell contents (the referenece) to be restored.

View 2 Replies View Related

Add MsgBox To Code

Jan 10, 2010

I want to change this so there is a MsgBox vbYesNo button below where it tells you what cells are found & says:

"Is this what your searching for?" If yes Box closes. If No Continues Search.
How would I go about adding it to the code below?

View 2 Replies View Related







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