application.enableevents

  1. M

    Automatically change text to Upper case

    Excel 2007 Automatically change text to Upper Case. Kindly look into the below vba code which applies Col A to H. Private Sub Worksheet_Change(ByVal Target As Excel.Range) If Target.Column > 8 Then Exit Sub On Error GoTo ErrHandler Application.EnableEvents = False Target.Formula =...
  2. I

    VBA ucase code question

    Evening. I have this working code below Private Sub Worksheet_Change(ByVal Target As Range) With Target If .Column = 14 Then Exit Sub If .Count = 1 And Not .HasFormula Then Application.EnableEvents = False .Value = UCase(.Value)...
  3. P

    Code to copy values over only and not formulas

    I'm using the below to move a row from one tab to another, the problem is when it moved it over the formulas change value because they depend on different cells. Can I move values over only? Like a copy paste of the data, no calculation? Private Sub Worksheet_Change(ByVal Target As Range) If...
  4. B

    Creating timestamp and locking cells

    Hello all, I am looking to trigger an event in column 1, which then creates a timestamp in column 2 and locks both column 1 and 2. Columns 3-7 will contain editable data, then column 8 will be for Status updates. When the status drop down box is selected to be "complete" I would like the...
  5. B

    Locking columns under condition and unlocking/moving rows to next sheet under next condition

    Hello all, first time posting here, having a bit of trouble with this project and am hoping to find some expertise. The first column of my sheet contains a drop box with "Yes." When that is triggered I want a timestamp in the second column, then automatically lock the first and second columns...
  6. C

    Speeding up code: takes 200 seconds to copy paste from one table to another using VBA!

    Hi, I have a code which filters a table, copies the filtered data and puts it into another table as values but this process takes too long (170-200 seconds to be precise!). If I convert the table to a range then paste, it takes about 15 seconds but destroys all my formulas with reference to...
  7. D

    Drop down list value sets off a macro but wont let me go back and change the value in the drop down list

    Good morning folks. Wonderful to be part of this community. I was hoping someone could answer my question. I have a list of values (3) in cell P53 of a worksheet. When "Yes - Full" is the active selection from that list, a macro runs which essentially makes sure there is a formula in cell...
  8. F

    Change Log Tracking

    Hi all. Thank you, in advance, for your help. I found this code to track any changes made to each tab. I have a table in columns A-AV (different rows for each tab, depending on the data). Is there anyway to update this code to not track when rows are inserted? Additionally, how would I write...
  9. M

    Target.Address

    I found this code on the internet which works when dealing with one individual cell however stops working when values are pasted in to multiple cells at once. Can anyone help? Private Sub Worksheet_Change(ByVal Target As Range) If Target.Address = "$I$3" Then 'disable events...
  10. I

    Edit to current working code is needed please

    Morning all, Can you advise how i would go about the following request please. Each day i would enter data into my worksheet. The cells in question are always the same. The cell the data is entered into is A17 As i leave this cell in question i would like some code to look at the 10th character...
  11. C

    VBA - Do action if table changes

    Hi, I am working on a (seemingly) simple macro wich should look if my "Tabelle1" is changed. If yes, it should do something. This is my macro, but I get a Runtime error 424, what am I doing wrong? Private Sub Worksheet_Change(ByVal Target As Range) If Target.Count <> 1 Then Exit Sub...
  12. K

    How to stop Private sub from running whilst updating the sheet

    Hi I have the code Private Sub Worksheet_Change(ByVal Target As Range) Dim x As Long Dim LR As Long Dim C4 As Variant C4 = Worksheets("P").Cells(4, 3).Value Application.EnableEvents = False With Worksheets("S") LR = .Cells(.Rows.Count, 1).End(xlUp).Row For x = 1 To LR If...
  13. H

    One VBA code upsetting another

    I have an excel sheet where i have written code so that certin range of cells are always CAPS. I have also added a button to clear ranges of cells once the form has been saved so that it is ready to fill it out again without having to open up a new template. The range that has the uppercase code...
  14. B

    range Macro

    I have this Macro that tracks any changes made to the "Data" sheet onto the "LogDetails" sheet...I want to it to only track changes made if those changes fall within a range (A9:M80). Here is the Macro I have: Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As Range) Dim...
  15. R

    Drop Down List Zoom

    I found a code to zoom a validation dropdown list and then after selection it goes back to 100%. Problem is it also moves off the screen. Is there a way to keep this centered and still zoom up and down? Thanks Private Sub Worksheet_Change(ByVal Target As Range) ActiveWindow.Zoom = 100 End Sub...
  16. P

    Correcting one code causes another to not work at all.

    I am working on a document in which clickable cells place different values in column M on sheets 1 and 3. On sheet 1 when column M reads COMPLETE it will be cut from sheet 1 and pasted in sheet 2 when column M reads PARTIAL HOLD it will be cut from sheet 1 and pasted into sheet 3. I am having...
  17. N

    VBA Takes Over 1 Hour To Run

    I have 1 macro that calls several other macros. I am calling instead of running each code separately because I’d like to run everything with the push of 1 button. I have the call set up like this: Sub RUN_ALL() OptimizeCode_Begin 01_IMPORT 02_FIND_DATE...
  18. J

    VBA code - have 1 woking, need to add another one

    I would like to add the below code to a worksheet1. It is only to execute when the user clicks on a shape (I know how to do this). I already have the code (see red) defined to sheet1. How do I accomplish this? Sub Clearselected() Range("e3").ClearContents Range("e9", "e12").ClearContents...
  19. H

    Code to reset multiple sheets on one workbook

    Hi all, I hope you can help as I am a bit bemused! I am trying to reset cells on two different Sheets on the one Workbook. The item to reset to "OPEN" on the BLT sheet is resetting on the Decking sheet. Can anyone help? Thanks in advance! Private Sub Button51_Click() If MsgBox("Choose OK...
  20. R

    Private Sub Ucase Stopped working

    Hi, For dyslexic people like me reading text that is mixed case is difficult so I found this script that was working great. All of a sudden the script saved in my sheet(s) stopped working, on my main computer. When running on other computers the script still works. I received an error after...

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