Hi Guys,
I need a macro that puts this onto the worksheet:
Note 1 - Named rangeWorksheet_SelectionChange(ByVal Target As Range) If Not Application.Intersect(Target, Range(****See Note 1***)) Is Nothing Then hide/or show other named ranges below named range above End If
Note 2 - I want to be able to stipulate which named ranges will show/ hide.
one way i thought i could achieve this is by listing all the named ranges in order - then by having a 1 or 0 column next to these ranges to identify what is to be shown/ hidden.
Im open to suggestions on other ways about achieving this
regards
Last edited by jordan2322; 01-09-2012 at 09:51 PM.
What are you trying to do?
Ive reworded the question and uploaded an example file - please see
regards
Last edited by jordan2322; 01-09-2012 at 09:03 PM.
.....bump![]()
You've not really answered the question - why do you need to do this?
What is the purpose of the code, from what I can see you would be better using Custom Views
Hope that helps.
RoyUK
--------
If you are pleased with a member's answer then use the Star icon to rate it, if you are pleased enough to part with cash consider a donation to Children in Need
For Excel Tips & Solutions, free examples and tutorials why not check out my downloads
New members please read & follow the Forum Rules
Remember to mark your questions Solved and rate the answer(s)
The workbook this code will be used in is a report viewer. output files from an external program are copied and pasted into newly created worksheets in this workbook. All of the copied data is in named ranges. I want to have a macro run that will insert this code in so that the users of this report viewer workbook are easily able to toggle the view in the report. By toggle view I mean toggle the named ranges.
Hope this helps
Last edited by jordan2322; 01-10-2012 at 05:59 AM.
That's totally different fromwhat you originally asked & the error trapping will not work that way
Hope that helps.
RoyUK
--------
If you are pleased with a member's answer then use the Star icon to rate it, if you are pleased enough to part with cash consider a donation to Children in Need
For Excel Tips & Solutions, free examples and tutorials why not check out my downloads
New members please read & follow the Forum Rules
Remember to mark your questions Solved and rate the answer(s)
roy,
Do you know of any other way to do this?
thnx
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks