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: 38
Default Copy the value in the Inputbox

Hi,
I am using an InputBox to enter a date. This date should be copied into the
cell (4,7) in the format "mmm. yy". How to manage that.

Here is my code for the inputbox:

Private Sub CommandButton2_Click()
Dim d As Date
On Error GoTo err

Begin:
d = InputBox("Please enter a start date for the scenario!", _
"Start date")
If IsDate(d) And d = "01.01.2008" Then
Else
MsgBox "No existing input data for this date!"

GoTo Begin
End If

Exit Sub

err:
MsgBox "Please only enter a valid date!"
GoTo Begin
End Sub
 
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
Copy a range with application.inputbox excelent Excel Programming 3 April 2nd 07 05:30 AM
Inputbox help... ChrisMattock[_11_] Excel Programming 3 May 12th 06 02:21 PM
InputBox smandula Excel Programming 7 July 28th 05 08:33 AM
Inputbox and Application.InputBox Maria[_7_] Excel Programming 1 September 20th 04 11:36 AM
InputBox Hargrove Excel Programming 2 April 29th 04 07:43 PM


All times are GMT +1. The time now is 09:55 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"