Solved

Demo Macro Script v2

Posted on 2013-11-26
5
243 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article descibes how to create a connection between Excel and SAP and how to move data from Excel to SAP or the other way around.
In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.

688 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