+ Reply to Thread
Results 1 to 5 of 5

Sendkeys - Userform

  1. #1
    Forum Contributor CobraLAD's Avatar
    Join Date
    07-23-2007
    Location
    Boksburg, South Africa
    MS-Off Ver
    Office 2019
    Posts
    346

    Sendkeys - Userform

    How do I use sendkeys with a commandbutton on a userform

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,480
    Hi,
    Depending on what you want, this will open your combobox
    Please Login or Register  to view this content.

  3. #3
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,435
    Setting a Buttons value to True will trigger the click event.

    When do you think you need sendkeys?
    Cheers
    Andy
    www.andypope.info

  4. #4
    Forum Contributor CobraLAD's Avatar
    Join Date
    07-23-2007
    Location
    Boksburg, South Africa
    MS-Off Ver
    Office 2019
    Posts
    346
    It must sendkey to sheet. I only want to use up or down

    The sheet will be locked accept

    J6:J17
    J22:J33
    S6:S17
    S22:S33

    so from J17, I want to go to J22 and down to J33 and from J33 to S6, and down to s17 and from S17 to s22 and down to S33 and then to J6 again

    it works 100% if commandbuuton on sheet is used

  5. #5
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,435
    If you just want to make a cell active you can select it but normally that is not necessary.

    This code in your userform code module defines the range you can move in and move through it by clicking the button.

    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