application.sendkeys

  1. A

    What is Application.Sendkeys for "Windows" key in VBA ?

    There is no documentation of "windows" key :Application.SendKeys method (Excel) So, I tried "Ctrl+Esc" for windows key : Application.SendKeys ("^({ESC}{LEFT})") but it didn't work. Is there a way to send windows key using API, dll etc without using external programs like AutoIt.
  2. N

    Formatting a Calendar Entry using Forms VBA

    Hi. :) The date the Monthview brings back onto my sheet is not recognised as a date. So when I try to look up the date to name the tab it isn't recognised. I have tried the following Selection.NumberFormat = "DD/MM/YYYY" And Application.SendKeys "{F2}", True Application.SendKeys...
  3. Nelson78

    Application.SendKeys "{TAB 2}" does not work

    Hello everybody. I'm a newbie about automating external application via sendkeys method. Now, I can get in the external application, I can write (for example "5"), but I cannot shift the focus two fields on the right (as I manually do without problem). I mean: nothing happens. Maybe somebody...
  4. F

    VBA Fill in multiple PDF Files

    I have a code to fill in multiple PDF files from data in an excel sheet. It gets data from the first row and fills in the pdf and saves it. Then I need it to go to each line and fill in a new pdf and save it. When it creates the first pdf and saves it, a preview of the pdf comes up. Then the...
  5. L

    My auto-save code isnt working!

    It did work...beautifully....now it just wont. I tried changing the folder it saves to, updated it on the sheet and saved, and nothing. I played with the wait times as well as my computer is on the slower side. This is my first time coding and i was surprised that everything else worked. There...
  6. W

    Run Time Error '1004': method 'sendkeys' of object '_application' failed

    hello all, New to this, found a random tutorial online, tried to alter it do it be useful to me. Im getting error mentioned in title. Please advise Option Explicit Sub PDFTemplate() Dim PDffldr As FileDialog Set PDffldr = Application.FileDialog(msoFileDialogFilePicker) With PDffldr...
  7. T

    Simpler Macro required

    Afternoon All, I have the following Macro for the sample Table below. I would like the Macro to loop until it reaches the end of the table, at the moment i have the shortcut entered at the end but this requires me to be infront of the computer at all times to end the macro by pressing ESC...
  8. A

    Delay or Pause durring macro after send keys

    Hi all, Struggling a bit with this one. Basically i have a sheet which is protected from user changes, easy enough to unprotect to update prior to automatically refreshhing. My problem is I am using sendkeys to run a refresh on a third party software addin to excel which when runs just on...
  9. P

    Automating the Microsoft Trust Prompt after Hyperlinking

    To save time, lets just assume the Microsoft Trust Prompt after opening a hyperlink will open regardless of trust center settings. I tried automating the prompt with something simple like: Application.Wait (Now + TimeValue("00:00:05")) Application.SendKeys ("{LEFT}")...
  10. H

    Add Copy + Paste to Sendkey Code

    Good Morning, I inherited this Send Key Code that on Column A contains the name, Column B is the amount & it updates the application amount, Column D works with the macro to copy the name from the application into the sheet and use Column E to identify if whether the name in Column A = Column...
  11. H

    VBA SendKey Application Update

    Good Morning All, I currently have a excel macro that uses SendKey to update an application. The current code works off two columns in excel (1) Has the name of the function (2) Has the Total Percentage for the function. The Macro checks the name by copying the application data and pasting it...
  12. H

    Adjust Send Key Code to update application

    Good Day Everyone, I am attempting to update a Send Key Code to update an application for a new naming convention. This Code currently works to match the excel data to the app data and then update another field if the amount has changed. What I need to do now is once I have matched the excel to...
  13. V

    How to VBA SendKeys 3times, 4times, 5times etc

    Hey, Is there a way to write the below more sucinctly Application.SendKeys "{ENTER}", True Application.SendKeys "{ENTER}", True Application.SendKeys "{ENTER}", True Application.SendKeys "{ENTER}", True Application.SendKeys "{ENTER}", True As depending on what happens I will need...
  14. V

    Tabbing in a PDF form without XL crashing

    Hi all, I am trying to populat a PDF form based on data in XL. I have opened the file and the document successfully and can enter data in the first cell fine, but after that my PC crashes : Application.SendKeys "{Tab}", True Application.SendKeys Name, True...
  15. S

    SendKeys for Ctrl+Z and Ctrl+Y macros

    SendKeys for Ctrl+Z and Ctrl+Y macros . . . https://msdn.microsoft.com/en-us/vba/excel-vba/articles/application-sendkeys-method-excel - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Why doesn't this work consistently: SendKeys ("^Z"), True But...
  16. P

    Shell functon and cmd.exe window

    Help........ I wrote this sub to copy a file from my local drive to networked SharePoint drive with a renamed file from within Excel using cmd.exe window. If i use the text code in the code lines shown in Red directly into the cmd window the file is copied. When i run this code I get a message...
  17. G

    error ...install network printer using senkeys

    I am having difficulty installing new network printer via sendkeys, the issue is that I send the first sendkeys code which is show start dialog = ctrl +esc then the next line I wish to sendkeys "cmd", but instead of sending it to the same application, it looses focus and send it to my vba script...
  18. PIsabel

    Small change

    Hello I have this code that works very well. It runs in column E to the last occupied cell of Column J. Now I need a new code that does the same but runs only on cells in column E if they have information and if column J on the same line has no information Thanks Isabel Sub no_more_ND()...
  19. A

    Autoanswer on popups. Excel VBA

    Hi I hope you can help me out with this problem: I'm running af script with the purpose of creating a Histogram. I'm using this code that (actually!) works: Application.Run "ATPVBAEN.XLAM!Histogram", ActiveSheet.Range("$A$2:$A$5000") _ , ActiveSheet.Range("$E$1:$F$12")...

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top