+ Reply to Thread
Results 1 to 4 of 4

How do you code Private Sub Worksheet_Change with multiple ValidateLookup Target's

  1. #1
    Forum Contributor
    Join Date
    12-16-2015
    Location
    Southern Cali
    MS-Off Ver
    2013
    Posts
    104

    How do you code Private Sub Worksheet_Change with multiple ValidateLookup Target's

    Hello,

    I have the following code on a worksheet:

    Please Login or Register  to view this content.
    I also have the following code in Module1

    Please Login or Register  to view this content.
    This works great!

    My question is, I have seven (7) other columns I need to apply this to.

    I created the following in module1 underneath the above code:

    Please Login or Register  to view this content.
    Which I think is correct, however I am at a loss on how to code the worksheet_change since I have been reading I can only have one sub worksheet_change.

    I have tried exit sub, exit, etc but I do not know enough about vba to figure this out.

    Thanks

  2. #2
    Forum Expert
    Join Date
    11-26-2013
    Location
    Colac, Victoria, Australia
    MS-Off Ver
    Excel 2016
    Posts
    1,309

    Re: How do you code Private Sub Worksheet_Change with multiple ValidateLookup Target's

    I'm not an expert in VBA, but you could try
    Please Login or Register  to view this content.
    While you can only have one Worksheet_Change event, I believe you can have multiple calls.

    I hope this helps, please let me know!

    Regards,

    David


    - Please click on the *Add Reputation button at the bottom of helpful responses.

    Please mark your thread as SOLVED:
    - Click Thread Tools above your first post, select "Mark your thread as Solved".


  3. #3
    Forum Contributor
    Join Date
    12-16-2015
    Location
    Southern Cali
    MS-Off Ver
    2013
    Posts
    104

    Re: How do you code Private Sub Worksheet_Change with multiple ValidateLookup Target's

    Quote Originally Posted by David A Coop View Post
    I'm not an expert in VBA, but you could try
    Please Login or Register  to view this content.
    While you can only have one Worksheet_Change event, I believe you can have multiple calls.

    I hope this helps, please let me know!

    Regards,

    David
    [/COLOR][/SIZE]
    David thank you, but that didn't work.

    Rats....

  4. #4
    Forum Expert
    Join Date
    11-26-2013
    Location
    Colac, Victoria, Australia
    MS-Off Ver
    Excel 2016
    Posts
    1,309

    Re: How do you code Private Sub Worksheet_Change with multiple ValidateLookup Target's

    Maybe if you posted a scaled down version of your workbook, we could have a look.

    Regards,

    David

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Combine Private Sub Worksheet_Change(ByVal Target As Range) VBA Code on same worksheet
    By mark_luke in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-27-2022, 04:48 PM
  2. [SOLVED] Combining multiple Private Sub Worksheet_Change(ByVal Target As Range)
    By victortan in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 02-21-2014, 11:12 AM
  3. Private Sub Worksheet_Change(ByVal Target As Range)
    By BigJim68 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 01-27-2014, 01:57 PM
  4. [SOLVED] Private Sub Worksheet_Change(ByVal Target As Range) End Sub
    By kanonathena in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-10-2013, 12:25 AM
  5. Private Sub Worksheet_Change(ByVal Target As Range) Help
    By adamsj1 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-28-2012, 09:17 AM
  6. [SOLVED] Private Sub Worksheet_Change(ByVal Target As Range)
    By adamsj1 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-12-2012, 03:36 AM
  7. [SOLVED] Private Sub Worksheet_Change(ByVal Target As Range)
    By Arturo in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-25-2005, 11:06 AM

Tags for this Thread

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