Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Programming / May 2008

Tip: Looking for answers? Try searching our database.

Read next value?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Mark J - 25 May 2008 20:27 GMT
I have a spreadsheet with a column of numbers, ie

1
2
3
4
5

what i would like to do is have another cell read each value and display it
, then after a few seconds it would read the second value and display,
etc....any ideas?
Norman Jones - 25 May 2008 20:44 GMT
Hi Mark,

You could use the OnTime method to achieve
the desired result.

In this connection, see Chip Pearson's extensive
explanation and examples at:

       Scheduling Events With OnTime And Windows Timers
       http://www.cpearson.com/excel/OnTime.aspx

However, whilst you do not indicate the reason
for this functionality, if you are seeking an auditing
tool, perhaps an audio alternative might satisfy your
needs; John Walkenbach has an audio read-back
application which may be downloaded at:

       Sound-Proof for Excel
       http://www.j-walk.com/ss/sp/index.htm

---
Regards.
Norman

>I have a spreadsheet with a column of numbers, ie
>
[quoted text clipped - 8 lines]
> , then after a few seconds it would read the second value and display,
> etc....any ideas?
JLGWhiz - 25 May 2008 23:31 GMT
Put the following function at the top of your code module

Public Function TwoSecDly()
   s = Timer + 2
   Do While Timer < s
       DoEvents
   Loop
End Function

Then Use this code to display the numbers in the column.

Sub displyNums()
  Dim c As Range
    Set myRng = ActiveSheet.Range("A1:A10")  '<<Change to suit
    For Each c In myRng
       If Not c Is Nothing Then
           Range("B5") = c.Value  ' Did not specify where to display
           TwoSecDly
       End If
    Next
End Sub

> I have a spreadsheet with a column of numbers, ie
>
[quoted text clipped - 7 lines]
> , then after a few seconds it would read the second value and display,
> etc....any ideas?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.