+ Reply to Thread
Results 1 to 4 of 4

Launching a dataform using a macro changes the currency settings of a calculated cell

  1. #1
    Registered User
    Join Date
    12-13-2012
    Location
    here
    MS-Off Ver
    Excel 2010
    Posts
    8

    Launching a dataform using a macro changes the currency settings of a calculated cell

    Using Excel 2010

    I have a spreadsheet with a variety of different fields, one of which is a calculated currency field (20% of a price). This is formatted to Currency £ 2d.p. I am using the default dataform to add and edit data to the spreadsheet.

    When I open the form using the form button the calculated currency field displays the amount correctly formatted.

    I then recorded a macro to open the form and assigned this to a button. Now when I open the form using the macro, the calculated field displays with $ instead of £.

    I have checked that excel settings are English. I cannot find anyway of viewing the VBA code for the default dataform. I have attached an example file.

    Book1.xlsm

    Any help greatly appreciated

  2. #2
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Launching a dataform using a macro changes the currency settings of a calculated cell

    change the currency symbol in the number format to use '£ English (United Kingdom)" instead of just '£' or use
    Please Login or Register  to view this content.
    instead of
    Please Login or Register  to view this content.
    Josie

    if at first you don't succeed try doing it the way your wife told you to

  3. #3
    Registered User
    Join Date
    12-13-2012
    Location
    here
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Launching a dataform using a macro changes the currency settings of a calculated cell

    Fantastic. Thank you JoesphP

  4. #4
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Launching a dataform using a macro changes the currency settings of a calculated cell

    you're welcome :-)

    please don't forget to mark the thread solved (click the 'thread tools' link at the top then 'mark solved')

+ 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