Advertisement

06.04.2008 at 03:46PM PDT, ID: 23458658
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

8.9

Range Intersect problem across several tabs

Asked by deedub84 in Microsoft Excel Spreadsheet Software

Tags: , ,

Hi Experts,

I have a spreadsheet which develops a project budget across 5 years.  Thus I have Worksheets: 'Year 1', 'Year2',..., 'Year 5'.

Currently have some code in year 1 that checks to see if the cursor is in a particular named range, and depending on which range, opens a form to input the related data for that range (which then saves the data into the ranges across all years.

I'd like to set it up so that the user can be in the appropriate range in any of the years to open up the menu, not just year 1.  My initial thought is to set the range name to be discontinuous (ie to include the range in each of the year worksheets).  When I do this I get an error in the intersect command I'm using.

Is there a way to setup the intersection so that it looks at all the discontinuous ranges and if it is in that range, opens the form?

Here's my code at the moment:
Start Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
Dim clCurrent As Range, rngInput As Range, rngTest As Range
Dim strRange As String, rngIntersect As Range
 
Set clCurrent = ActiveCell
 
'Cursor is in Personnel Range
Set rngTest = ActiveSheet.Range("Personnel") <---- errors out here when I set the 'Personnel' range to be discontinuous
Set rngIntersect = Application.Intersect(clCurrent, rngTest)
If Not rngIntersect Is Nothing Then
    strRange = "Personnel"
    Set rngInput = ActiveSheet.Range("Personnel")
End If
 
'... other ranges tested
 
If strRange <> "" Then
    OpenInputForm strRange, rngInput, "Open"
End If
[+][-]06.04.2008 at 04:04PM PDT, ID: 21714998

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.05.2008 at 04:00AM PDT, ID: 21717964

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06.05.2008 at 05:40AM PDT, ID: 21718635

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.05.2008 at 05:57AM PDT, ID: 21718794

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06.05.2008 at 07:39AM PDT, ID: 21719984

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Microsoft Excel Spreadsheet Software
Tags: Excel, Excel, 2003
Sign Up Now!
Solution Provided By: StellanRosengren
Participating Experts: 1
Solution Grade: A
 
 
[+][-]06.05.2008 at 11:47AM PDT, ID: 21722701

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080924-EE-VQP-39 / EE_QW_2_20070628