+ Reply to Thread
Results 1 to 4 of 4

Goto command

  1. #1
    Registered User
    Join Date
    07-13-2005
    Posts
    89

    Goto command

    Hi everyone and a million thanks in advance for any help.

    Is there a goto command in vbs? My code looks something like this:

    If range("A3").value="Now" goto aaaa
    else if range("A3").value="" goto bbbb
    else if range("A3").value="Tomorrow" goto cccc
    endif

    aaaa
    blablabla

    bbbb
    blablabla

    cccc
    blablabla

  2. #2
    Forum Expert Carim's Avatar
    Join Date
    04-07-2006
    Posts
    4,070
    Hi,

    Do you mean goto in coding or do you mean cursor in worksheet should go to ... ?

    Please Login or Register  to view this content.
    HTH
    Carim

  3. #3
    Registered User
    Join Date
    07-13-2005
    Posts
    89
    I meant go to another section of the script. I was trying to find the syntax for the goto command or its equivalent. Is it like this?

    So something
    Goto Label
    Do something

    Label:

  4. #4
    Forum Expert Carim's Avatar
    Join Date
    04-07-2006
    Posts
    4,070
    Yes you are right ...

    HTH
    Carim

+ 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