sendkeys

  1. T

    Vba to Inport PDF Creates one Column?

    Hi Everyone, I have this code to import data from a PDF to Excel Sheet. The problem is it imports all the data as one column is there something im missing ? anyone know of a way to import from a pdf and have it look the same? here my code Sub PDFinport1() Dim wsLog As Worksheet, wsOutp...
  2. M

    Excel 2016 - VBA - Troubleshooting Macro that Should Work But Isn't Working?

    I have an Excel 2016 VBA macro that changes the "Office Theme" under: File>Account>Office Theme; to the next theme. This macro should work as when I try and perform the macro's sequence of actions manually the sequence of actions is successful in changing the "Office Theme" - would anyone might...
  3. M

    Excel VBA - Repeating Simple Actions?

    Is there a prebuilt way in Excel VBA to repeat simple actions? For example, if I want to repeat the following single action of SendKeys in the following Excel VBA macro is there a prebuilt way to do this? Sub Test1() SendKeys ("{TAB}") SendKeys ("{TAB}") SendKeys ("{TAB}") SendKeys ("{TAB}")...
  4. M

    Sendkeys not working Alternative code?

    I am trying to refresh and factset excel template with vba, I am trying to use sendkeys to use the hot keys that will kick off the refresh. The code I am using is this Application.SendKeys ("%srw") which works by itself but not with other code. ( I am cycling through portfolios and getting...
  5. K

    Trying to group a set of data

    Hi guys, I've been lurking around for awhile and getting answers, but I appear to be stuck on something that I can't find a solution for. I'm trying to create some groupings of rows, and I was struggling to do that, so I ended up having to resort to a SendKeys command. That's been working fine...
  6. T

    Web Query Login VBA Help

    So if I have a web query in cell A1 and run the following macro: Sub Caption() Worksheets("Sheet1").Range("A1").Select CommandBars(1).Controls("Data").Controls("Import External Data").Controls("Edit Query...").Execute End Sub It breaks the query and displays the following error...
  7. N

    Solved Linking to closed workbook with variable but created new problem with SendKeys slower than VBA

    Hello everyone, I am new to this forum. I have searched the internet everywhere looking for a solution to link to a closed workbook with no success. The only solutions i found would require installing 3rd party Add-ins which wont work, since this is a work computer, and i want to pass this file...
  8. S

    PDF to Excel

    Hi, I am trying to copy and paste the data from pdf to excel. Below is the code that I'm using but didn't work well. Sub PDF_Excel() Dim AdobeApp As String Dim AdobeFile As String Dim StartAdobe AdobeApp = "C:\Program Files (x86)\Adobe\Acrobat 11.0\Acrobat\AcroRd32.exe" AdobeFile =...
  9. C

    VBA error in copying .pdf to .xlsm

    I have the following code, and it is fine until I get to the very last line - the important part, pasting the data: Sub Copy() Dim CopyApp As String Dim PDFFile As String Dim StartCopy CopyApp = "C:\Program Files (x86)\Internet Explorer\iexplore.exe" PDFFile = "\\host\users\me\test data.pdf"...
  10. Q

    Problem with SendKeys

    I have a small vba code to copy data to another sheet - (data from SampleSheet1 {range(B17:W*) *is obtained from cell AA17} to SampleSheet2 {range(no change from last selected)} Dim Cval As Variant Dim Rng1 As Range Worksheets("SampleSheet1").Activate Cval =...
  11. A

    Print to PDF from Excel with variable filename interpreted with Sendkeys

    I tried searching throughout but could not find a definite answer. Rather people have only suggested alternatives to similar questions but not a proper answer. My excel version is 2010. I need to print multiple pages from multiple excel files to a single PDF file, the code for which I have...
  12. E

    VBA - Edit Mode & Go to Start of Cell without SendKeys

    In VBA, I would like to enter the Edit mode of a selected cell, and move the cursor to the start of the cell. Via the keyboard, this is accomplished by F2 & Ctrl+Home, and I have been using this code: SendKeys ("{F2}^{HOME}"), True SendKeys is causing a NumLock toggle issue :eeek:, and the...
  13. G

    Opening a file within a file using VB?

    Good evening, I'm a bit of a novice with access but I'm trying to work on automating some mundane tasks at work. I want to make a form in access that I can press a button it will switch to my work program, navigate to the correct part (I have this working with AppActivate and SendKeys) but I...
  14. O

    SendKeys Alternative using API

    for my understanding using sendmessage is a more reliable way to simulate key press then using sendKeys How can i replace this line of code: SendKeys "^a" With a sendMessage alternative?
  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. D

    Emulate "Ctrl+[" via VBA

    Hello! I'm trying to create a macro, that I can then place in the "Quick Access Toolbar" that does the same as "Ctrl+[". My Excel is Portuguese, and I can't find a way to make that shortcut working. So, I thought that I could use the SendKeys VBA command. But doesn't seem to work either. I'm...
  17. J

    VBA Send Keys to attach file in Gmail

    Hi, I have the code below triggered in an excel workbook to open gmail, attach a file and send it to the specified address. When I run the code; the attaching of the file doesn't work. It finds the correct file but wont click "Open" to attach it. <johnpowell@effectphotonics.nl>Sub...
  18. P

    Click a link in the internet

    Hello all, I`m trying to click a link in Internet Explorer using VBA. Tried a lot of things I could think of, but nothing seems to work. I tried everything I could think of or find in the internet, but nothing worked so far. I know that normal .Click is not working in this website, so I use...
  19. F

    Range of cells in SendKeys VBA

    Hi guys You can see the range is A1:A100, I always change this range in below VBA code manually as per need. I'm using this formula -----"A1:A"&COUNTA(A:A)---in cell H2 to show the range. I do not know how to change this VBA code to mention the range is in H2 cell rather than using...
  20. O

    Selection.Copy not working

    Does anyone have any idea why I am not able to get this macro to copy cell data? Here is the last part of the code: SendKeys "~" 'presses enter to move down one cell SendKeys "^{k}" 'runs macro shortcut Call Copy_Location End Sub Sub Copy_Location() 'moves right 3 cells...

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