+ Reply to Thread
Results 1 to 4 of 4

transfering data from VBA Userform to designated WorkSheet Table...

  1. #1
    Registered User
    Join Date
    01-25-2016
    Location
    Bucharest
    MS-Off Ver
    2013
    Posts
    14

    transfering data from VBA Userform to designated WorkSheet Table...

    Hello,

    I'm building a simple userform to fill out a certain table; in one of the textboxes i should input a date value "dd/mm/yyyy". The problem I've encountered is that in my table the date value is not recognized as being a DateFormat although the specific field is formatted as "ShortDate".
    In other words: input date value "dd/mm/yyyy" (from userform) and I receive a text value in thet specific cell ref.

    Thanks a lot

  2. #2
    Forum Contributor
    Join Date
    04-20-2015
    Location
    Switzerland
    MS-Off Ver
    2010
    Posts
    312

    Re: transfering data from VBA Userform to designated WorkSheet Table...

    cast the value to a date before writing it to the Cell

    for example if you want to write the Date from textbox mydate to cell A1 of the first sheet in your workbook use
    Please Login or Register  to view this content.
    You should make sure that the user has entered a Date else you will get an error

  3. #3
    Registered User
    Join Date
    01-25-2016
    Location
    Bucharest
    MS-Off Ver
    2013
    Posts
    14

    Re: transfering data from VBA Userform to designated WorkSheet Table...

    the date is entered from keyboard. Is there a proper way to enter the date? I used ( in the textbox) the format dd/mm/yyyy. if I were to type that in a cell I would automatically get it ShortDate formatted.

  4. #4
    Registered User
    Join Date
    01-25-2016
    Location
    Bucharest
    MS-Off Ver
    2013
    Posts
    14

    Re: transfering data from VBA Userform to designated WorkSheet Table...

    Thanks it went well. It was exactly what was missing.
    Solved!

+ 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. Problem transfering data from userform to last blank cell in column
    By hstarr2021 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-17-2013, 08:59 PM
  2. Transfering Userform textbox filepath to worksheet as a hyperlink.
    By SJJ in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-29-2012, 05:17 PM
  3. transfering multi selected list box in userform to one cell in worksheet
    By isatrist in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-04-2011, 12:35 AM
  4. Transfering Worksheet varaible from Userform to Module?
    By vin1 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-18-2011, 07:34 AM
  5. Transfering Data to Another Worksheet
    By jason_kelly in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-30-2010, 11:22 AM
  6. Transfering data from one table to another
    By jesika in forum Access Programming / VBA / Macros
    Replies: 1
    Last Post: 05-26-2009, 12:08 PM
  7. Transfering data to another worksheet
    By sk51 in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 07-29-2008, 11:30 AM
  8. Transfering data from 1 worksheet to another
    By Larry L in forum Excel General
    Replies: 1
    Last Post: 08-29-2005, 09:05 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