+ Reply to Thread
Results 1 to 4 of 4

Edit cells with form - Number format

  1. #1
    Forum Contributor
    Join Date
    11-10-2009
    Location
    Perth, Australia
    MS-Off Ver
    Excel 2007
    Posts
    549

    Edit cells with form - Number format

    With this form, cells can be edited using a userform. Buttons exist so that special characters can be added such as Greek letters.
    It works for strings but not for numbers.
    I've tried to format numbers as Text using "cell.NumberFormat = "@"" but no success.
    Can any one help?

    Please Login or Register  to view this content.
    Attached Files Attached Files

  2. #2
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,014

    Re: Edit cells with form - Number format

    .
    If you type "123" into the form field, then click on one of the command buttons, what is supposed to appear in the cell ?

    I do not receive any errors here.

  3. #3
    Forum Contributor
    Join Date
    11-10-2009
    Location
    Perth, Australia
    MS-Off Ver
    Excel 2007
    Posts
    549

    Re: Edit cells with form - Number format

    With this code, the typing is not taken into account. Transfer is only supposed to be with the command buttons. My guess is that the issue is because the number is not a string.

  4. #4
    Forum Contributor
    Join Date
    11-10-2009
    Location
    Perth, Australia
    MS-Off Ver
    Excel 2007
    Posts
    549

    Re: Edit cells with form - Number format

    This seemed to have worked if anyone's interested.
    In the FormCreation module, add as shown.

    Please Login or Register  to view this content.

+ 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. any way to batch edit many cells color format?
    By juntjoo in forum Excel General
    Replies: 1
    Last Post: 06-22-2017, 02:25 AM
  2. Replies: 4
    Last Post: 02-11-2016, 12:24 PM
  3. [SOLVED] VBA textbox populating cells in text format instead of number format
    By chrismccarthy17 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 02-03-2016, 07:46 AM
  4. User Form Text Box running Function - How to format number?
    By CRIMEDOG in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-18-2011, 12:57 PM
  5. User Form Text Box Format to number
    By baisty182 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 09-03-2010, 12:22 PM
  6. Number Format Controls on a User Form
    By ChelseaWarren in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-23-2006, 10:20 PM
  7. Replies: 1
    Last Post: 09-01-2005, 04: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