View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Brent Brent is offline
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