Re: Help with this?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



actually, Tom, with this, 1 to 10 loops 9 times. 0 to 10 loops 10
times....but, that isn't the real problem. the real problem is that it skips
that 1st cell and starts with next. For example, I select 1932, but the code
skips this and pulls in 27029. I need it to start in the cell where it's
been manually selected.

Don

"Tom Ogilvy" <TomOgilvy@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:44B9DC35-860B-4037-B3B0-B35DB8DF8407@xxxxxxxxxxxxxxxx
If response was 10, then i = 0 to response would loop 11 times. should
your
loop go from 1 to response rather than 0 to response?

--
Regards,
Tom Ogilvy


"Don" wrote:

I have a list of numbers, starting in C2. The below snipit sends the cell
values to a webpage and the user selects the starting row to send out to
the
web page, usually C2, but could be any row in the list.

Item #
1932
27029
27073
27382
28087
28227
29142
29195
29299
29302
29321
29488
29498


Snipit:

For i = 0 To response
SendKeys ActiveCell.Value
SendKeys "{TAB}"
Application.Wait (Now + TimeValue("0:00:01"))
ActiveCell.Cells(2, 1).Select
Next i

"response" is determined by user (how many rows to send to web page,
i.e.,
10). Now, the problem is, even though the user selects the starting
point,
the above code selects the next cell down. I've even put
"activecell.cells(0,1).select" and "activecell.cells(1,1).select" above
the
FOR statement. The "0,1" of course goes up to the "ITEM#" which failes on
the search page on web and the "1,1" has no effect.

Can anyone help?

Thanks,
Don





.



Relevant Pages

  • Re: Help with this?
    ... Sub CCC ... For i = 0 To response ... 'SendKeys ActiveCell.Value ... I need it to start in the cell where it's ...
    (microsoft.public.excel.programming)
  • medicine contact information 2
    ... Hematopoietic Stem Cells, Human, Lymphocytes, Normal cell development, ... Response, The Thymus and the Development of T Lymphocytes, Development ... Lymphoid Leukemias, VASCULAR BIOLOGY, Endothelial cells, Endothelial ... Induction, Measurement and Manipulation of the Immune Response, ...
    (sci.med.cardiology)
  • Re: Finding useful functions- part 1
    ... You describe pretty much the same situation I see, in which a cell ... These local signals include its own firings, ... whenever a particular stimulus occurs (the reinforcer). ... that produced the response. ...
    (sci.cognitive)
  • Re: Add text to begining of cells within a range based on specified criteria
    ... I posted in four newsgroups and have been monitoring all four. ... see a response other than Pete asking why i am not doing this in word. ... another cell and then I need to add ... I need to find cells with "STANDARDS FOR FOREIGN LANGUAGE LEARNING" i ...
    (microsoft.public.excel.misc)
  • Re: table form exit macro add a table row
    ... ' automatically on exit from the last cell in the present last ... If Response = vbYes Then ' User chose Yes. ... entered into the last cell. ...
    (microsoft.public.word.tables)