QUOTE(Zhalix @ 10 May, 2008 - 05:05 PM)

Ah, see, I've never used Print for anything so I wasn't sure if you really meant that. You could use Print, it would work. And if you wanted to print each value after each inputbox, just put the print command after each inputbox.
As for making an inputbox have the default value of 55, this would work:
CODE
InputBox("Whatever", "Whatever", "55")
EDIT:Ah you modified your post while I was writing mine.
Please tell me your problem again more clearly and also provide me with the code you're using.
yes sorry for just modiefied but actually the second code worked and i really thank you i was making it show print all i had to do is take of the text since the teacher wants it to show text this is what i got. What i need is for the program to look exactly like this when you put the digits?
Vehicle speed 40 MPH
Time traveled 3 hours
Hour Distance Traveled
------------------------------
1 40
2 80
3 120
Total Distance 120
What i got and was sorta modefiing is this i don't get it exactly like that yet. It works though the program
CODE
Private Sub cmdRunDemo_Click()
Dim TravelTime As Integer
Dim VehicleSpeed As Integer
Dim Miles As Integer
VehicleSpeed = InputBox("Enter Speed:")
TravelTime = InputBox("Enter Time Traveled:")
Miles = TravelTime * VehicleSpeed
Print "Vehicle Speed"; Miles; "MPH"
Print "Time traveled"; TravelTime; "Hours"
Print "Hour Distance Traveled"
Print "Hours: " & TravelTime & vbNewLine & "Miles: " & Miles
End Sub
Edit on the when you input the speed i put inputbox ("55") it would put an extra box to input since i want it when i start the program to show 55 as default highlighted and i guess you put what you want. thats what the teacher asked thats why
This post has been edited by liko: 10 May, 2008 - 04:16 PM