+ Reply to Thread
Results 1 to 4 of 4

Can I add another Else to this intersect?

  1. #1
    Registered User
    Join Date
    08-10-2010
    Location
    Nottingham
    MS-Off Ver
    Excel 2003 / 2007
    Posts
    5

    Red face Can I add another Else to this intersect?

    How do I add to this code to say if row F says B then lock rows G and H?

    I managed to do it earlier but caused another problem so had to start again. I seem to get close but can't get it correct!

    Please Login or Register  to view this content.

  2. #2
    Forum Expert
    Join Date
    10-10-2008
    Location
    Northeast Pennsylvania, USA
    MS-Off Ver
    Excel 2007
    Posts
    2,387

    Re: Can I add another Else to this intersect?

    lastat,


    Maybe something like this?


    Please TEST this FIRST in a COPY of your workbook (always make a backup copy before trying new code, you never know what you might lose).


    Please Login or Register  to view this content.
    Have a great day,
    Stan

    Windows 10, Excel 2007, on a PC.

    If you are satisfied with the solution(s) provided, please mark your thread as Solved by clicking EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED.

  3. #3
    Registered User
    Join Date
    08-10-2010
    Location
    Nottingham
    MS-Off Ver
    Excel 2003 / 2007
    Posts
    5

    Re: Can I add another Else to this intersect?

    Thanks, I was trying to add the ElseIf already. With this I get the Compile Error: Else without If and I don't know enough for this to make sense to me

  4. #4
    Forum Contributor
    Join Date
    08-21-2008
    Location
    Hamilton, New Zealand
    MS-Off Ver
    Office 2007
    Posts
    255

    Re: Can I add another Else to this intersect?

    You can also use a Case statement as 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)

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