Improve company productivity with a Business Account.Sign Up

x
?
Solved

Setting Demo

Posted on 2013-11-26
2
Medium Priority
?
230 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

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.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

This article describes a serious pitfall that can happen when deleting shapes using VBA.
Excel allows various different methods to link Excel files to each other. This includes relative paths, mapped drives (or the local drive) and UNC paths. UNC paths are the least robust of the three.
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.
How can you see what you are working on when you want to see it while you to save a copy? Add a "Save As" icon to the Quick Access Toolbar, or QAT. That way, when you save a copy of a query, form, report, or other object you are modifying, you…

584 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