?
Solved

Demo Macro Script v2

Posted on 2013-11-26
5
Medium Priority
?
248 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 2000 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This tutorial explains how to create a series of drop-down lists that are dependent upon prior selections to guide (“force”) the user to make the correct selection and reduce data errors within Microsoft Excel. Excel 2010 was used for this tutorial;…
This article describes how you can use Custom Document Properties to store settings and other information in your workbook so that they will be available the next time you open the workbook.
This Micro Tutorial demonstrates how to create Excel charts: column, area, line, bar, and scatter charts. Formatting tips are provided as well.
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.

770 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