Results 1 to 6 of 6

Thread: [RESOLVED] Worksheet_Change Event

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jan 2009
    Posts
    233

    Resolved [RESOLVED] Worksheet_Change Event

    Hi, how to access to the worksheet_change event on my current worksheet?

    thanks in advance..i'm using office 2k3

    i want to put a code like this:

    Code:
    Private Sub Worksheet_Change(ByVal Target As Range)
    
    'code place in here
    
    End Sub

  2. #2
    Junior Member Akos_beres's Avatar
    Join Date
    Mar 2009
    Location
    Minneapolis, MN
    Posts
    24

    Re: Worksheet_Change Event

    If you are asking about how to go to the code window.

    1. Hit 'Alt F11'
    2. On the left hand side, double click on the sheet that you would like to associate the code with
    3. There are two drop downs on the new window. One of them (the left one) will say '(General)' the other (on the right) will say '(Declaration)'. Change the one on the left from 'General' to 'Worksheet'.

    Hope this helps good luck

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Jan 2009
    Posts
    233

    Re: Worksheet_Change Event

    thanks Akos for the response..but it's not the one...i want to know where to place the code in post #1..

    the General option on the left I can't find the worksheet option nor change it to worksheet also...

  4. #4
    Discovering Life Siddharth Rout's Avatar
    Join Date
    Feb 2005
    Location
    Mumbai, India
    Posts
    12,001

    Re: Worksheet_Change Event

    See the picture and follow these steps

    1) Double Click the Worksheet to access the code area.
    2) Select 'Worksheet' instead of 'General'
    3) Select the 'Change' event after that
    4) Place your code

    Hope this is what you wanted?
    Attached Images Attached Images   
    A good exercise for the Heart is to bend down and help another up...
    Please Mark your Thread "Resolved", if the query is solved


    MyGear:
    ★ CPU ★ Ryzen 5 5800X
    ★ GPU ★ NVIDIA GeForce RTX 3080 TI Founder Edition
    ★ RAM ★ G. Skill Trident Z RGB 32GB 3600MHz
    ★ MB ★ ASUS TUF GAMING X570 (WI-FI) ATX Gaming
    ★ Storage ★ SSD SB-ROCKET-1TB + SEAGATE 2TB Barracuda IHD
    ★ Cooling ★ NOCTUA NH-D15 CHROMAX BLACK 140mm + 10 of Noctua NF-F12 PWM
    ★ PSU ★ ANTEC HCG-1000-EXTREME 1000 Watt 80 Plus Gold Fully Modular PSU
    ★ Case ★ LIAN LI PC-O11 DYNAMIC XL ROG (BLACK) (G99.O11DXL-X)
    ★ Monitor ★ LG Ultragear 27" 240Hz Gaming Monitor
    ★ Keyboard ★ TVS Electronics Gold Keyboard
    ★ Mouse ★ Logitech G502 Hero

  5. #5

    Thread Starter
    Addicted Member
    Join Date
    Jan 2009
    Posts
    233

    Re: Worksheet_Change Event

    thanks Koolsid, thanks Akos...yup..probem solved... there's another way to do it also..right click the name of the worksheet ("sheet1") then choose "view code"

  6. #6
    Discovering Life Siddharth Rout's Avatar
    Join Date
    Feb 2005
    Location
    Mumbai, India
    Posts
    12,001

    Re: [RESOLVED] Worksheet_Change Event

    No offense meant but giving you that shortcut was the next step. You need to first understand the basics of it....

    You got a shortcut in post 2 but it didn't help and hence those snapshots in post 4.

    Glad it is resolved
    A good exercise for the Heart is to bend down and help another up...
    Please Mark your Thread "Resolved", if the query is solved


    MyGear:
    ★ CPU ★ Ryzen 5 5800X
    ★ GPU ★ NVIDIA GeForce RTX 3080 TI Founder Edition
    ★ RAM ★ G. Skill Trident Z RGB 32GB 3600MHz
    ★ MB ★ ASUS TUF GAMING X570 (WI-FI) ATX Gaming
    ★ Storage ★ SSD SB-ROCKET-1TB + SEAGATE 2TB Barracuda IHD
    ★ Cooling ★ NOCTUA NH-D15 CHROMAX BLACK 140mm + 10 of Noctua NF-F12 PWM
    ★ PSU ★ ANTEC HCG-1000-EXTREME 1000 Watt 80 Plus Gold Fully Modular PSU
    ★ Case ★ LIAN LI PC-O11 DYNAMIC XL ROG (BLACK) (G99.O11DXL-X)
    ★ Monitor ★ LG Ultragear 27" 240Hz Gaming Monitor
    ★ Keyboard ★ TVS Electronics Gold Keyboard
    ★ Mouse ★ Logitech G502 Hero

Posting Permissions

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



Click Here to Expand Forum to Full Width