LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default User Form value passing problem

Hopefully this is a simple fix, but for some reason I can't figure it
out. I have a user from in which the user enters information through
text boxes. One text box has characters and numbers, the rest have
numbers. The one with mixed characters is a date. Specifically a
month and year. The user is instructed to use an abbreviated form,
i.e. June '06 or Sept. '06. The problem is that if the user inputs
something like June 06 instead of June '06 (missing the apostrophe) or
Sept 06 instead of Sept. 06 (no period), when I pass the value to a
cell on a worksheet, I get a number. For example, July 06 = 38904 when
passed using the code:

Range("C27").Value2 = Me.txtMonth.Value

I'd prefer to fix this without using data validation or anything like
that. Thanks in advance for any advice!

B

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
User Form Problem DCSwearingen Excel Discussion (Misc queries) 2 December 30th 05 03:42 PM
User Form Problem DCSwearingen Excel Discussion (Misc queries) 0 December 29th 05 11:04 PM
PASSING DATA FROM USER FORM TO EXCEL SPREADSHEET No Name Excel Programming 12 January 7th 04 01:36 PM
passing a range to a user defined function using a form davek Excel Programming 1 December 24th 03 07:40 AM
Passing Text from User Form to Spreadsheet Betsy[_2_] Excel Programming 1 August 6th 03 02:33 AM


All times are GMT +1. The time now is 06:36 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"