Results 1 to 5 of 5

Put input into a cell in file

Threaded View

  1. #1
    Registered User
    Join Date
    04-13-2009
    Location
    Chicago, USA
    MS-Off Ver
    Excel 2007
    Posts
    34

    Put input into a cell in file

    Hi, I am trying to prompt excel to ask for a date if a cell C3 is empty. And then I am trying to place the value entered into cell C3.

    my code is as follows:

    Private Sub DateEntered()
    Dim DateEntered As String
    
    
    If IsEmpty(Cells(3, 3)) Then
        DateEntered = Application.InputBox(Prompt:="Please enter Fiscal Year")
        If DateEntered = Empty Then
            MsgBox Prompt:="You did not enter a date: "
            Else
            'Enter into cell C3
            Cells(3, 3) = DateEntered
        End If
    End If
    
    
    End Sub
    Thanks for your help
    Last edited by sulavsingh6; 04-15-2009 at 11:40 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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