Solved

Slight change to Currency Macro

Posted on 2013-11-28
12
169 Views
Last Modified: 2013-12-09
EE Pros,

Ssaqibh wrote a very useful Currency Update Macro for me.  

I have one change to make.  The Attached Workbook works fine except the Currency update, within the WS/WB needs to take place WHEN THE CURRENCY IS SELECTED.  What happens now is that when you fire the macro, it both updates the Currency Selection as well as updates the Currency Table.  What I need is for the Currency to change Within the WB/WS and then when you fire the macro by the button, it then does the table update.

That's it!

Thank you in advance.
Currency-Update-and-Displayv4.xlsm
0
Comment
Question by:Bright01
12 Comments
 
LVL 22

Expert Comment

by:Flyster
ID: 39684502
Here's an alternate solution to your macro. On sheet "Customer-Input", I added a combo box. The customer enters a value in C9 and selects the currency type in the combo box. Once selected, the value in C9 is automatically entered into Currency!K4, which is automatically formatted to the selected currency. Cells K5:T5 will then reflect the corresponding values. I wasn't sure, however, how the value on sheet "Price Quote" comes into play.

Flyster
Currency-Update-and-Displayv4.xlsm
0
 
LVL 11

Expert Comment

by:SeanStrickland
ID: 39684705
0
 
LVL 43

Expert Comment

by:Saqib Husain, Syed
ID: 39684728
No this is a subsequence of the last comment on that question
0
 

Author Comment

by:Bright01
ID: 39685282
Flyster,

Thanks for the update.  Unfortunately, I can't get the new macro to work.  I get an script out of range error.

The old macro worked fine except for the slight change.  Can we start with that?  

Otherwise, I'm back into troubleshooting mode.  

All I need is to take the original macro and change it to update the Worksheet (without updating the Currency from MS Money) when selecting the currency on the first WS (F2).  

Then when the Update Macro is fired from the button on the Currency Tab, it updates the currency amounts to reflect the latest from MS Money - Currency.  Right now it does both; but only when you fire the Update Macro.

B.
Currency-Update-and-Displayv5.xlsm
0
 
LVL 11

Expert Comment

by:SeanStrickland
ID: 39685387
B,
Let me know if this is what you're looking for.  When you update the value in F2 of the first sheet, it updates the formatting in the highlighted cells on sheet 1 and 2.

The values in the table on sheet 3 are not touched unless you trigger the macro that was previously designed by the other expert.

Sean


Note: I had to update your column reference on sheet 3... you referenced "Customer - Inputs!C9" and there are no spaces in your worksheet.  The new value is "Customer-Inputs!C9".
0
 
LVL 11

Accepted Solution

by:
SeanStrickland earned 500 total points
ID: 39685390
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

Author Comment

by:Bright01
ID: 39686817
Sean,

Thank you and ........Almost!  Check sheet 3 Currency and cells I4 and I5.  When you change the Currency on the Customer-Input screen, you have the right idea in picking up the new currency and formatting it correctly.  HOWEVER, the source for the update should come from Currency cells I4 and I5 (as a Range so I can scale it beyond I5).  So the "Value in Current Currency" is the Currency you have selected on WS "Customer-Inputs" and then THAT VALUE is displayed in the other two WSs.  

Make sense?

B.
0
 

Author Comment

by:Bright01
ID: 39689369
Sean,

You there?

B.
0
 

Author Comment

by:Bright01
ID: 39697717
Sean,

You OK?

B.
0
 

Author Closing Comment

by:Bright01
ID: 39698660
Sean,

I went back and reexamined what you wrote here and this will work!  Thank you!

B.
0
 
LVL 11

Expert Comment

by:SeanStrickland
ID: 39698985
Sorry, went out of town for the week.  Glad that helped. :)
0
 

Author Comment

by:Bright01
ID: 39706009
Sean,

Greetings!  I have posted a request for a slight change to the macro.  Hope you have time to pick it up...... should be a relatively simple change.

Thanks again,

B.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Workbook link problems after copying tabs to a new workbook? David Miller (dlmille) Intro Have you either copied sheets to a new workbook, and after having saved and opened that workbook, you find that there are links back to the original sou…
Some code to ensure data integrity when using macros within Excel. Also included code that helps secure your data within an Excel workbook.
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…
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…

867 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

16 Experts available now in Live!

Get 1:1 Help Now