+ Reply to Thread
Results 1 to 5 of 5

UserForm number pad decimal separator

  1. #1
    Forum Contributor
    Join Date
    01-18-2012
    Location
    nr Salisbury, UK
    MS-Off Ver
    Excel 2010
    Posts
    126

    UserForm number pad decimal separator

    I’m currently using this at for the number key pad on the UserForm and the decimal point works

    Please Login or Register  to view this content.


    I can across this that just seems more concise but I can’t get the code right for the decimal button,
    getting RunTime error 13 – type mismatch


    Please Login or Register  to view this content.

  2. #2
    Valued Forum Contributor kasan's Avatar
    Join Date
    07-22-2009
    Location
    Riga, Latvia
    MS-Off Ver
    Excel 2010
    Posts
    680

    Re: UserForm number pad decimal separator

    You call function and pass String as parameter
    Please Login or Register  to view this content.
    But your function expect to get Integer as parameter
    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    01-18-2012
    Location
    nr Salisbury, UK
    MS-Off Ver
    Excel 2010
    Posts
    126

    Re: UserForm number pad decimal separator

    Sorry Kasan your talking to a Vba numskull here my grasp of it is limited to say the very least.

    How do I get the number as an Interger rather than as a String?

  4. #4
    Valued Forum Contributor kasan's Avatar
    Join Date
    07-22-2009
    Location
    Riga, Latvia
    MS-Off Ver
    Excel 2010
    Posts
    680

    Re: UserForm number pad decimal separator

    Change "Integer" to "String" here
    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    01-18-2012
    Location
    nr Salisbury, UK
    MS-Off Ver
    Excel 2010
    Posts
    126

    Re: UserForm number pad decimal separator

    Thanks Kasan

    Like I said, limited grasp!!

+ 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. Decimal separator in charts
    By AivarsK in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 04-21-2016, 11:51 AM
  2. [SOLVED] decimal separator not functioning
    By dedamirkov in forum Excel General
    Replies: 2
    Last Post: 06-21-2012, 10:38 PM
  3. Replies: 2
    Last Post: 05-08-2012, 02:44 AM
  4. decimal separator is comma, not period
    By lmmohr in forum Excel General
    Replies: 2
    Last Post: 02-13-2012, 02:32 PM
  5. Getting decimal separator
    By Helge in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-01-2011, 08:23 AM
  6. Decimal vs. Thousands Separator
    By nsv in forum Excel General
    Replies: 5
    Last Post: 12-28-2010, 06:05 AM
  7. [SOLVED] How to change decimal separator . to ,
    By MG in forum Excel General
    Replies: 2
    Last Post: 03-03-2006, 08:45 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