Thread: Macro
View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.misc
Cedric Cedric is offline
external usenet poster
 
Posts: 6
Default Macro

I recently found the macro listed below. If I wanted the macro to run until
I enter XXX how would I go about that. I would want a line between each date.


Option Explicit

Private Sub Workbook_Open()

Dim vDate As String

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

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

End Sub


Thanks in advance