Consulting

Results 1 to 3 of 3

Thread: Application.SendKeys not working

  1. #1

    Application.SendKeys not working

    Hi,

    In Excel 2003, when I run the following syntax it types out the Vlookup formula in the active cell. Could someone help me why now it doesn't in Excel 2010?

    Thanks a bunch!

    Application.SendKeys "{F2}=vlookup{(}{,}FALSE{)}{left}{left}{left}{left}{left}{left}{left}", True

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    It types it out in my 2010, but it is missing a few values.
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  3. #3
    VBAX Guru Kenneth Hobs's Avatar
    Joined
    Nov 2005
    Location
    Tecumseh, OK
    Posts
    4,956
    Location
    If you are running Vista+, you need to turn off Window's UAC for Sendkeys() to work. There are some other methods one can use if you want UAC on.

Posting Permissions

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