Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22
Default 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,
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 63
Default 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,



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 772
Default 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,




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22
Default 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,




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Inconsistent Operation of SendKeys Command Arik Otis Excel Programming 4 March 1st 06 05:59 PM
SendKeys command to select an OptionButton Fred Russell Excel Programming 6 August 6th 05 01:09 AM
The dreaded Sendkeys command David Morton Excel Programming 1 November 13th 04 03:52 PM
Sendkeys VBA and command line Bobsa Excel Programming 1 April 15th 04 10:12 AM
SendKeys command not focusing on the correct open program mjwillyone[_12_] Excel Programming 0 December 30th 03 04:06 AM


All times are GMT +1. The time now is 05:07 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"