worksheet change event

  1. W

    How to write Worksheet Change macro with Two Events

    I have managed to create a working worksheet change macro but have since learned I can not have two such macros in one worksheet (Excel 2010). The worksheet will have budget data to include two types budget adjustments and budget enhancements. I want to have a cell that allows the user to show...
  2. L

    If statement with upper and lower limit in vba not evaluating correctly

    I'm helping a coworker with a spreadsheet template. Users will enter a type of asset and depending upon the asset type they must enter a number of periods for depreciation that fits within a range. The asset types are entered as the result of a dropdown list so there should be no issues with...
  3. S

    DDE, Worksheet_Calculate, run once or wait 1 minute...help needed

    Using Excel 2013: I need some assistance or pointers in the right direction. I am presently using a DDE feed to obtain data. I use the worksheet to calculate the DDE data by assigning a calculation to a cell that reports a true (1) or false (0) condition. When the assigned cell reports true...
  4. A

    Help with WorkSheet_Change

    Hi All, I have an Excel worksheet where one of the columns should only contain entries that begin with a number, for instance, a cell with a proper entry might read: 1 BOOK (or 2 CASES or 3 BOXES for that matter). I would like it to be the case that with any entry that does not begin with a...
  5. M

    Worksheet change event to remove duplicate values on multiple sheets

    I’m trying to initiate a worksheet change event which will find duplicate values across multiple worksheets. So if I enter a number in Sheet1 which is already in Sheet2, I’ll get a message informing me and then delete the number which I just entered. (and vise versa if I enter a number of...
  6. O

    Worksheet Change to copy from a sheet based on values from data validation list

    Hello! I have a workbook that contains a data validation list between G4:G31. I am looking for a macro that automatically populates H4:J30 with data from its corresponding sheet. Example: Someone clicks on "Client Services" from the list located in the "Billing" tab. Data is copied from...
  7. J

    Running Macro when change made to worksheet

    The intent of the code below is to run the marco HideCol when a change is made in cell C10. If I actually change the value in C10 it works. However, I have C10 linked to another worksheet (=anotherpage!A13). When the value changes, my macro is not executing. Here is the code: Private Sub...
  8. R

    Worksheet Change ByVal Formulated Value Change

    Hi there I'm struggling with the following problem and hoping that someone can provide me with some guidance. I'm attempting to use the Worksheet_Change(ByVal Target As Range) to call a macro when Target.Address = "$F$25" however the problem is that F25 is a formulated value. Therefore I'm...
  9. L

    Worksheet_Change Event Monitoring a Range

    I have been able to successfully trigger the Worksheet_Change Event by monitoring one target cell, but how would I write the code if I want the Event to run anytime a cell in a given range is changed? This is what i tried, but I get an error that says, "Compile Error: Argument not Optional"...
  10. FracinDean

    Worksheet Change Event Using Named Ranges

    Can I use named ranges to trigger actions using the Worksheet Change event? I'm having trouble discovering the correct syntax. I tried Target.Range and Target.Name and Target.Address but those didn't work for me. I have several different cells & actions, so something with a SELECT / CASE...
  11. A

    VB for worksheet change event

    Hello Guys, I got the following code Private Sub Worksheet_Change(ByVal Target As Range) With Target If .Address <> "$A$1" Then Exit Sub If .Value <> "" Then Range("B1") = "Empty" Else Range("B1") = "Not Empty" End If End With End...
  12. B

    Delete key not activating Worksheet_Change procedure

    Hi all The code below works fine when I change a value in cells B6,B7 or B8 but when I delete a value in these cells using the delete key the procedure is not activated. I presume its that the delete key command is effectively classed as a ClearContents and not an actual change, any ideas on a...
  13. N

    How to create dependatn listboxes at runtime

    Hi. I have created a sheet that contains 3 listboxes. These are data validation lists that get created at runtime. It works well. But, I also have a column called "Associates" that is dependent on the "Customers" column. In other words, for each Customer, there are several Associates...
  14. P

    Automatically highlight values

    Hello, Is there a way to make a worksheet change event that will evaluate the cells in the range G42:J60 and highlight any cell that does not contain a formula? Basically if someone "types over" one of my formulas with a constant value, I want it to stand out with a yellow-colored highlight...
  15. N

    Can I have more than one list boxes on a Sheet?

    Hi there, I have created a data validation listbox on a sheet. This allows me to select an item on the list, and when I change the item, I put code on the "Worksheet_change" event to update the value of the item. Now, I need to add more listboxes to the same sheet. How can I make this possible?
  16. N

    How To call Worksheet_Change event from a different module

    Hi. I want to be able to call the worksheet_Change function from a different module on my excel workbook. I have code working properly when I call it from the actual sheet, but this sheet gets created via code, so I need the "Worksheet_change" event code to be added automatically as well. Can...
  17. A

    VBA Help deleting contents of a cell on worksheet change event

    Any help much appreciated. I have a spreadsheet and a worksheet change event which checks Column B and show's a message box when either "Personal" or "Corporate" is entered in the cell. It uses an OldValue variable to ensure the macro doesnt fire when the change is occurring to a currently blank...
  18. P

    Easy VB question

    Hi everyone, Here's an easy question for someone... how do I convert this code to a Worksheet Change Event? Sub ChangeAxisScales() With ActiveSheet.ChartObjects("AllDataChart").Chart ' Value (Y) Axis With .Axes(xlValue) .MaximumScale =...
  19. R

    VBA give datestamp with worksheet change event/if statement?

    Hi all, I cannot get the proper VBA for the following: I want to get a timestamp date when a milestone is reached. Example: <TABLE style="WIDTH: 388pt; BORDER-COLLAPSE: collapse" border=0 cellSpacing=0 cellPadding=0 width=516><COLGROUP><COL style="WIDTH: 65pt; mso-width-source: userset...
  20. S

    Multiple Worksheet_Change commands on same worksheet?

    Hello all - I'm dealing with a Worksheet_Change command in Excel 2003....Q: I don't think it's possible to have Multiple Worksheet_Change commands on same worksheet? >>>>Well....I get an error message so Im guessing not... How can i combine the following commands? 'this highlights rows that...

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