+ Reply to Thread
Results 1 to 10 of 10

Excel 2007 : Convert Currency to USD in multple sheets

  1. #1
    Registered User
    Join Date
    11-30-2011
    Location
    Atlanta, GA
    MS-Off Ver
    Excel 2003
    Posts
    6

    Convert Currency to USD in multple sheets

    Finding this forum is like receiving a great gift. I need to write a macro that will first convert these numbers to USDollars. Since the currency rate changes daily, I need to create a command button "enter the rate". Then the viewer need the option to select "Convert to USD" or "Convert to CAN". The file is attached. Thanks for any and all help! Ener.
    Attached Files Attached Files

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Convert Currency to USD in multple sheets

    In which tab do you want the calculations to be done? There are several in your file.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  3. #3
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,238

    Re: Convert Currency to USD in multple sheets

    If you do this via VBA it will override your formulas, you would be better off with a named value for the conversion rate that you can set and include this in the formula

  4. #4
    Registered User
    Join Date
    11-30-2011
    Location
    Atlanta, GA
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Convert Currency to USD in multple sheets

    I will need to run the calculation on each tab sheet.

  5. #5
    Registered User
    Join Date
    11-30-2011
    Location
    Atlanta, GA
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Convert Currency to USD in multple sheets

    Kyle, I'm a beginner and I don't know how to create a name value. Could you tell me the steps please?

  6. #6
    Registered User
    Join Date
    11-30-2011
    Location
    Atlanta, GA
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Convert Currency to USD in multple sheets

    Arlette -- I will need to run the calcuation on each tab.

  7. #7
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,238

    Re: Convert Currency to USD in multple sheets

    Sure, to make it a little dynamic, give a cell a named range where you put the conversion rate.

    Then include this in your formula, for example if it was "XchangeRate", something like:

    =A1*XChangeRate

    You can then change the value in XChangeRate and it will change all your values

  8. #8
    Registered User
    Join Date
    11-30-2011
    Location
    Atlanta, GA
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Convert Currency to USD in multple sheets

    I will give it a try. Thank you

  9. #9
    Registered User
    Join Date
    11-30-2011
    Location
    Atlanta, GA
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Convert Currency to USD in multple sheets

    Kyle, I'm sorry but I'm not getting it. Could you perhaps take one of the sheets (DLL) and show me the steps please?

  10. #10
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,238

    Re: Convert Currency to USD in multple sheets

    Sure, but you have already done this in some of your formulas e.g:

    =(H35*bQtr1+I35*bQtr2+J35*bQtr3+K35*bQtr4)/bTotYear

    I've updated the first couple of lines in DLL. Change the value in the existing exchange rate tab to see the effect.
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1