+ Reply to Thread
Results 1 to 4 of 4

Write from userform to sheet

  1. #1
    Registered User
    Join Date
    08-04-2018
    Location
    England
    MS-Off Ver
    2016
    Posts
    35

    Write from userform to sheet

    Hi all,

    I have a workbook with a single sheet that I wish to use to record cash. I have a simple userform that I use to fill out the details and then transfer to the worksheet when I click the "Add to Database" button. The form works fine but the data is transferred to the worksheet as text in the date and amount columns. I am looking for vba code to make sure the date and amount are transferred in a date and currency format. I have attached a example file.
    Attached Files Attached Files

  2. #2
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,980

    Re: Write from userform to sheet

    Try using:
    Please Login or Register  to view this content.
    when writing to the sheet.
    Everyone who confuses correlation and causation ends up dead.

  3. #3
    Registered User
    Join Date
    08-04-2018
    Location
    England
    MS-Off Ver
    2016
    Posts
    35

    Re: Write from userform to sheet

    rorya, Thank you so much it worked a treat.

  4. #4
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,980

    Re: Write from userform to sheet

    Glad to help.

+ 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. [SOLVED] Write value to userform parent
    By rybussell in forum Excel Programming / VBA / Macros
    Replies: 19
    Last Post: 02-07-2023, 01:03 PM
  2. Userform that changes workbook to read/write without closing userform
    By WES29 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-11-2018, 11:29 AM
  3. VBA UserForm - Contact sheet; Using a ComboBox array to write data to specific column
    By willmason in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-01-2014, 09:44 AM
  4. [SOLVED] write to 2 sheets from userform
    By cfinch100 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-20-2014, 12:24 AM
  5. How to create Read/Write VBA Userform that references variable cells/rows in a sheet?
    By Sivart9876 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-16-2012, 10:58 AM
  6. Can't get VBA Userform (mac) to write data to worksheets
    By fickalli in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-25-2012, 02:00 PM
  7. Write to Columns from userform
    By Reidm in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-18-2008, 07:41 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