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
ADVERTISEMENT
Aug 11, 2009
I am trying to put together a macro that waits for the user to input data and then continue running the macro.
All user input is for one cell and I am looking at more of an entire sheet worth of data.
Here is the scenerio.
I have one tab that pulls data out of a sharepoint list. I then have another tab that I dump data from another database into and then use vlookups to compare the data.
The problem is I need it update the sharepoint list. Then wait for the user to dump in the new data from the external database before continuing the macro and working with the vlookups.
Currently I am working this by running a few different macros to do it all, but I would like to condense it down to running one macro.
View 9 Replies
View Related
Dec 10, 2009
I worte a procedure to protect the worksheet. When we clik on command button it asks the password but if I click on cancel button procedure is exiting.
View 8 Replies
View Related
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
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
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
View Related
May 19, 2007
Private Sub Workbook_Open()
MsgBox "Insert Text Here" , vbOKCancel
End Sub
What I would like to do is have a MsgBox open up that states this file is confidential and you click 'I Agree' button, or a cancel "I Decline"
I do not want the spreadsheet to be visible until they click on 'I Agree' button, and then if they click cancel, the Excel closes.
This is not a huge security issue, just a reminder for the Top Brass not to email out the file. This is for looks and show only
View 9 Replies
View Related
Apr 24, 2012
Is there a better way to do the following:
Code:
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Target.Address = Range("b5").Address Then
Sheet1.Range("j5").Value = Target.Value
End If
If Target.Address = Range("c5").Address Then
Sheet1.Range("j5").Value = Target.Value
[Code] ........
View 6 Replies
View Related
Sep 8, 2012
I have a series of consecutive cells that I have a number entered in it. AP50 through AP 74 are numbered 1 through 25. I don't want the user to be able to change the number but I do want them to be able to click in the cell as this makes other functions happen.
View 3 Replies
View Related
Aug 20, 2007
i have some code that allows my users to enter their user ID on double clicking. The worksheet code below shows how on double clicking into Colum 3 (If Target.Column = 3 Then) then the user ID will appear. Q: How do i get the code to work in Columns 3, 5 and 7 but not those inbetween?! I tried using "or" but it allowed the ID to be entered into all columns! i.e. 3,4,5,6 and 7 which is not what I require. In short I need the ID to appear on double clik into every other column.
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
Dim user As String
'This refers to the function ReturnUserName, which takes the name from the NT environment
If Target.Column = 3 Then
Target = ReturnUserName
Cancel = True
End If
End Sub
View 9 Replies
View Related
Aug 21, 2013
I have 2 sheets in a workbook
My VBA code gets data from a cell in sheet1 Then it paste that into a cell on sheet2 sheet 2 processes some data and produces a single cell result based on the pasted data Then that single cell result is pasted back into sheet1
Here is the problem. Sheet 2 takes a up to one second to produce the final result because it has to fetch some data from the web My code is pasting data back to sheet1 before sheet2 has had time to produce a final result
How can I make sure the data is finished on sheet2 before my code paste the result back to sheet1?
The variable MacdBlack is the being pasted back to sheet1 before sheet2 has had time to update it This is because sheet2 has to get data from the web which is slow
VB:
Sub SheetTest()
Dim x As Integer
Dim StartCell1 As String
[Code]....
View 6 Replies
View Related
Jan 22, 2009
I have a spreadsheet that users update which I then want them to perform a number of checks on. At the bottom will be a button for them to click stating "Click here to confirm checks completed". When they click it I want it to put a flag somewhere that I can then use to prevent them from saving if they haven't clicked the button. I know how to do the saving but, but how do I get the button to put a flag somewhere?
View 2 Replies
View Related
Mar 21, 2012
Say a user inputs information into the user form, when they click enter, it enters all the data on the next available line in a workbook.
Is is possible for the user to click a cell on a previously entered row, and have the userform populate with the existing information?
example.
say the user has to fill out 3 separate areas. 1, 2, 3. However the user only has data for 1 and 2. They go ahead and enter the infromation for 1 and 2 and click submit to transfer to sheet. Now later he gets information for area 3, can the row the information that he previously entered, lets say column 1, row 1, and it reopens the userform with the information for 1 and 2 prefilled from what he entered previously?
View 9 Replies
View Related
Aug 7, 2013
I am trying to rank a series of data. I have most of this figured out. However, the data that is being ranked is based on a sum of a range of cells. I have lines that are waiting for new information to be put in related to the values to be ranked and the value is reference a sum of blank cells currently since there is no data there and it is showing up as zero and therefore being ranked number 1 in my list. I basically want the ranking to rank the values 1-11 while putting all values that are zero to be put at the bottom of the ranking. Any way to do this without macros. I have been using the VLOOKUP and RANK functions for my ranking purposes.
I have tried using an if statement that made the cells #N/A if they were zero, however they remained at the top of my ranking.
View 7 Replies
View Related
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
Jan 15, 2014
I have a macro where I manually select a cell then the macro kicks in to copy and paste the contents into the Find function. From there it goes to another work sheet, clicks on a cell in column one and searches for matching cell contents. Then If false it manually goes back to the original worksheet/cell and then I input a N in the left adjacent cell. If true I enter a Y. Right now I can only run this for the specific cell the macro was recorded for. I would like to expand this.
What I would like to do create a loop in the macro that waits for my cell choice input then continues with the with the Find function. If false the macro should just loop back to the original worksheet/cell and wait for input, ie the next cell selected. However, if true a worksheet/cell is selected, a Y is input and it loops back to the original cell and waits for input.
View 9 Replies
View Related
Feb 7, 2014
I wonder if it is possible to make a macro that right clicks a cell and then chooses a option from the list?
View 11 Replies
View Related
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
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
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
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
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
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
Oct 22, 2008
Running into this issue of "transworksheet macros"
I have a master "update" commandbutton on sheet 1. I have two sub "update" buttons on sheet 2 and 3 respectively.
What I would like to do is have the user click the master button, that would "click" the two sub buttons so they run their respective macros on their respective worksheets (within the same worksheet.
I have tried pasting the macro code in the master button, telling it to select the sub worksheet and then run the macro, but the marco runs itself on the master worksheet instead.
View 6 Replies
View Related
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
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
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
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
Jun 19, 2014
If range K1:K1000 has "Yes" in there, to display a msgbox
But if there is 300 Yes's, how do i get it to do just one msg box and not 300
I would like it on a sheet Worksheet_Deactivate
* note K1:K1000 are drop downs with "Yes" "No" "Potentially" options
View 3 Replies
View Related
Feb 21, 2010
Hi, Please could someone help with the following code. I have 2 sheets 'sheet 1' and 'sheet 2'(hidden). Sheet 1 has a control button that takes you straight to sheet 2, however what I wish to achieve is that before sheet 2 is visible a message box appears if a condition is not met. Something like, if sheet 1 R29 is less than 5000 then msg box appears (I would need about 4 lines in the msg box), if ok'd then sheet 2 appears. If the condition is met i.e sheet 1 R29 = or is greater than 5000 then the msg box does not appear and takes the user to sheet 2.
View 8 Replies
View Related