Results 1 to 3 of 3

Thread: Microsoft Excel macro - "SELECT CASE" Statements

Hybrid View

  1. #1
    Don't Panic! Ecniv's Avatar
    Join Date
    Nov 2000
    Location
    Amsterdam...
    Posts
    5,343

    Re: Microsoft Excel macro - "SELECT CASE" Statements

    Code:
    sht.cells(3,1)="=if(......)"
    sht is the active sheet or worksheet you specify.

    alternatively
    Code:
    if sht.cells(3,1)="...." then
    
    end if

    BOFH Now, BOFH Past, Information on duplicates

    Feeling like a fly on the inside of a closed window (Thunk!)
    If I post a lot, it is because I am bored at work! ;D Or stuck...
    * Anything I post can be only my opinion. Advice etc is up to you to persue...

  2. #2

    Thread Starter
    Fanatic Member The_Grudge's Avatar
    Join Date
    Jan 2005
    Location
    Canada
    Posts
    836

    Re: Microsoft Excel macro - "SELECT CASE" Statements

    So could you do something like this then...

    VB Code:
    1. Select Case sht.cells(3,1)
    2.     Case vbNullstring
    3.          sht.cells(3,2) = "Cell is blank"
    4.    
    5.    ' and so on and so on.....
    6.  
    7. end Select

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width