+ Reply to Thread
Results 1 to 6 of 6

Change symbol in value

  1. #1
    Forum Contributor
    Join Date
    06-14-2013
    Location
    jk
    MS-Off Ver
    Excel 2007
    Posts
    326

    Change symbol in value

    Hi,

    I let users put in a date in an userform.
    They are now able to put in format 01.01.2016.
    However i want excel to correct the . to /, so it recognizes it as a date.

    After the userform is filled in, is there an way to change the dot to a slash?

    So for example.
    if date.value contains . then range("A1") = substitute . with / in date.value

    Thanks for the help!

  2. #2
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Change symbol in value

    Maybe:

    Please Login or Register  to view this content.

  3. #3
    Valued Forum Contributor Neil_'s Avatar
    Join Date
    04-19-2013
    Location
    Yorkshire
    MS-Off Ver
    Office 365 Enterprise E3 2013 / 2016
    Posts
    479

    Re: Change symbol in value

    If your text box or date picker is actually called 'Date', change it. Date is a reserved word.

    To pass the value of a control in your userform called 'txtDate' :-
    Please Login or Register  to view this content.
    Format the cell as a date.
    Last edited by Neil_; 09-09-2016 at 07:57 AM.
    Frob first, tweak later

  4. #4
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Change symbol in value

    Something like:
    Please Login or Register  to view this content.
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

  5. #5
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229

    Re: Change symbol in value

    If you put this in the user form's code module, it will make the correction as soon as the user entered the value.
    Please Login or Register  to view this content.
    _
    ...How to Cross-post politely...
    ..Wrap code by selecting the code and clicking the # or read this. Thank you.

  6. #6
    Forum Contributor
    Join Date
    06-14-2013
    Location
    jk
    MS-Off Ver
    Excel 2007
    Posts
    326

    Re: Change symbol in value

    Thanks all for the reply's!

+ 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. how do I change the dollar symbol to euro symbol
    By Arpita_Excel in forum Excel General
    Replies: 5
    Last Post: 07-20-2015, 02:26 AM
  2. [SOLVED] Vba macro to change spaces on a string to a symbol!
    By dontke in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-22-2015, 07:05 PM
  3. [SOLVED] change currency symbol
    By kopo in forum Excel General
    Replies: 6
    Last Post: 03-24-2013, 09:49 AM
  4. Automatic change to symbol
    By dimmerswitch in forum Excel General
    Replies: 1
    Last Post: 05-17-2010, 02:29 PM
  5. How do I change a symbol to a numeric value ie: N to 5
    By 7vYkCtVN in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 04-26-2006, 01:10 PM
  6. How can I change dollar sybbol to euro symbol?
    By zwerver in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 01-31-2006, 03:00 PM
  7. Replies: 3
    Last Post: 03-23-2005, 08:06 AM

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