Horizontal filtering with macros

filur1

New Member
Joined
Dec 21, 2013
Messages
7
I am struggling making a horizontal filter with macros. Its currently the only way to solve my problem with easily hiding and unhiding a large amount of columns without transposing my data (which is not an option) and using the original filter.

I've found this example (Andrew's Excel Tips:Horizontal Filter) which pretty much does what I am asking for, however I cant seem to make it work in my new worksheet when its copied into it. (copied the module and the categories into my new worksheet)

Can anyone help me find the code/procedure I need to change to make it work in my new worksheet?
 
Here is the code
 
Upvote 1
filur1,

Welcome to the MrExcel forum.

What version of Excel and Windows are you using?

I downloaded the example workbook, and, have added it to my archives.

It is interesting, but, the maintenance of the code (especially the data validation cells) would be a difficult on-going adventure. I think that as you add more data horizontally, and, vertically, you will be constantly updating the code.

You should probably re-structure your dataset, and, use Excel's standard data filter.


With that said, can you give us your workbook to examine?

You can upload your workbook to Box Net,
sensitive data changed
mark the workbook for sharing
and provide us with a link to your workbook.
 
Last edited:
Upvote 0
I use Excel 2010 on windows.

Unfortunately it contains confidential company information I cannot disclose with this forum. I was having trouble with the reset filter and the data validation. The data validation is actually something I can do without. How can I make a one time data validation to include in the macro instead?
 
Upvote 0
filur1,

Unfortunately it contains confidential company information I cannot disclose with this forum.

You can upload your workbook to Box Net,
sensitive data changed
mark the workbook for sharing
and provide us with a link to your workbook.


How can I make a one time data validation to include in the macro instead?

Without your actual raw data, I would not be able to assist you.

Click on the Reply to Thread button, and just put the word BUMP in the thread. Then, click on the Post Quick Reply button, and someone else will assist you.
 
Upvote 0

Forum statistics

Threads
1,226,827
Messages
6,193,173
Members
453,778
Latest member
RDJones45

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