+ Reply to Thread
Results 1 to 3 of 3

Cant see why this code is doing what it is doing - need expert eyes

  1. #1
    Forum Contributor
    Join Date
    03-04-2014
    Location
    calgary, canada
    MS-Off Ver
    Excel 2013
    Posts
    108

    Cant see why this code is doing what it is doing - need expert eyes

    Hi Guys,

    so this code below specifically tells excel that when you click in column G and a "u: appears, AND column J has an "x" in it - then vba copies the info in column B to a different worksheet (business review). now this works perfectly - however - whenever i click in Column B, the info in COlumn B automatically goes to the Business Review sheet also......i have gone through this too many times and have gone crosseyed trying to work out what is going wrong.

    if ANYONE can shed some light please let me know what is written wrong here.

    full code below - and highlighted code (bold) specifcally showing what i am talking about above

    Please Login or Register  to view this content.

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

    Re: Cant see why this code is doing what it is doing - need expert eyes

    Hoo-Boy got a nested one here. So I ran the code in question (immediate code below) on a test workbook and it worked just fine. In others words double clicking column B did not trigger it but double clicking column G did (as I believe it is supposed to) so I don't think that is your problem:

    Please Login or Register  to view this content.
    I then went through your supplied code and tracked down the If/End if's. If my count is correct you actually have an extra End If. That may or may not be causing the problem. See attached code with counts:

    Please Login or Register  to view this content.
    I then went through and tried to condense / insert a few select case where appropriate to try to break up the monotony. Try the code and see if it works for you:

    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    03-04-2014
    Location
    calgary, canada
    MS-Off Ver
    Excel 2013
    Posts
    108

    Re: Cant see why this code is doing what it is doing - need expert eyes

    hey stynkynts - tried this and got error messages.. i am going to insert the entire code that is written for the page as maybe that is why - see below

    Please Login or Register  to view this content.

+ 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] Non-excel VB-related code for detailed eyes to examine and solve
    By mellowmarshall in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-19-2013, 06:02 PM
  2. Invoice Optical Lenses (Expert Code)
    By johnreid7477 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-06-2013, 04:50 AM
  3. A new set of eyes may be good for this thread!
    By herbie226 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-13-2012, 03:58 PM
  4. [SOLVED] Keeping Prying eyes out
    By Keith in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-27-2005, 09:05 AM

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