Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Setting Demo

Posted on 2013-11-26
2
Medium Priority
?
228 Views
Last Modified: 2013-11-27
EE Pros,

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

I need one additional macro enhancement to this Macro that I hope is fairly simple.  I have a button on Sheet 1 that needs to fire off the Macro with respect to the Demo that has been selected on the Demo Tab.  If the Demo is changed on the Demo tab, it's ok and the new values will be reflected (as it is now).  Fire the Demo button on Sheet 1 and it reflects the values that have been selected on the Demo Tab.

That's it!  Thank you in advance!

B.
Demo-Scriptv2.xlsm
0
Comment
Question by:Bright01
2 Comments
 
LVL 43

Accepted Solution

by:
Saqib Husain, Syed earned 2000 total points
ID: 39679776
Change the previous macro from

Private Sub Worksheet_Change.........

to

Public Sub Worksheet_Change..........

and add this macro to the button

Sub RoundedRectangle1_Click()
    Call Sheet3.Worksheet_Change(Sheet3.Range("D3"))
End Sub
0
 

Author Closing Comment

by:Bright01
ID: 39680462
Beautiful!  And simple!

Thank you,

B.
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

Do you use a spreadsheet like Microsoft's Excel?  Have you ever wanted to link out to a non excel file on your computer or network drive?  This is the way I found to do it!
If you need to forecast numbers -- typically for finance -- the Windows and Mac versions of Excel 2016 have a basket of tools to get the job done.
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
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…

824 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