Solved

Changing to Currency Format

Posted on 2013-11-28
5
263 Views
Last Modified: 2013-11-28
EE Pros,

Ssaqibh wrote a Currency Update Macro for me.  I have one change to make.  The Attached Workbook works fine except the Currency formatting doesn't change when making the Currency Selection.  The formatting needs to be in Currency - Column I Cell 4 and below.

That's it!

Thank you in advance.

B.
Currency-Update-and-Displayv2.xlsm
0
Comment
Question by:Bright01
  • 2
  • 2
5 Comments
 
LVL 33

Expert Comment

by:Norie
ID: 39683472
Where do you set/select the currency?
0
 
LVL 43

Expert Comment

by:Saqib Husain, Syed
ID: 39683490
Sub CurrencyUpdate()
Dim cel As Range, cn As Range
Sheets("Currency").QueryTables(1).Refresh
Set cn = Sheets("Currency").Range("J3:R3").Find(Sheets("Customer-inputs").Range("F2").Value, , xlValues)
For Each cel In Sheets("Currency").Range("G4:G10000")
cel.Offset(, 2).Value = Sheets("Currency").Cells(cel.Row, cn.Column).Value
cel.Offset(, 2).NumberFormat = Cells(cel.Row, cn.Column).NumberFormat
If cel.Value <> "" Then
    Sheets(Replace(Split(cel.Value, "!")(0), "'", "")).Range(Split(cel.Value, "!")(1)).Value = cel.Offset(, 2).Value
    Sheets(Replace(Split(cel.Value, "!")(0), "'", "")).Range(Split(cel.Value, "!")(1)).NumberFormat = cel.Offset(, 2).NumberFormat
End If
Next cel
End Sub

Open in new window

0
 

Author Comment

by:Bright01
ID: 39683579
Ssaq,

I changed the macro; however, now it appears it is doing a lot of additional work (see the flickering) when firing "Update".  

Can you take a quick look?

B.
Currency-Update-and-Displayv3.xlsm
0
 
LVL 43

Accepted Solution

by:
Saqib Husain, Syed earned 500 total points
ID: 39683727
Move line 8 up to line 6
0
 

Author Closing Comment

by:Bright01
ID: 39683999
That works!  Will be authoring another question for another slight change to the program.

Thanks for hanging in there with me!

B.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

Suggested Solutions

This article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
This code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
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…
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

828 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