intersecttarget

  1. M

    Extending a configuration to multiple rows

    Hi. I'm a bit of a novice when it comes to VBA. I'm trying to extend the following set of commands down from row 2 to row 200. I know that I need to use an Integer, but I cant work it out Private Sub Worksheet_Change(ByVal Target As Range) If Not Intersect(Target, Range("J12")) Is Nothing...
  2. N

    Updating Cell Value with changing other cell value of same row

    Hello sir, I'm using code:Private Sub Worksheet_Change(ByVal Target As Range) If Not Intersect(Target, Range("R2:R21")) Is Nothing Then Cells(Target.Row, "S") = BS2AD(Cells(Target.Row, "R")) Exit Sub ElseIf Not Intersect(Target, Range("S2:S21")) Is Nothing Then Cells(Target.Row, "R") =...
  3. I

    Run Time Error 13 Type Mismatch

    Evening, After i print my invoice i then use a button to clear the cells on my worksheet.. This is the code that is used on the button. Private Sub Clear_Invoice_After_Printing_Click() Dim strFileName As String strFileName = "C:\Users\Ian\Desktop\REMOTES ETC\DR COPY INVOICES\" &...
  4. D

    Running a Macro up Pressing the Numeric Enter Key

    Th following code performs flawlessly. The code is in a sheet module as I do not wish for it to run throughout the entire workbook. The code calls for cell selection anytime a change is made to certain cells. I would like for the cell selections to be made upon pressing the numeric enter key...
  5. M

    Worksheet_Change private sub Run-time Error when deleting cell values

    The code below is acting as expected... If user enters "Personal" in any cell in Column J, cells on the same row in Columns K & L auto-fill with "Personal" If user enters either "Misc." or "Other Meals" in Column K, cells on the same row in column L auto-fill with the same word HOWEVER, any...
  6. H

    Multiple SelectionChange Events Issue

    Hi, I have two change events occuring on the same tab. It's currently erroring out on the highlighted RED section. What needs to be created?! Thanks! Private Sub Worksheet_SelectionChange(ByVal Target As Range) If Selection.Count = 1 Then If Not Intersect(Target...
  7. H

    Help with Time Stamp Macro

    Hey I Need some Help with This Code the code works fine for colum "L" but i need it work on severel Colom's the Colom's i need is "L" and "U" and "AD" and "AM" and "AW" Private Sub Worksheet_Change(ByVal Target As Range) If Not Intersect(Target, Columns("L"), Target.Parent.UsedRange) Is...
  8. M

    Cell Change Macro

    Is there a way to have the worksheets change method monitor 2 cells and depending which one changes run code. Here is what I did but cannot seem to have the code run past the first if. Private Sub Worksheet_Change(ByVal Target As Range) If Not Intersect(Target, Range("B1")) Is Nothing Then...
  9. M

    Worksheet Change code

    I have 2 slicers running a pivot table on a sheet called "Entry Form" Slicer 1 is controlling a named cell called "CEF_Entry" Slicer 2 is controlling a named range called "CEF_Type" I would like it that when I change slicer 1 it clears Slicer 2' selection and locks my entry form requiring a...
  10. G

    VBA NOW() Time Stamp - Multiple Columns

    I thought it might be easy to add additional columns to the VBA so every other column produced a time stamp, can someone help please? Private Sub Worksheet_Change(ByVal Target As Range) If Not Intersect(Target, Columns("j:j, l:l, m:m, o:o")) Is Nothing Then For Each i In Intersect(Target...
  11. K

    Show Progress Bar while code is running

    Wise people of the forum... Looking for a little help. What code would need to be added to the VBA below to show a progress bar that the macro is still active and running? Private Sub Worksheet_Change(ByVal Target As Range) If Not Intersect(Target, Target.Worksheet.Range("T2")) Is Nothing...
  12. M

    2 VBA codes in one sheets

    Hi, I'm currently using the following simple code in my worksheet. It's simply changing the status of a job if another columns status changes. Private Sub Worksheet_Change(ByVal Target As Range) If Not Intersect(Target, Range("C:C")) Is Nothing Then Range("B" & Target.Row).Value = Now...
  13. N

    Double click code

    I have cell K8 with color fill yellow and I'm using the code below so that it became a no fill cell when double click on it. I think that I have something wrong in the code since its not functioning. Thanks Private Sub Worksheet_Change(ByVal Target As Range) If Not Intersect(Target...
  14. L

    Worksheet_Change events possibly conflicting with each other

    I've got a Worksheet_Change event that can get triggered in multiple occasions depending on what column the end user is working with. My problem is that when the Line3 part of my code gets triggered and a cell in the ContractTable[City] column autofills after a value being manually entered in...
  15. D

    Combine 2 codes in VBA

    Hi, How can i combine below 2 codes? Also for lookup values i need to combine cells C4&F4. To do is this code makes sense? If Intersect(Target, Target.Worksheet.Range("C4" & "F4")) Is Nothing Then Exit Sub Private Sub Worksheet_Change(ByVal Target As Range) Dim xPTable As PivotTable Dim...
  16. R

    Date Picker VBA

    I wanted to ease the input of dates for some employees in a shop. There are 4 columns that require date inputs: G, H, J and K. I added one date picker for columns G:H and another one for J:K with the following code: Private Sub Worksheet_SelectionChange(ByVal Target As Range) With...
  17. L

    If Not Intersect (Target.Range) Logic

    I have 30 Rows of Data which the user manipulates by selecting a value from a drop down list in Column E One of the Drop Down Values is "need". If the user selects "need" or types "need" then I clear all data in that row for columns A, C, D, G, & H This works fine EXCEPT if the user COPIES...
  18. P

    If not Intersect(Target,Range("E11,H11,.........)) is nothing then

    Hi there This should be an easy solve but I'm getting errors. Here is a partial code that I got from the internet If Target.Count > 1 Then Exit Sub If Not Intersect(Target, Range("E11,H11,E482,H482,E953,H953.....")) Is Nothing Then 'Change this to any cell (or cells) you would like to have...
  19. Q

    Automatically sort table based on a column when data is updated in that column (VBA)

    Hi, I have the table in the picture below. The cells D2:D26 are daily returns for stocks that are updated frequently (every 5 seconds). I want to sort the whole table A1:I26 based on cells from D2:D26 descending whenever the numbers inside cell D2:D26 are updated. I tried codes but nothing...
  20. N

    which to use .. worksheet_change vs Worksheet_Calculate?

    Hi All! I have had my worksheet change event code work for a while without any issues, until I wanted to add this new portion: If Not Intersect(target, range("AA63")) Is Nothing Then If target.Value > 1 Then range("R59") = range("AA63") End If End If Once adding the above code, the...

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