Link to home
Start Free TrialLog in
Avatar of Bright01
Bright01Flag for United States of America

asked on

Slight change to Currency Macro

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
Avatar of Flyster
Flyster
Flag of United States of America image

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
No this is a subsequence of the last comment on that question
Avatar of Bright01

ASKER

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
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".
ASKER CERTIFIED SOLUTION
Avatar of Sean Strickland
Sean Strickland
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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.
Sean,

You there?

B.
Sean,

You OK?

B.
Sean,

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

B.
Sorry, went out of town for the week.  Glad that helped. :)
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.