In cell a3 user selects yes or no. Then in cell b3, if they selected yes for a3, a pop up box should appear which asks for a value (1-100), and if they selected no for a3, then b3 automatically becomes zero. How can I do this.
I'm trying to write a code (and I have little to no knowledge of VBA!) so that when a line is inserted onto any worksheet in the workbook a msgbox appears....
Trying to get it myself I created this- it's probably COMPLETELY wrong, like I've mentioned I have little to no knowledge and just using websites/other codes I've seen to put this together... o.O
How do you create a pop-up box that opens every time a specific worksheet is activated that asks "What was the first month of activity?" The month that is entered needs to populate in Cell "A7". I also want the 11 months following the answer to the above pop up box to populate in cells A8-A18.
I'd like to have a warning message pop up if the value of column AF is 3 or less.
Column AF is counting entries in columns E:I by using the formula
=COUNTBLANK(E1:I1)
to create the value
A value of 5 is OK (no data in E to I), and 4 is also fine (just one entry in E to I) A value of 3 or less, indicating more than one column in E to I having data, needs to display the message. Presently I have a conditional format on another column to display red background when AF is 3 or less, but it's a little ambiguous, so a message would be neater!
I like to know if this can be done. The entry of data for cell A3 is from a pre-determined list. I like to create a Userform to allow the user to select from this form. the idea is to have this form popup whenever cell A3 is selected.
Codes are entered manually only in Column A starting at A1..A10000+ ranges.
As Unique codes are entered ie. 1234 or 2345 or 3456 in the next empty cell down, I need a specific popup message for each of the three codes instructing the user what to do next.
I script that on open would pop up asking if a sync was done with an option for yes or no. If yes is pressed then it would just open, if no selected it would give a message "must sync before use" and close the workbook.
I do not want this message to pop up when other spreadsheets are open when this one is still open so im guessing private workbook_open
I am designing a program which basically calls another program for all dates back to a specified time. Certain dates will not have data and there will be a pop-up message saying something along those lines.
What I want is a way for VBA to "know" there has been an error message (so I can set a boolean to true or false so I can do an if tree) and then also a way to click "OK" to proceed through the error message.
I've got a data sheet (called "data") which contain a bunch of data, if someone edits the data manually then a msg boxpopups. which i've done using the code below in the code on that tab. However, I also have vba that places data on the tab that also triggers the popup message.
So how do i make it such that if the vba is run then the popup doesnt appear but if they edit the data manually then it does?
VB: Sub Worksheet_Change(ByVal Target As Range) Dim WatchRange As Range Dim IntersectRange As Range
I'm modifying a template that originally shipped with Excel 2003 (I have not upgraded to 2007). In the template, there is a pop-up box (not a dialog box) that shows up when I'm on certain cells. I've attached an image of it. It's the yellow box containing the words "Company Information..." etc. I cannot find any way to remove it! It's not a comment, and selecting it doesn't allow you to edit it. What is it, and does anyone know how to remove it?
I want to create a pop up message showing count of cells turned red,each time the workbooked are opened.like column "I" has two dates in red colour,so the pop up will say "you have 2 contracts expired"
I need to improve this project i've created. right now this project is an Exam for our agents. You can try it first if you want. I've attached the file below.
I need putting a timer that will compute the seconds or minutes it took the agent to finish the exam. timer should start after they click "Take the ETP" button. And finally, creating a screen / a pop-up that will show the ff example.
[I]EXAMPLE:[/I] Name of Examinee Answer: 1. A = Correct 2. B = Incorrect 3. A = Correct 4. C = Correct 5. D = Incorrect
I have an excel, in which the user can input values and the sum will be computed for each column (i.e. =Sum (L2:L29)) . I want to alert the user when the computed sum exceeds a particular value, else it shud proceed.
It can also be done at while the save & close of the workbook.
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?
This file works perfect on my main computer, but will not work on my wifes machine. Both machines have the same Excel program. Maybe I have downloaded a addon, just not sure. On the machine that it does not work I get Could not load object because it is not available on this machine.
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
I have this code and would like that when you change the Target.Value it would pop a confirmation box with yes or no option. I know how to implement this for a button, but cant figure how do i do it with this code.
I'm trying to create a nested if statement, which given a certain condition, will pop up an input box to grab a user-defined value as follows:
Public Function DetermineCost(ManipulationType As String, Manipulation As String, Value As Single) As String Dim SkillCost As Single If ManipulationType = "Improve" And Manipulation = "Damage" Then DetermineCost = Value * Sheet1.Range("N74").Value ElseIf ManipulationType = "Improve" And Manipulation = "Resistance" Then DetermineCost = Value * Sheet1.Range("N75").Value ElseIf ManipulationType = "Improve" And Manipulation = "Physical Skill" Then DetermineCost = InputBox("Enter GM Cost")
[code].....
The code portions in red are not working properly. I also have the "No Value" if statement not working which I'm not sure why, but the main function I'm trying to figure out is how to popup an input box where a user will input a value when Manipulation = "Physical Skill" or "Non-Physical Skill".
specify the input box data type, that would be amazing. I tried InputBox ("Enter...", Type:=1) but VBA didn't accept that as a value. and yes, I recognize that SkillCost is not currently utilized. I plan to utilize it once I figure this stuff out.
I have this vb script which basically states if a value in column G is less than 0 then show a message box as below.
Private Sub Worksheet_Change(ByVal Target As Range) If Target.Cells.Count 1 Then Exit Sub If Not Intersect(Target, Range("G3:G371")) Is Nothing Then If Target.Value < 0 Then MsgBox "You have entered a negative figure - are you sure this is correct?" End If End If End Sub
What I would like to do is extend this script so that another message box pops up based on two conditions
i.e. if a cell in column F shows string "accounts use only" AND value in the adjacent cell in column G is > 0 then MsgBox "you have entered a positive figure - are you sure this is correct?"
I have a cell (c9) that increases on an integer basis using a rounddown function that in turn is looking at a calculation in a different cell. Is it possible to create a pop as the integer value in c9 increases by 1?
I have a protected worksheet showing results of users maths tests. When users try to add data to this worksheet, a Windows Office window appears, advising it is a protected sheet, then gives instructions on how to Unprotect it.
I do not want users unprotecting this particular worksheet.
I am coding a right-click popup and need some help specifying the range to show in the popup. The code is listed below.
How I can I adjust this code to show the range O400:O440 only? Right now it shows the entire column from O400 down.
Private Sub Worksheet_BeforeRightClick(ByVal _ Target As Range, Cancel As Boolean) Dim objBar As CommandBar Dim objButton As CommandBarButton Dim introw As Integer introw = 400
Cancel = True On Error Resume Next Application.CommandBars("avail").Delete On Error GoTo 0 Set objBar = Application.CommandBars.Add("avail", msoBarPopup) Do Until IsEmpty(Cells(introw, 15)) Set objButton = objBar.Controls.Add With objButton .Caption = Cells(introw, 15).Value End With introw = introw + 1 Loop objBar.ShowPopup End Sub