Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() And to update.... I'd like range A1 through AQ188 - how do I pass that into a range? These values are dynamic and can change at any time. Thanks -- stratagur ----------------------------------------------------------------------- strataguru's Profile: http://www.excelforum.com/member.php...nfo&userid=131 View this thread: http://www.excelforum.com/showthread.php?threadid=26337 |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
You would specify the maximum row number (188) and column number (whatever AQ
is -- I don't know off hand) as arguments and substitute these for X in a statement like Rnd()*X On Wed, 6 Oct 2004 17:52:59 -0500, strataguru wrote: And to update.... I'd like range A1 through AQ188 - how do I pass that into a range? These values are dynamic and can change at any time. Thanks! |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi: Stataguru
Not to sure where you are with this or what you want to to accomplish. The following will place the cellpointer randomly in the location you indicated. Private Sub CommandButton1_Click() Dim cnum As Integer Dim rnum As Integer '/ generate a random number up to n '/ change the (Rnd * n) to encrease '/ the random output dimension Randomize cnum = Int(Rnd * 43 + 1) rnum = Int(Rnd * 188 + 1) MsgBox "The column number is " & cnum & " and the" _ & " row number is " & rnum & ".", , "Good Luck TK" Worksheets("Sheet1").Cells(rnum, cnum).Select End Sub Good Luck TK On Wed, 6 Oct 2004 17:52:59 -0500, strataguru wrote: And to update.... I'd like range A1 through AQ188 - how do I pass that into a range? These values are dynamic and can change at any time. Thanks! |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Range question | Excel Programming | |||
Used Range Question | Excel Programming | |||
set range question | Excel Programming | |||
If Range.Name question | Excel Programming | |||
Range.Formula and Range question using Excel Automation | Excel Programming |