+ Reply to Thread
Results 1 to 4 of 4

VBA worksheet change based on two list fields

  1. #1
    Registered User
    Join Date
    06-02-2013
    Location
    Sydney
    MS-Off Ver
    Excel 2007
    Posts
    19

    VBA worksheet change based on two list fields

    Hi guys,

    how can I achieve that macro will be executed when something changes in two separate cells.
    Now it is working only for cell A1
    How can I change this code to execute the macro when I change value also in cell B1?
    Adding new If Target.Row line did not do anything...

    Thanks

    Private Sub Worksheet_Change(ByVal Target As Range)
    If Target.Row = 1 And Target.Column = 1 Then
    MsgBox ("I'm here")
    ...

  2. #2
    Valued Forum Contributor wenqq3's Avatar
    Join Date
    04-01-2013
    Location
    Malaysia
    MS-Off Ver
    Excel 2003
    Posts
    868

    Re: VBA worksheet change based on two list fields

    Please Login or Register  to view this content.
    Hope this okie for you :D

    Please Login or Register  to view this content.
    Edit, above work as well!
    -If the problem is solved, please mark your thread as Solved: Click Thread Tools above your first post, select "Mark your thread as Solved".

    -Always upload a workbook before start your question
    To attach a file, push the button with the paperclip (or scroll down to the Manage Attachments button), browse to the required file, and then push the Upload button.

    +++ If my answer(s) helped you, please add me reputation by click on * +++

  3. #3
    Registered User
    Join Date
    06-02-2013
    Location
    Sydney
    MS-Off Ver
    Excel 2007
    Posts
    19

    Re: VBA worksheet change based on two list fields

    Thanks, It was even easier then I thought

  4. #4
    Valued Forum Contributor wenqq3's Avatar
    Join Date
    04-01-2013
    Location
    Malaysia
    MS-Off Ver
    Excel 2003
    Posts
    868

    Re: VBA worksheet change based on two list fields

    Welcome :D Thanks for feedback!!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1