event

  1. Z

    Countdown cells until an event in adjacent column

    How do I countdown the number of cells until an event in an adjacent column? I only want to look 7 days ahead. <tbody> DATE IRRIGATE (GALLONS) DAYS UNTIL IRRIGATE 1/1/2010 -- 4 1/2/2010 -- 3 1/3/2010 -- 2 1/4/2010 -- 1 1/5/2010 500 0 1/6/2010 -- 3 1/7/2010 -- 2 1/8/2010 -- 1...
  2. R

    Count difference between events

    Hi guys, I am looking for a query that allows me to count how many events occurred between each "x" event. The desired output is illustrated in the picture hereby attached. For instance, the second event is "x" and I would like to have as output 2. In the case of the third one is still "x", but...
  3. A

    Check if file is password protected

    Hi everyone! I'm looking for a way to check if an Excel file is password protected. If so, VBA should open it with the "default" office password. This should happen anytime a file is opened by any means (i.e. from Windows Explorer, and not just through another piece of code in another Excel) I...
  4. J

    Creating userform to input an event on a calendar, the hours spent, and have it color coded

    Hello there, I'm hoping to get some advice and guidance on how to start. I used an Excel calendar template, which was perfect because it has a select year option to display all 12 months of the year, then I listed out some dates for events A, B, C to conditionally format it on the calendar...
  5. J

    VBA: Calendar with event dates labelled with color and hours listed per day

    Hello there, I'm hoping to get some advice and guidance. I'm trying to create a calendar color coded by the event type and the number of hours spent per day. To start, I used an Excel calendar template (it's the most applicable to my situation as it allows users to flip through years and...
  6. S

    [VBA] MouseMove & "MouseOut" Event

    I have a ComboBox ActiveX on Excel. 1. When the mouse hovers over it, the comboBox will drop down. 2. When the mouse leaves the region of ComboBox, the comboBox will collapse. Task 1 can be done using "MouseMove" event. However, for task 2, it seems that Excel VBA itself doesn't have...
  7. W

    Vba help

    Good day, I am new to this and this is my first post. I have limited excel experience and to be honest have not ran a single VBA yet. They seem a little intimidating to me to say the least. I created an excel document (well call it Document 1) that has the (now) time at the top that updates...
  8. T

    Worksheet_Change / Worksheet_SelectionChange with Data Validation

    Further to my thread here: https://www.mrexcel.com/forum/excel-questions/1096576-vba-worksheet_chnage-event-bug-3.html Here is the code: Option Explicit Private Sub Worksheet_Change(ByVal Target As Range) With Application .EnableEvents = False Select...
  9. T

    VBA Worksheet_Chnage event bug

    My program has both a Worksheet_Change event and a Worksheet_SelectionChange event. For some reason, when it runs to the end of the Worksheet_Change event, it jumps to the Worksheet_SelectionChange event. Has anyone experienced this before?
  10. C

    Adding data to a Webpage

    Hello, I am trying to add data into a webpage , with vba. I can pass the values correctly but they are not saved the following code passes the values correctly : Dim desc as string, nLinha as integer desc =" first of 4 invoice lines to be added" for nLinha= 0 to 3...
  11. K

    Allow a macro to run, even if the PC is locked

    i have a rather long routine that I would like to fire off during my lunch break. I will have the work book open, and I have added the necissary code to the workbook_open event Application.OnTime TimeValue("13:00:00"), "AFK UPDATE" However my PC is set to lock after a few minutes due to group...
  12. M

    Calculate events for current month in real time based on conditions

    Hi There!! I've been wracking my brain and I can't seem to get it to work. Basically I'm trying to create a tracker that will display how many different events per region are happening in the current month (month when the file is opened by others). Each cell will target a different region and...
  13. K

    Trigger VBA on double click

    Couple of questions. I want to apply an advanced filter based on the cell that is double clicked. This works Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean) Global_Filter End Sub I have a few questions 1. The Sheets "Data" is deleted and recreated as...
  14. E

    VBA Prevent User from leaving Worksheet (Worksheet_Deactivate)

    I would like to prevent the user from leaving Sheet1 if certain conditions are not met. I'm using the Worksheet_Deactivate event in the Sheet1 module. However, when the user attempts to leave Sheet1 by selecting Sheet2, the Sheet2 Worksheet_Activate event runs even though I have...
  15. B

    Data Validation Event

    Hello. I am new to Excel VBA and am making progress but am having a tough time with getting a VBA event to trigger when selecting different Cases in a dropdown Below is some simple code I have written just to find a way to get the code right. I have a drop down field (AE48) and the validated...
  16. A

    UserForm Initialise

    I'm attempting to Load a UserForm from a Worksheet Double Click I also want to pass a worksheet Range to the Form so using: Public Property Let Dat (inVal as Range) Set MyRow= inVal End Property When this is called from the worksheet BeforeDoubleClick myForm.Dat = Me.Range("A" & Target.Row &...
  17. T

    Row deactivate event

    Is there a rows deactivate event? When my users insert a row, I want to prevent them from moving to another row until the cell in the column A of the newly inserted contains a value. Thanks
  18. K

    Copying every 5th column cell into a list

    Hi I have a multiple sheet workbook - one of the worksheets has a series of event headers that run across 5 merged cells ("event1"= D2:H2, "event2"= I2:M2, "event3"= N2:R2 etc) I have a summary sheet that pulls statistics from the entire workbook and I would like to have a summary of the event...
  19. D

    Anyway to have BeforSave event runs after SaveAs location prompt instead of before?

    So I have some code that I don't want to run until after the user selects save on the SaveAs save location prompt but it appears the BeforeSave event runs the code before the prompt even opens. Is there anyway around this or some other method to define a trigger event for once the user selects...
  20. Z

    Collecting Row location based on multiple Worksheet Change Event

    Hello all, Here is my situation, I'm currently using worksheet_change event for Column F. I have set the target to Column F Set R = Intersect(Target, Range("F:F")) This run one set of coding for the event when something happens in column F. Now i want to run code that counts the filled...

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top