Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Help with row selection.


This is just the Shell. I need it to take the value of the variabl
FTime and be able to goto that row and select. Then Select all rows t
the value of STime. I haven't included the loop to find the last row.

Thanks,
Craig Schellenbach





Public Sub InputRoute()
Dim Route As Long
Dim RouteCnt As Integer

Columns("A:A").Select
ActiveCell.Offset(1, 0).Select

Route = InputBox("Please Enter route", "Route Selection")

If ActiveCell = Route Then
Call RouteCount

Else
ActiveCell.Offset(1, 0).Select

Do Until ActiveCell = Route
ActiveCell.Offset(1, 0).Select
Loop

Call RouteCount

End If



End Sub
Public Sub RouteCount()
Dim FTime As Integer
Dim STime As Integer

FTime = ActiveCell.Row

MsgBox (FTime)

End Su

--
Drrott
-----------------------------------------------------------------------
Drrott1's Profile: http://www.excelforum.com/member.php...fo&userid=1546
View this thread: http://www.excelforum.com/showthread.php?threadid=27048

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Help with row selection.

Youre flashing the needed rows on a msgbox? Why dont You just add the
copying functionality to the Public Sub RouteCount? You would get all
the rows containing the user chosen route to other sheet.

Theres an other approach as well but this is best for your needs.


Drrott1 wrote in message ...
This is just the Shell. I need it to take the value of the variable
FTime and be able to goto that row and select. Then Select all rows to
the value of STime. I haven't included the loop to find the last row.

Thanks,
Craig Schellenbach





Public Sub InputRoute()
Dim Route As Long
Dim RouteCnt As Integer

Columns("A:A").Select
ActiveCell.Offset(1, 0).Select

Route = InputBox("Please Enter route", "Route Selection")

If ActiveCell = Route Then
Call RouteCount

Else
ActiveCell.Offset(1, 0).Select

Do Until ActiveCell = Route
ActiveCell.Offset(1, 0).Select
Loop

Call RouteCount

End If



End Sub
Public Sub RouteCount()
Dim FTime As Integer
Dim STime As Integer

FTime = ActiveCell.Row

MsgBox (FTime)

End Sub

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
Limiting selection in a cell AND linking that selection to a list Lisa Excel Discussion (Misc queries) 1 July 28th 09 05:00 PM
Copy Selection - Transpose Selection - Delete Selection Uninvisible Excel Discussion (Misc queries) 2 October 23rd 07 04:18 PM
Identifying a selection of a selection of a range swimfast Excel Worksheet Functions 1 March 1st 07 02:51 AM
Changing Selection for the "Center Across Selection" alignment johnandsuzie Excel Discussion (Misc queries) 1 January 18th 06 04:48 PM
Excel VBA - Range(Selection, Selection.End(xlDown)).Name issue. jonH Excel Programming 3 June 7th 04 09:13 PM


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