I need to automatically retrieve the text of a popup box from an external application. i would need this text to be inserted into a cell in my excel. any idea how?
i am using appactivate and sendkeys to send keystrokes to this application, now i need to do the reverse, to pick up the generated text and insert into my excel.
thanks!
If you are talking about a message box, Ctrl + C copies to clipboard.
Related
I want to Google search a term. So, I did a concatenate formula that creates a hyperlink. It looks something like:
=CONCATENATE("https://www.google.com/search?q=",A1)
Where A1 is the location of the term I want to search.
So far, so good. This gives me a hyperlink in text form. Then, I create a second column to establish the actual hyperlink:
=HYPERLINK(location of the concatenate formula result)
Great. I've got a working hyperlink. If I use the mouse to click that formula, it opens the Google search correctly.
Now, I want to use the keyboard instead of my mouse to click this hyperlink. I need to do a bunch of these types of searches. Maybe I'll create a macro that can open them for me a few at a time.
Anyway, this older post describes a way of opening hyperlinks in Excel without using the mouse. The problem I have is that I don't see "Open Hyperlink" in my context menu. All I've got is "Remove Hyperlink".
Any ideas why and what I can do to work around it? Thanks!
I am looking for an automatic version of this feature:
https://www.technipages.com/excel-copy-and-paste-values-without-formulas
Is there a built in Excel function that can do this automatically without manually copy/pasting each cell? I have a column of functions and I want to have another column of values beside it.
Thanks!
I'm not sure what you mean by "automatically", but this should at least speed up the process:
Select the cells you want to copy the content from and press CTRL+C
Click in the new cell and instead of using CTRL+V, use CTRL+ALT+V. This will open a dialogue box, in which you have to check "values". This can be done with another keyboard shortcut V (english version of Excel, might be something else in your language).
This might seem complex, but it's actually pretty fast.
Instead of pasting the cells with CTRL+V, you now paste the pure cell values with CTRL+ALT+V + V (+ ENTER, depending on whether you use the english verion or not).
This at least saves you from using the mouse and clicking through additional menues. Hope that helps!
#J Connor, if I'm not mistaken you are in need of PROGRAMMING method, as you have written Automatically.
Here are few simple steps to get the Solution.
Method 1
Range("A1:B10").Copy Destination:=Range("E1")
Method 2
Range("A1:B10").Copy Range("E1").Select ActiveSheet.Paste
Few more I can suggest. ☺
I would like to know if it is possible to transfer the contents of a formatted Excel cell to Word without the use of the clip board.
Using a macro to copy and paste works great - but it interferes with the users clipboard, rendering their PC / Workstation a bit useless.
I have done some background research into a property called WordOpenXML
https://msdn.microsoft.com/en-us/library/microsoft.office.tools.word.document.wordopenxml%28v=vs.120%29.aspx?f=255&MSPPError=-2147217396
My thought process would be to spawn an Excel copy and open the spreadsheet access the inner xml of the Excel cell (or the Open XML) and just set the Property in Word.
That way I know it has transferred like for like - with no use of the clipboard.
Maybe there is another approach - I wondered about spawning a separate clipboard object.
You could try to store what's inside the clipboard in a variable at the beginning of the macro. At the end after your copy/paste action you could restore the clipboard to it's original state.
Am using SAP , outlook etc.. to analyse the data's
I need to control the Text boxes & Buttons in that application
For ex: I don't want to copy & paste the values in Outlook Search in mail items
Instead I need VBA to paste the values directly into the search text box in outlook and begin searching automatically without giving Copy & Paste manually
In the same way I need to control all Controls of other Applications (Word , SAP etc ) in Excel VBA
Please suggest me some codes
Prabu Mike,
Just my two cents. I use SAP and Excel as well.
In order to automate a lot of my work, I wrote some AutoHotKey scripts.
The scripts will e.g. read an array from Excel and use the data do populate SAP or create reports from SAP, through the standard SAP admin GUI.
If this is something you would like to know more about, let me know.
Regards,
Robert Ilbrink
I'd like to programmatically copy tabular data (both formatting and formulas) to the clipboard from an HTA (HTML Application), to paste into Excel. Excel supports a text format called SYLK for accomplishing this task, but I've run into a snag with over-validation in window.clipboardData.setData(format, data) where format is restricted to either "Text" or "URL", giving the error "Unexpected call to method or property access" if format is set to anything else, and Excel only recognizes SYLK text if format is set to "SYLK", otherwise it pastes as normal text.
I'm wondering if there's another way to set clipboard data from an HTA, such as through a COM control that comes preinstalled with either Windows or Office, that would let me copy SYLK data to the clipboard.
I know I could write a custom COM control and install it on each client, but at that point I might be better off just writing to a file and opening the file instead of using the clipboard.