+ Reply to Thread
Results 1 to 6 of 6

Inkey equivilent

  1. #1
    Registered User
    Join Date
    01-10-2008
    Posts
    3

    Inkey equivilent

    Hello this is my first post on this forum.

    Could any of you knowledgable ones tell me of an equivilent of BASIC "inkey" or "get" functions that can be used on an Excel spreadsheet ?

    Cheers Jim

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678
    Without answering your question , what are you trying to do with Excel that would need those functions?

  3. #3
    Registered User
    Join Date
    01-10-2008
    Posts
    3
    Quote Originally Posted by shg
    Without answering your question , what are you trying to do with Excel that would need those functions?
    Well roughly speaking I want to click an item in a big list and automaticaly open up another list connected to the item. Or press a key on the keyboard and have a similair effect.

    Also I want to click on certain cells and leave a mark such as "X" or "?" as opposed to typing an "X" then return.

    I have done this program before in BASIC but find not being able to use the above methods a stumbling block.

    Sorry to be so vague but it's the best way I can explain it.

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678
    Excel has events that can trigger code based on changing the cell selection, double-clicking on a cell, or changing one or more cells -- ample unto your needs.

  5. #5
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258
    Hello JimJim,

    VBA doesn't have an a equivalent intrinsic function like InKey$. As Shg points out, the code does have events but there aren't any that would work in the way InKey$ does. To examine a key as it is typed before Excel can interpret it, is anything but simple.

    There a very few similarities between BASIC and VBA. It would be better if you could give a more detailed example or explanation of what you want to do. Perhaps then when can cross translate the functions for you.

    Sincerely,
    Leith Ross

  6. #6
    Registered User
    Join Date
    01-10-2008
    Posts
    3
    Cheers to you both for taking the time to answer my question.

    My main concern was to whether the above functions existed, now I know they do not I will pursue the alternative methods as described by yourselves,

    I'm sure I will succeed eventually.

    Again thanks Jim

+ 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