Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have just completed a weeks crash course in VBA programming and would like
to use some of the knowledge I was supposed to learn; however, it isn't working to well. We have an Excel spreadsheet that the company requires us to use. It fills in the names of personnel attending training depending on which shop the are assigned to. An Excel form was created to input the names and works great. However, the trainers would like to make the forms up in advance and want to input a date on the form and have it transfer to the spreadsheet before it prints. I have tried to do this, but can't get it to work. The coding so far that is not working for me is: Private Sub Execute_Click() 'declare variables Dim StrRangeDate As String Dim sht8253Form As Worksheet Set sht8253Form = Application.Workbooks("OTD F8253.xls").Worksheets("8253 Form") 'Assign user input txtRangeDate to variables StrRangeDate = Val(txtRangeDate.Text) MsgBox (StrRangeDate) What happens is the if we input "10-21-06" all that shows up in the MsgBox is 10. And when we print the spreadsheet form, nothing appears. Help Please! |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
excel form. Need data extracted to spreadsheet each time a form co | Excel Discussion (Misc queries) | |||
How do I create a User form to input Data into an Ecel spreadsheet | Excel Programming | |||
Data Input - User Form Drop-Down Box | Excel Programming | |||
Using a form to input data into a schedule | Excel Programming | |||
Data Input Execl Form | Excel Programming |