danielthomas
New Member
- Joined
- Feb 25, 2014
- Messages
- 2
Hi there - using excel 10 on windows 7.
I am relatively proficient in general excel use but completely lost when it comes to VBA. I have come across a number of answers to parts of this and have tried for several hours to get it working but to no avail and so would apprecaite any help given
I have a table of data in D5:AH33 This data automatically populates after running a macro. Each column is headed in row 5 with a date. eg. D5 = 1/2/14, D6 = 2/2/14 etc.
I wish to have all of the columns hidden (within the range D:AH) except the column with yesterday's (TODAY()-1) date in row 5.
However.....
Cell AN1 contains a dropdown list of months and when a given month is chosen it pulls through data for that month and populates the table above. I wish the above hiding to only take affect if the value in AN1 is the current month.This is so that anyone looking at previous month's data can see the whole months, not just find everything hidden!!
Finally I would like to be able to place a button on screen (in cell AQ1) which toggles between all of the current month being shown and the script of hiding all but the current date column. So that if i wish to view the whole of this month's data I can do so.
Is any/all of this possible?
Many many thanks
Dan
I am relatively proficient in general excel use but completely lost when it comes to VBA. I have come across a number of answers to parts of this and have tried for several hours to get it working but to no avail and so would apprecaite any help given
I have a table of data in D5:AH33 This data automatically populates after running a macro. Each column is headed in row 5 with a date. eg. D5 = 1/2/14, D6 = 2/2/14 etc.
I wish to have all of the columns hidden (within the range D:AH) except the column with yesterday's (TODAY()-1) date in row 5.
However.....
Cell AN1 contains a dropdown list of months and when a given month is chosen it pulls through data for that month and populates the table above. I wish the above hiding to only take affect if the value in AN1 is the current month.This is so that anyone looking at previous month's data can see the whole months, not just find everything hidden!!
Finally I would like to be able to place a button on screen (in cell AQ1) which toggles between all of the current month being shown and the script of hiding all but the current date column. So that if i wish to view the whole of this month's data I can do so.
Is any/all of this possible?
Many many thanks
Dan