Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
SDH SDH is offline
external usenet poster
 
Posts: 19
Default referencing inputbox input to worksheet

I have the following code
Private Sub cmdUpdateSummary_Click()
Dim StartDate As Date
Dim EndDate As Date
StartDate = InputBox("Enter Starting Date Please", StartDate)
EndDate = InputBox("Enter Ending Date Please", EndDate)
End Sub

Can anyone tell me how i can collect the dates in between those entered from
a worksheet and place them on a new worksheet?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default referencing inputbox input to worksheet

Hi SDH,

Yoo could use Excel's Advanced Filter to extract and copy
the data to the required sheet.

Try turning on the macro recorder while you perform the
requisite steps manually. This will provide you with base
code which may be edited to render it more generic and to
replace the date criteria with the results of your input boxes.

If you are not familiar with the Advanced Filter, see
Debra Dalgleish's tutorial at:

Excel -- Filters -- Advanced Filters -- Introduction
http://www.contextures.com/xladvfilter01.html


---
Regards,
Norman


"SDH" wrote in message
...
I have the following code
Private Sub cmdUpdateSummary_Click()
Dim StartDate As Date
Dim EndDate As Date
StartDate = InputBox("Enter Starting Date Please", StartDate)
EndDate = InputBox("Enter Ending Date Please", EndDate)
End Sub

Can anyone tell me how i can collect the dates in between those entered
from
a worksheet and place them on a new worksheet?



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
Check on the input in an inputbox Tempy Excel Programming 5 May 17th 05 02:01 PM
Numerical Input via an inputbox method Tom Ogilvy Excel Programming 0 August 16th 04 07:33 PM
Numerical Input via an inputbox method Bob Phillips[_6_] Excel Programming 0 August 16th 04 07:30 PM
Check on the input in an inputbox Les Stout Excel Programming 2 January 14th 04 03:18 PM
String length of Inputbox user input. Hersh Excel Programming 2 July 14th 03 08:47 PM


All times are GMT +1. The time now is 04:16 PM.

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"