Consulting

Results 1 to 3 of 3

Thread: VBA Code: Use keyboard keys in VBA coding

  1. #1

    VBA Code: Use keyboard keys in VBA coding

    Hi,
    Once my data is ready in excel I have to load data in to database using keyboard options.
    I have to load data using Alt+x+x+e.

    Please let me know how can i achieve this step in VBA coding.

    Regards,
    Sri

  2. #2
    Moderator VBAX Sage SamT's Avatar
    Joined
    Oct 2006
    Location
    Near Columbia
    Posts
    7,814
    Location
    Record a macro while you load the data. Study the macro,
    I expect the student to do their homework and find all the errrors I leeve in.


    Please take the time to read the Forum FAQ

  3. #3
    Hi,
    Can i use code like below?

    Sub test()
    Dim objShell
    Sheets("Sheet1").Select
    Range("G6").Select
    Range(Selection, Selection.End(xlDown)).Select
    objShell.SendKeys "{xxe}"
    End Sub

    Please correct me if I am wrong.

    Regards,
    Sri

Posting Permissions

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