change event

  1. J

    Event Handler for Dynamically Created Combobox

    Hi All, I have a combobox named bfPoject2 that is created programmatically as follows: Set bfProject2 = Controls.Add("Forms.ComboBox.1", bfProject2) With bfProject2 .Top = 195 .Left = 474 .Width = 180 .List = Range(Cells(2, 4), Cells(lastRowProj, 4)).Value...
  2. M

    Linking TWO different Pivot Table Filters to Two Cell Values

    I am attempting to have two Pivot Table Report filters (PivotTable1) update based on values of cells on another sheet ("Summary"). With the following code, it only updates on the first set of instructions - when E4 is updated, "Names" filter will change but not "Sex". Any help is appreciated...
  3. W

    Loop my Change Event

    I'm new to the VBA side of excel. I need to auto-populate the "date" and "username" into columns A and B when a value is typed into column G. I'm able to do this for one line (something is typed in G13, then A13 and B13 populate) using this code: Private Sub Worksheet_Change(ByVal Target As...
  4. J

    Worksheet Change function with VLookup

    I am attempting to write a bit of code so that Vlookup is called when a particular cell in my spreadsheet is populated. Although it seems to be working, it is only pulling in the data in row 1. An example of the code is below. Any help would be greatly appreciated. Justin Private Sub...
  5. K

    How to get original cell value prior to change event?

    Hello, I'm struggling to find a way to record the original value of a cell prior to change (rather than just the new value), so that I can use it in my change event procedure. Any ideas?
  6. F

    Change event not redirectng focus as expected (as coded)

    Hi Folks, I have a spread sheet that was working fine (thanks to some help from shg and Teeroy) but that now shows an anomaly. I have already posted the code under the thread "saveAs not actually saving file" The VBA code within the changeevent move focus from cell to cell in a way that is...
  7. A

    exit sub before change_event fires

    hi, i have a macro which fires in outlook, and it opens an excel file places some data in it, then an excel macro fires do to a change_event macro, my problem is that outlook dont exit the sub till excel finish with the change_event macro, which causes me a lot of problems, so how can i make...
  8. A

    Help On Worksheet Change Event

    i am having a sheet1 where each time i am getting an email from someone the vba brings some info in my sheet one info in first available cell in column A and the other info next to it on column B, now i want to make that each time i am getting new info then a macro should be fired, after the...
  9. M

    Run-time error when opening any workbook while another workbook with vba is open

    I have a workbook with some ActiveX comboboxes. When I have it open and open any other workbook I get "Run-time error '9'. Subscript out of range." When I debug it opens the change event for the combobox. I can't figure out what I have wrong that causes this error to come up when opening any...
  10. 03856me

    Change Event - Textbox = > < Zero

    I have the following code setup in a change event which works perfectly unless the user enters any number preceeded by a zero, like 02 03 etc., then it fires the <= code which isn't correct. Is there some code I can add that would prevent this? I even tried it in the exit event but it worked the...
  11. S

    Worksheet change event for range of cells

    I have some issues while working on Worksheet change event for range of cells. I have one sheet in which user have to update required fields and click on send email command button which sends mail. I have assigned sending email macro to command button And other data is stored from range...
  12. D

    Compile Error: Argument not optional

    Good Morning, Afternoon, Night I'm back on VBA in Excel and I'm trying to get a change-event to fire off a Function set in Module1 Code for Function: Function CableSizer(Volts, length, Current) ' If Volts is zero then exit. If Val(Volts) = 0 Then Exit Function End If...
  13. B

    Lock entire row based on cell value which updates by a formula, not entry

    I have seen many posts for locking a row based on the value in column A, for example. This works if I manually change the value in column A. However, I am trying to determine the coding so that if I have an If statement in column A, returning the values "x" or "", for true or false...
  14. phildetwei

    Record time cell changes when cell is changed by formula/database refresh

    Hello all. I use the code below to record the time a cell value changes. This works good so long as the cell was changed by direct input. I have a case where it would valuable to be able to automatically record the time/date a cell was modified for cells that are changing, but changing only by...
  15. E

    vba Sub Worksheet_Change not working

    An Excel program hung up on me and wouldn't reload, so I rebooted my computer. But now the Excel VBA subroutine 'Private Sub Worksheet_Change(ByVal target As Range)' doesn't work (it worked fine before the hangup)! The sub doesn't run even if I copy and paste it into a new workbook; it never...
  16. D

    Worksheet Change Event to Command Button

    I use the sub below to check the date entered in a cell, then input a due code two cells to the left of the date cell. This occurs over the 12 months in year, three columns per month, starting in column F, row 5 and continuing to column AO. This code works perfectly when inputting a date...
  17. H

    Keeping count of cell changes

    I'm trying to find a way where excel will keep a running count of how many times a cell has been changed in the next column. For example, if cell A5 is changed, B5 value would be 1. When A5 is changed again, B5 is 2, etc. I also need it to work for a range because it's a growing spreadshet...
  18. J

    When a field value changes on a record copy record to new table

    I have an asset tracking database to record what asset is assigned to what person. Now I am interested in making a 'real-time' history for each asset. When any field changes on a record the record is copied to a table to inlcude date of record change. Any clue how to do this?
  19. A

    2007 wont run 2003 worksheet change event

    I have extensive code on the worksheet change event involving data validation. I've changed macro settings and saved the book as a macro enabled 07 format. The log in form works OK but the change event will only run for the first sheet change. Open and close and again the change event only runs...
  20. S

    Help with VBA Event

    I am using Excel 2007 I have 3 worksheets I need this code fixed for: ACCOUNT, TEST AREAS and BILLING I have this code in my first worksheet: Private Sub Worksheet_SelectionChange(ByVal Target As Range) If ActiveSheet.Name = "ACCOUNT" Then ActiveSheet.PageSetup.CenterHeader =...

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