sendkeys

  1. 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...
  2. F

    Paste from clipboard in loop using VBA

    I am working on a Project where the task is to populate a list of pdf-files (in sheet "Get files") and then open each pdf-file, copy all text and paste this text into a column of another Excel sheet ("ExtractedText") Everything Works fine except for the final step of pasting it from clipboard...
  3. 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...
  4. D

    SendKeys {F2}

    I am trying to change the attributes of a worksheet so that it can be edited. When I'm in the VBA editor and stepping through the code, when the code hits the SendKeys line, it wakes up the Object Browser, which is also listenig for F2 i guess. Can I get a clue as to what am i doing wrong? is...
  5. D

    SendKeys then call Sub

    Hello All, I am wondering if anyone has been able to combine a SendKeys and Sub call, eg: Public Sub MoveLeft() Application.SendKeys "+{Tab}" Call testKey End Sub This will call the sub, but the SendKey does nothing; take away the Sub call and the SendKey works fine. Application.Wait does...
  6. A

    Enable Trust Access to VBA Object Model through SendKeys Excel Spanish version

    Hi, I am working on excel file that enabled VBA Object Model Through SendKeys for all English language users, SendKeys are not working for Users with Office Spanish version. I am hoping if anyone help in translating SendKeys to spanish version? I have placed my code snippets below. Public...
  7. E

    SendKeys Down, Not Working

    Hi I'm writing a macro that copy's and pastes values in filtered data I want to copy the price of something to an adjacent column as a value, which is easy in the first column, but i'm trying to then select the next visible cell below and do the same with : SendKeys ("{DOWN}") but nothing...
  8. N

    Excel VBA (Force Paste Special): Cannot capture sheet change events correctly & issue with sendkeys

    Hi Friends, I am trying to use below VBA code to force paste special operation when a user performs cut/copy & paste. I am having 2 issues here: 1. The sheet change event triggers only the first-time (after opening the workbook) and thereafter it does not. 2. When (the first time) the code is...
  9. J

    VBA Excel SendKeys in Loop is not Working

    I have some problems with this code below, It's not doing what I expect I want this code to active an add in to update my main sheet and then goes to the next sheet and update also using the same key combination until page 6, What I get is that first goes to the page 6 and then performs the...
  10. korhan

    How can I send SendKeys command to KeyUp event?

    Hello forum rats, I have certain event that is linked to an ActiveX combo box. Public Sub ComboBox2_KeyUp(ByVal keyCode As MSForms.ReturnInteger, ByVal shift As Integer) ' Check if the user is pressing up or down arrow key, if yes run the macro If keyCode = 38 Or keyCode = 40 Or keyCode...
  11. H

    How do I use api keybd_event calls to simulate holding both CTRL & ALT down and press C

    Hi All, I am trying to open another application and it has a hot key (CTRL+ALT+C)to open regardless of which window is currently active. I want to activate that application which then puts the cursor in the first entry box and then send it keystrokes. I am able to manually use the hot key and...
  12. D

    VBA Macro plus Sendkey

    Good day all, I am a total newbe to VBA. I used to use a ghosting program till I could no longer utilize thumbdrives on govt computers. So now I am trying my hand at VBA. I want to copy a list of report numbers from an excel file labeled "Daily Tools" from column B of sheet 1, then switch...
  13. Z

    VBA interaction between Excel and another program

    Hey all, Im tyring to write a VBA that will copy/paste between excel and another program, that program being Attachmate Reflections which also works with VBA macros. I've built a few test iterations as I am not very familiar with Visual Basic, and I am slowly getting the hang of things...
  14. P

    How to keep the excel window 'Always on Top'?

    Hi, We decided to automate the ASAP Utilities' Functions through our code. I believe we don't have a decent choice but SendKeys. So as SendKeys has a global nature in sending the keying events across applications, It is better if we have a total control on the active window. Is there a way to...
  15. D

    Help! Sending Excel range via Outlook using sendkeys

    Hi all, Im not the greatest with Excel VBA but i have put together a small programme to send an excel range via an Outlook email using send keys and then to return to excel and do something else. The progamme works perfectly in isolation (Excel to Outlook -End) But when i add excel code to...
  16. B

    convert sendkeys to send/post message for framenotificationbar/directuihwnd ?

    I'm trying to automate the Internet Explorer open-save-close download manager popup using Excel VBA. Right now I know the following sendkeys works: ieframe = FindWindow("ieframe", "Report Output - Windows Internet Explorer provided by Cisco") framenotificationbar =...
  17. S

    Protect only certain objects in a VBA code

    Hello all, I have currently been implementing a VBA code allowing for the installation and VBA referencing of the "Solver". This code runs when the workbook is opened. This code is the only code I have in the "ThisWorkbook" object, but I have a lot of code connected to each specified sheet. In...
  18. N

    VBA Sendkeys to an Excel Embeded Browser (Micorsoft WebBrowser Control)

    Hi I have an Embedded Active X Browser (Microsoft WebBrowser Control). Named "Browser1" On Sheet1 of my workbook. It is working well and I can pull up web pages using it. If in a Macro in Sheet1 I place the command Browser1.Visible = False it hides the Browser. Browser1.Visible = True will...
  19. G

    SendKeys experience needed

    Hello, I have a job that I need to do which invloves copying a cell in column D, F, G, and H. Pasting each of those individually into different text fields in another application. I need to do this about 60,000 times and the program is pretty slow, so you can see why I'm here lol. This...
  20. J

    VBA SendKey for Menu Key(Context Menu Key,Application key)

    I am needing to copy something from another application SendKey "^c" will not work because for some odd reason CTRL + C manually will not work. All tho i can use the Menu Key go down to Copy and press enter and it copies just fine. Which lead me to try SendKeys ("+{F10}") but had no luck...

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