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 summarising information in a workbook on a new worksheet

i have a worksheet that details the sales to customers. From a userform i
need a command button to open a form that asks for start and finish dates.
These dates need to be used to show all the sales made in this period and be
displayed on a new worksheet
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,101
Default summarising information in a workbook on a new worksheet

Private Sub CommandButton1_Click()
Dim strColumn1 As String
Dim strColumn2 As String

strColumn1 = "A1"
strColumn2 = "B1"

Worksheets("sheet1").Range(strColumn1).Value = Me.TextBox1.Value

Worksheets("sheet1").Range(strColumn2).Value = Me.TextBox2.Value

UserForm2.Hide

End Sub

Private Sub UserForm_Activate()
Dim StartDate As String
Dim EndDate As String

StartDate = "Enter a Starting date...Example 1/1/2007"
EndDate = "Enter a Ending date..Example 1/1/2007"

MsgBox StartDate & vbCrLf & EndDate

End Sub

"SDH" wrote:

i have a worksheet that details the sales to customers. From a userform i
need a command button to open a form that asks for start and finish dates.
These dates need to be used to show all the sales made in this period and be
displayed on a new worksheet

  #3   Report Post  
Posted to microsoft.public.excel.programming
SDH SDH is offline
external usenet poster
 
Posts: 19
Default summarising information in a workbook on a new worksheet

Thank Mike, but perhaps i didn't explain the function required correctly. So
here is a bit more detail.
I have a UserForm1 with a cmdUpdateSummary button on it. The Workbook has
two sheets Products and Clients. The Clients sheet has a list of details of
sales made with the date of sales in column F. What i need is when the
cmdUpdateSummary is clicked to ask for the start and finish date of sales to
report in a new worksheet 'Summary' with all those details of the dates that
meet the criteria to be presented.

"Mike" wrote:

Private Sub CommandButton1_Click()
Dim strColumn1 As String
Dim strColumn2 As String

strColumn1 = "A1"
strColumn2 = "B1"

Worksheets("sheet1").Range(strColumn1).Value = Me.TextBox1.Value

Worksheets("sheet1").Range(strColumn2).Value = Me.TextBox2.Value

UserForm2.Hide

End Sub

Private Sub UserForm_Activate()
Dim StartDate As String
Dim EndDate As String

StartDate = "Enter a Starting date...Example 1/1/2007"
EndDate = "Enter a Ending date..Example 1/1/2007"

MsgBox StartDate & vbCrLf & EndDate

End Sub

"SDH" wrote:

i have a worksheet that details the sales to customers. From a userform i
need a command button to open a form that asks for start and finish dates.
These dates need to be used to show all the sales made in this period and be
displayed 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
Finding a Workbook based on a Cell information in another Workbook Walter Excel Worksheet Functions 1 October 10th 09 08:46 AM
Summarising information from different sheets in a summary sheet Naida T Excel Worksheet Functions 2 June 22nd 09 01:18 AM
Summarising Worksheet Data Jade Excel Programming 4 June 15th 09 06:43 AM
Moving Cell Information from one workbook into another workbook [email protected] Excel Worksheet Functions 2 January 25th 07 02:26 AM
Summarising Information from other files Mike McLellan Excel Discussion (Misc queries) 0 April 25th 06 01:48 PM


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