Solved

Demo Macro Script v2

Posted on 2013-11-26
5
204 Views
Last Modified: 2013-11-26
EE Pros,

Ssaqibh wrote a very nice Macro for me to help with a set of Demos I'm running in a WB.

The challenge is two fold; 1.) I have difficulty working with the RC format and would appreciate the use of a simpler coding that I can deal with and more importantly, 2.) the Macro uses a Matching formula.  You will see on the Demo Tab that there are "Reference Cells".  It's those reference cells that need to indicate where the data must go in each Demo selection.

Thank you in advance,

B.
Demo-Scriptv1.xlsm
0
Comment
Question by:Bright01
  • 3
  • 2
5 Comments
 
LVL 43

Expert Comment

by:Saqib Husain, Syed
ID: 39678980
Private Sub Worksheet_Change(ByVal Target As Range)
    If Target.Address = Range("d3").Address Then
        Set dc = Range("6:6").Find(Target.Value)
        For Each cel In Range("D8:D13")
            ws = Mid(cel, 2, InStr(cel, "!") - 2)
            Rng = Right(cel, Len(cel) - InStr(cel, "!"))
            Sheets(ws).Range(Rng).Value = Intersect(cel.EntireRow, dc.EntireColumn).Value
        Next cel
    End If
End Sub
0
 

Author Comment

by:Bright01
ID: 39679303
Ssaqibh,

Nice work!  When I go to scale this, is it just simply increasing the Range from ("D8:" to D??? with the right Reference Cells?

B.
0
 
LVL 43

Accepted Solution

by:
Saqib Husain, Syed earned 500 total points
ID: 39679358
Yes, and I forgot to mention that the third entry in that range should be corrected before using the macro. That one started with == instead of =
0
 

Author Comment

by:Bright01
ID: 39679363
yeah....caught that.  I'll continue to build on this.  

Thank you for your help.  I see you're #5 on the Experts!  Congrats!

B.
0
 

Author Closing Comment

by:Bright01
ID: 39679368
Works well!  I can use this.

Thank you!

B.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Introduction This Article briefly covers methods of calculating the NPV and IRR variants in Excel as well as the limitations in calculating and interpreting IRR results. Paraphrasing Richard Shockley, author of my favourite finance reference tex…
Improved? Move/Copy Add-in Replacement - How to avoid the annoying, “A formula or sheet you want to move or copy contains the name XXX, which already exists on the destination worksheet.” David Miller (dlmille)  It was one of those days… I wa…
Viewers will learn the basics of slicers and timelines for both PivotTables and standard Excel tables in Excel 2013.
The viewer will learn how to simulate a series of sales calls dependent on a single skill level and learn how to simulate a series of sales calls dependent on two skill levels. Simulating Independent Sales Calls: Enter .75 into cell C2 – “skill leve…

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now