Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 109
Default Sendkeys, sending variable

Trying to use a find dialog to do a generic screen scrape, but when I try to
pass beta as a string, I get an error "invalid procedure or call". I also
tried "" & beta and a few other configurations. How can I accomplish this?
Thank you.

Dim beta As String
beta = "ext.(" & Format(Month(Date), "00") & "-" & Format(Day(Date), "00")
& "-
" & Format(Year(Date), "0000")
AppActivate "FIND", False
SendKeys beta, True

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default Sendkeys, sending variable

Brent,
Not sure how a screen scrape involves a certain word.
What is "FIND" ? If it is not another application's title then this will not
work. Check the help for AppActivate.

Do you mean to use the EditFind functionality ?
Is so, record a macro whilst performing a search to get the code.

NickHK

"Brent" wrote in message
...
Trying to use a find dialog to do a generic screen scrape, but when I try

to
pass beta as a string, I get an error "invalid procedure or call". I also
tried "" & beta and a few other configurations. How can I accomplish

this?
Thank you.

Dim beta As String
beta = "ext.(" & Format(Month(Date), "00") & "-" & Format(Day(Date),

"00")
& "-
" & Format(Year(Date), "0000")
AppActivate "FIND", False
SendKeys beta, True



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
SendKeys variable snax500 Excel Programming 1 March 8th 07 03:17 PM
SendKeys Help ajvasel Excel Programming 2 August 9th 06 04:48 PM
Sending Variable Via E-Mail Chuckles123[_122_] Excel Programming 4 July 27th 06 01:28 AM
Sending variable data to a web site to be computed then brought back to Excel David Excel Programming 0 April 27th 04 09:44 AM
Sendkeys GB[_3_] Excel Programming 0 September 16th 03 10:39 PM


All times are GMT +1. The time now is 10:46 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"