worksheet_change

  1. Benders

    Private Sub Worksheet_Change(ByVal Target As Range) not working

    Column A may have entries like A001, A002...A00n! For certain such entries a message box should pop up if the corresponding 'Fruits' are not found in Row 23. I tried the following code but cannot get it to work. Where am I going wrong? Private Sub Worksheet_Change(ByVal Target As Range) On...
  2. N

    Worksheet_Change Event - to perform task on different worksheet

    Can I program a worksheet_change event that fires when a cell in worksheet Input changes and performs an operation (e.g., sorts) a target worksheet? In other words can you change the worksheet focus from the changed sheet to the sheet on which you want to perform an action on? I am coding a...
  3. M

    Generating automatic pop-ups with multiple possilbe inputs and different mesasges

    Hi, so I want to check 5 different cells on an excel worksheet against pre-defined rules. Some of the cells wont be populated, but I want any change to check against a condition a generate a pop-up. I've tried creating a VBA script for it, but can't get it to work: Private Sub...
  4. O

    VBA - trying to change value of a cell in another sheet in a table using worksheet_change and cells.find

    Hi all, I'll outline the details of my set up in dot point form:- I have a sheet called "IAR" It has a table also called "IAR" I have a named range on this sheet called "IARcol" which references the formula "=IAR[[#All],[Job No]]" I have another sheet called "notes" It has a table called...
  5. E

    Worksheet_Change on 2 sheets

    Hi, I have 2 drop down lists in 2 separate sheets, which have the same list associated with it. Question I'm looking for the answer for is in bold below? So, if I change the value on one sheet, I want it to link to the other sheet and change.. I have the following code in the first sheet...
  6. F

    Showing/Hiding Columns on Sheet 2 based on data validation in Sheet 1

    Hi All, I'm new to VBA and could use some help. I have a data validation with Yes and No as the choices on sheet1 and based on the response would like to hide columns AJ:AW on sheet2. I have been digging around the forums for the last hour and haven't come across the answer yet. Can someone...
  7. Phil Payne

    How do I set a 'Worksheet_Change' event for part of a worksheet?

    Hello all, I am very much a VBA beginner and I cannot see a way to modify my code. I hope someone can help. The first part of the code below checks for a change of Status in the Status column and on change fills the adjacent Cost cell with appropriate colour then enters current date into the...
  8. S

    Worksheet_Change Error with Pivot Table Refresh on diff sheet

    Hello, I am very new to VBA and any help would be appreciated. The purpose of this code is to reformat one pivot table upon a change on the same worksheet only. I have placed the code in the individual worksheet object. It works perfectly EXCEPT when I refresh a pivot table on a separate sheet...
  9. O

    How to combine two Worksheet_Change subs into one?

    Hi everyone, I need help to combine the two following subs that work fine separately into one that works. Your help would be appreciated. Thanks! Private Sub Worksheet_Change(ByVal Target As Range) If Intersect(Target, Range("B9")) Is Nothing Then Exit Sub If Target.Count > 1 Then Exit Sub...
  10. D

    Error 1004 using Worksheet_Change if multiple cells are changed using paste

    I'm using Excel 2007 I have a Spreadsheet with two sheets, one for data entry and one with a set of data for lookup I have written a Worksheet_Change macro that when an ID is entered into column 3 of the data entry sheet, it looks up certain columns in the data and if they are blank puts a cross...
  11. D

    Auto Add Date in Multiple Columns

    Hey, I'm trying to Auto Update a column once a preceding column is updated. For example, when I update D5, E5 will add the date. Likewise, when I update J5, K5 will add a date. It is important that the date inserted does not update with the current time of the spreadsheet, [ ie. now()]...
  12. P

    Worksheet_Calculate Target Workaround?

    Hi All, I am trying to locate a cell when its value changes due to data coming into excel from an external application. It would be nice to have the column and row, but the row alone would be very useful. Worksheet_Change was tried, but I can only get it to work with changes that are typed...
  13. J

    worksheet_Change code changes a cell, so why not repeats?

    Theoretical question. Following works, but I wonder why. Worksheet_Change() Cells(Target.Row,3) = NOW() end sub My Confusion - I would predict it would not work because if a user types "x" into A1 then the event fires and C1 gets the date. But why doesn't the change in C1 fire another...
  14. G

    Worksheet_Change - Stack Space

    Hi, I have a code which enters today's date in a cell when any changes are made on the sheet. There are 5 sheets, all with the same code. Since I introduced this code I get a 'Stack Space' issue. Do I need to restrict the sheet range to use less memory? Static Sub Worksheet_Change(ByVal...
  15. W

    Working selectively with worksheet_change

    I have (with help) managed to get the following code working based on whether my target value is a * or not. This works a treat. I now find myself in a situation where i dont have enough control of the routine to additionally decide when the code should run my comment in the vba code attached...
  16. M

    ComboBox and Worksheet_Change issues

    I'm running XL 2003 and I'm having some issues trying to get XL to automatically change the text in a button based on the user's choice from a ComboBox on an XL worksheet. I'm trying to get the number ouputted by the ComboBox (i.e., the "cell link") to trigger the Worksheet_Change event but...
  17. SteveInAlabama

    How to trigger event when accepting a default cell value?

    My app has a range "rProductionInput" to allow operator entry of production information for each production run during their shift. I am successfully using Worksheet_Change for all the empty cells in a row to move the cursor to the right as well as other associated code I want to run. My...
  18. A

    Worksheet_Change by calculated value?

    I am working on a sheet that needs to run a script when specified range changes it's calculated value. I tried using the Worksheet_Change event but the problem is that the range I am monitoring contains only calculated values not real values. When the script I have now runs it sees that the...
  19. C

    Target.Address wont triger AutoFit code in Excel 07

    Hi, Im trying to get rows to autofit every time cell b5 changes. Tried several things but still can't figure it out. Thanks In Cell b5, there is a drop-down list via data validation. The data in the range of B10:E61 will automatically change referencing to the same location of another...
  20. I

    Worksheet_Change and EnableEvents

    Hi all, having trouble with a user interface I'm creating. I have many cells in my UI that need to be changed by the user, but when they change a particular 'trigger' cell I want some formatting done off to the side. The problem is, as I have it currently coded, the formatting occurs whenever...

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