+ Reply to Thread
Results 1 to 2 of 2

Integrating an IF into a Case select

  1. #1
    Forum Contributor
    Join Date
    08-14-2012
    Location
    Derby, England
    MS-Off Ver
    Excel 2010
    Posts
    257

    Integrating an IF into a Case select

    Can anyone help me with something:

    I am running a Private Sub Workbook_SheetSelectionChange(ByVal Sh As Object, ByVal Target As Range) and I am using the Select Case option.

    Please Login or Register  to view this content.
    Whilst I still want the code to run on Sheet2 but on a different range of cells. I was trying to use some sort of
    IF Case = sh.Sheet2

    **range code**

    Else

    **range code**

    But it doesn't like it - I might be doing it completely wrong.
    I'd appreciate any help.

    Thanks

    John

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,644
    John

    Perhaps structure things like this.
    Please Login or Register  to view this content.
    If posting code please use code tags, see here.

+ 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