Results 1 to 2 of 2

Thread: Using SheetChange

  1. #1
    Senior Member
    Join Date
    Apr 2011
    Posts
    190
    Rep Power
    14

    Using SheetChange

    I am using the event below in ThisWorkBook - However I am filling a sheet via code rather that the Excel GUI - how can I disable that event while I am filling the sheet - when I am done I want to turn it back on.


    Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As Range)
    xl2007 - Windows 7
    xl hates the 255 number

  2. #2
    Administrator Admin's Avatar
    Join Date
    Mar 2011
    Posts
    1,123
    Rep Power
    10
    Hi Rasm,

    Turn off Application.EnableEvents

    Application.EnableEvents=False
    code
    Application.EnableEvents=True
    Cheers !

    Excel Range to BBCode Table
    Use Social Networking Tools If You Like the Answers !

    Message to Cross Posters

    @ Home - Office 2010/2013/2016 on Win 10 (64 bit); @ Work - Office 2016 on Win 10 (64 bit)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •