+ Reply to Thread
Results 1 to 5 of 5

Concatenate VBA that keeps currency format

  1. #1
    Registered User
    Join Date
    08-23-2012
    Location
    amsterdam
    MS-Off Ver
    Excel 2010
    Posts
    95

    Concatenate VBA that keeps currency format

    Hi Guys,

    I've read a couple of threads about Concatenate VBA to preserve the format, (in my case is only two currency types.), but I couldn't adapt the answers to my case, even because most part of my code is coming from the very nice help of PCI (a forum member).

    I would need to have the concatenation in Sheet2 of columns A:B:C:D:E:F keeping the format ($#,##0.00 or [$€-2] #,##0.00) but without mess up the code, any help is much appreciated.

    the concatenate part is :






    Please Login or Register  to view this content.


    the entire code is :





    Please Login or Register  to view this content.
    Last edited by isasa74; 10-04-2015 at 10:40 AM.

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Concatenate VBA that keeps currency format

    try using the text function in your formula

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    It works for currency, time and dates as demonstrated in this example.
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

  3. #3
    Registered User
    Join Date
    08-23-2012
    Location
    amsterdam
    MS-Off Ver
    Excel 2010
    Posts
    95

    Re: Concatenate VBA that keeps currency format

    hi Mehmetcik,

    thanks a lot for you reply

    I tried to integrate the function Text as suggested but the code stops working (at Cells(1, 1).Formula = WkStg)...this is what I did :

    Please Login or Register  to view this content.

  4. #4
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Concatenate VBA that keeps currency format

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    08-23-2012
    Location
    amsterdam
    MS-Off Ver
    Excel 2010
    Posts
    95

    Re: Concatenate VBA that keeps currency format

    Quote Originally Posted by mehmetcik View Post
    Please Login or Register  to view this content.
    Hi Mehmetcik, thanks a lot for your help , unfortunately this is not going to work as all the concatenations will have the same Format , what I need is that formula/macro must tbe able to dynamically read the correct format from the cells that are going to be concatenated.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Concatenate but keep currency format
    By k1989l in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 06-18-2015, 09:51 AM
  2. Concatenate formula not taking decimal places/currency sign
    By woodsonline in forum Excel General
    Replies: 4
    Last Post: 05-27-2009, 03:34 AM
  3. [SOLVED] How do I concatenate two currency cells to show a price range?
    By nevermore627 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-30-2006, 12:10 PM
  4. Change General Format to Currency Format
    By ScottO in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 09-06-2005, 07:05 AM
  5. Change General Format to Currency Format:figures together
    By ScottO in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 09-06-2005, 04:05 AM
  6. [SOLVED] Change General Format to Currency Format
    By Freshman in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-07-2005, 11:05 PM

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