LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Heading for Report from UserForm.

Select Case True
Case Trim(CoboSection.Value) < ""
Sheets("RepPurchase").Range("H1") = CoboSection.Value
' ===========================================
Case Trim(CoboLocation.Value) < ""
Sheets("RepPurchase").Range("H1") = CoboLocation.Value
' ===========================================
Case Trim(CoboCategory.Value) < ""
Sheets("RepPurchase").Range("H1") = CoboCategory.Value
' ===========================================
Case Else
Sheets("RepPurchase").Range("H1") = "All Data"
' ===========================================
End Select

--
Regards,
Tom Ogilvy


" wrote:

Hi,

I have a userform with some textboxes and comboboxes to get view the
information by selecting by textboxes and cobos. and have a
BuildReport button to find and filter the records from worksheet.

buttons are like this:

Filter Criteria:
============
1 CoboCategory:
2 CoboLocation:
3 CoboSection:
4 TxtDate:

And I have a button
Private Sub BuildReport_Click()
Sheets("Purchase").Select
Range("AT5:BH65500").Select
Selection.Copy
Sheets("RepPurchase").Select
Range("A3").Select
ActiveSheet.Paste
Range("A3").Select

Sheets("RepPurchase").Range("H1") = CoboSection.Value
' ===========================================

Sheets("Purchase").Select
Range("A1").Select
End Sub

I am using the above code to copy the filtered data to "RepPurchase"
sheet
Now the problem is this if I will use the above command then H1 shows
the name of the Section which I select, and If I select the
CoboCategory or CoboLocation how to show the different critaria in H1
as Heading of the Report.

Please help me to prepare heading for the searched critaria.

Thanks and regards.

Shahzad
KSA.


 
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
how can I exclude a heading but show that heading in sheet. Hunter Excel Discussion (Misc queries) 4 January 8th 07 07:35 AM
Automate Excel report to place certain data into existing report? Craig Harrison Excel Worksheet Functions 3 July 25th 06 01:54 PM
Header in Report Manager Report Steve K Excel Discussion (Misc queries) 0 March 7th 06 07:32 PM
In a table produce an value by column heading and row heading naflan Excel Worksheet Functions 1 December 27th 05 05:18 PM
Fill an individual report with values from a team report? alymcmorland[_4_] Excel Programming 2 October 13th 05 09:39 AM


All times are GMT +1. The time now is 11:33 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"