+ Reply to Thread
Results 1 to 2 of 2

Prompts

  1. #1
    sdmccabe
    Guest

    Prompts

    Is it possible to prompt a user for an input (date) when a spreadsheet is
    opened, and save that value in a cell?

  2. #2
    Peo Sjoblom
    Guest

    Re: Prompts

    It won't work if the user doesn't enable macros when prompted

    put it in ThisWorkbook module, it will put whatever you put in that input
    box in sheet1 cell A1




    Option Explicit

    Private Sub Workbook_Open()

    Dim vDate As String

    vDate = InputBox("Please type in a date")

    Worksheets("Sheet1").Range("A1") = vDate

    End Sub


    --

    Regards,

    Peo Sjoblom

    http://nwexcelsolutions.com


    "sdmccabe" <[email protected]> wrote in message
    news:[email protected]...
    > Is it possible to prompt a user for an input (date) when a spreadsheet is
    > opened, and save that value in a cell?




+ Reply to Thread

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