only by a couple minutes. That's the time it took you to add the check of
the input .
"JW" wrote:
> ACK! Peter beat me to it. 
>
> -Jeff-
> JW wrote:
> > Dim fInput As String
> > fInput = InputBox("Enter the file name", "Title Here")
> > If fInput = "" Or fInput = False Then Exit Sub
> > ActiveCell.FormulaR1C1 = _
> > "=IF(ISNA(VLOOKUP(RC[-8],'N:\1._Document_Version_Control_Log
> > \Logs\" & fInput & ".xls'!DirName,1,FALSE)),""This is a new or
> > modified Dir "",""Not a new Dir"")"
> >
> > etradeg...@hotmail.com wrote:
> > > Here is s snip of the code that I want to be able to enter a variable
> > > into via a Input Box for the user to enter.
> > >
> > > The piece I want to enter is the 20070904log.xls bit as this changes
> > > on a daily basis.
> > >
> > > ActiveCell.FormulaR1C1 = _
> > > "=IF(ISNA(VLOOKUP(RC[-8],'N:\1._Document_Version_Control_Log
> > > \Logs\20070904Log.xls'!DirName,1,FALSE)),""This is a new or modified
> > > Dir "",""Not a new Dir"")"
> > >
> > > So any (polite!) suggestions would be welcome.
> > >
> > > Thank you
> > >
> > > Mark
>
>