ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   SENDKEYS COMMAND (https://www.excelbanter.com/excel-programming/402162-sendkeys-command.html)

Frankie

SENDKEYS COMMAND
 
Hi,

My name is Frankie. I am trying to create a macro to key in something
repeatedly from an Excel spreadsheet into an input in an intranet website.
However, the sendkey command like ctrl-F "sendkeys ^F or ^V" which
represented "Find" or "Paste" functions did not work in my macro. Is there
any ways to get round of it ?

Thanks for your advice in advance.

Rgds,

Frederik[_3_]

SENDKEYS COMMAND
 
I think the command should be written as

SendKeys "^F"

greetz

"Frankie" schreef in bericht
...
Hi,

My name is Frankie. I am trying to create a macro to key in something
repeatedly from an Excel spreadsheet into an input in an intranet website.
However, the sendkey command like ctrl-F "sendkeys ^F or ^V" which
represented "Find" or "Paste" functions did not work in my macro. Is
there
any ways to get round of it ?

Thanks for your advice in advance.

Rgds,




John Bundy

SENDKEYS COMMAND
 
"^F" is correct for sending ctl+f but you have to activate the browser first
and send key strokes to that. Sendkeys are rarely the best way to go, i am
attaching the best link i've found for interacting with web pages, read up
and download his examples, he shows you how to enter data directly into
textboxes etc. be aware that while there might be a VB version in there
somewhere, his samples are in .NET, which you should still be able to
download for free (express version) or adapt for vb.
http://www.vbforums.com/showthread.php?t=416275
--
-John
Please rate when your question is answered to help us and others know what
is helpful.


"Frederik" wrote:

I think the command should be written as

SendKeys "^F"

greetz

"Frankie" schreef in bericht
...
Hi,

My name is Frankie. I am trying to create a macro to key in something
repeatedly from an Excel spreadsheet into an input in an intranet website.
However, the sendkey command like ctrl-F "sendkeys ^F or ^V" which
represented "Find" or "Paste" functions did not work in my macro. Is
there
any ways to get round of it ?

Thanks for your advice in advance.

Rgds,





Frankie

SENDKEYS COMMAND
 
Hi John,

I understand that sendkeys is not the best solution. However, I am not an
expert to VB programming. Sendkeys become the easiest solution. I have
already activated IE by "Appactivate" but the "^F" or "^V" buttons did not
activate.
Is it a limitation of sendkeys statement in IE programs or there is another
way to solve the problem. I have tried to activate menu commands for paste
by "%EP" and it works. Nevertheless, some of the intranet environment are
restricted and main menus are disabled.

Can you figure out a simple solution ?

Rgds,
Frankie

"John Bundy" wrote:

"^F" is correct for sending ctl+f but you have to activate the browser first
and send key strokes to that. Sendkeys are rarely the best way to go, i am
attaching the best link i've found for interacting with web pages, read up
and download his examples, he shows you how to enter data directly into
textboxes etc. be aware that while there might be a VB version in there
somewhere, his samples are in .NET, which you should still be able to
download for free (express version) or adapt for vb.
http://www.vbforums.com/showthread.php?t=416275
--
-John
Please rate when your question is answered to help us and others know what
is helpful.


"Frederik" wrote:

I think the command should be written as

SendKeys "^F"

greetz

"Frankie" schreef in bericht
...
Hi,

My name is Frankie. I am trying to create a macro to key in something
repeatedly from an Excel spreadsheet into an input in an intranet website.
However, the sendkey command like ctrl-F "sendkeys ^F or ^V" which
represented "Find" or "Paste" functions did not work in my macro. Is
there
any ways to get round of it ?

Thanks for your advice in advance.

Rgds,






All times are GMT +1. The time now is 02:31 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com