+ Reply to Thread
Results 1 to 6 of 6

Private Sub Worksheet_Change(ByVal Target As Range) - 2 on one worksheet?

Hybrid View

  1. #1
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: Private Sub Worksheet_Change(ByVal Target As Range) - 2 on one worksheet?

    You still haven't described what you are trying to accomplish with your code. I can see what you code does but it doesn't mean that it is doing what you hope it is doing.

    With regards to combining the Worksheet_Change, all I can say is with Worksheet_Change you specify the range or ranges that you want some code to occur. You can have as many ranges as you want.

    Example:

    Your two codes would be within one Worksheet_Change event. One would only trigger if the changed cell is in the named range "Cable Assy", the other would trigger if the changed cell is in B3:B2500. Now if the two ranges are the same then you are going to have to do some other defining. But since I have no idea what you are trying to do i can't help you.

  2. #2
    Registered User
    Join Date
    09-22-2013
    Location
    Aurora, Colorado
    MS-Off Ver
    Excel 2007
    Posts
    30

    Re: Private Sub Worksheet_Change(ByVal Target As Range) - 2 on one worksheet?

    Sorry I don't know enough to explain this very well but I'll try. When I isolate the 3 different macros they work fine, it is just getting them all to play together nicely. I don't understand how to combine the 2 that start with: Private Sub Worksheet_Change. If I combine a "Private Sub Worksheet_Change" and a "Private Sub Worksheet_SelectionChange then I can get two of them to work.

+ 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] 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
  2. 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
  3. [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
  4. [SOLVED] Private Sub Worksheet_Change(ByVal Target As Range)
    By Hilton1982 in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 09-18-2012, 01:13 AM
  5. [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