using combox boxes to make a report sheet.

raum

New Member
Joined
Jul 11, 2006
Messages
2
ok, I have multiple criteria, "Plant" Column C and "Month" Column B.

I created a page called "REPORT" that has header rows, and contact inforformation that gets pulled from the "INDEX" sheet via lookup, based on linked cells that refer to comboboxes. I can do all that myself.

Here'e the tricky part, though.

As I mentioned above, the report has two combo boxes on it. You select the Plant in combobox1, and the Month in combobox2.

Then...

Private Sub ComboBox2_Change()

This is display the records from my third sheet called "TRANSACTIONS" where column C = combobox1.Selection and Column B = combobox2.Selection.

The general steps to the process are:

Dim rngAllTransactions As Range
Dim rngRightMonth As Range
Dim rngMonthlyPlant As Range

rngAllTransactions = All Rows on worksheet “Transactions” where column B is not blank.

rngRightMonth = Rows in rngAllTransactions where column B = combobox1.Value

rngMonthlyPlant = Rows in rngRightMonth where column C = combobox2.Value

Then, I want to

Copy cells D:L for rngMonthlyPlant to Worksheet “Report”, starting at D30.

can anyone help me with this? I am struggling with this in Excel when it is a natural function of Access to find a recordset, because the ues of Acces is restricted in our company, and I don't know enough VBA to compensate. but I am learning! (and reading three books)

------

NOTE: I can concatenate the two fields and create a custom filter, but it won't work to find values across worksheets, nor will it print the rows to the REPORT worksheet. I also got a function based solution from another forum and implemented it, but the minute I gave it to the accountants, they managed to hose it up and requested it in vba.

and I hate to be a bother, but I swear I looked. it would help if I could properly word my requests, and refine my searches.

Thanks, for all your help.
Charlie
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
ok, I found some help, and for those who may look for this by search...

Chapter 11 : VBA and Macros for Microsoft Excel was a big help in getting the syntax right for the procedures in my Macro.

ISBN: 0-7897-3129-0
QUE Publishing

(obviously, its a Mr. Excel book.)
 
Upvote 0

Forum statistics

Threads
1,215,124
Messages
6,123,190
Members
449,090
Latest member
bes000

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top