I'm trying to use the function LineInput in VBA in Word2007 and it doesn't
work. Is my syntax corect or does the function not exist any longer?
TIA
LineInput FileIn, varRecordLayout
Jezebel - 24 Aug 2006 23:09 GMT
Do you get an error message, or does your variable not end up with what you
expect?
> I'm trying to use the function LineInput in VBA in Word2007 and it doesn't
> work. Is my syntax corect or does the function not exist any longer?
>
> TIA
>
> LineInput FileIn, varRecordLayout
Karl E. Peterson - 24 Aug 2006 23:18 GMT
> I'm trying to use the function LineInput in VBA in Word2007 and it
> doesn't work. Is my syntax corect or does the function not exist any
> longer?
>
> LineInput FileIn, varRecordLayout
That syntax wouldn't work in any version of MSBasic -- Line Input has always
been a two-word directive. (One best avoided, in nearly all cases, but
that's another thread!)
No idea whether the historic syntax is supported in that version of VBA, but
I would suspect so.

Signature
Working without a .NET?
http://classicvb.org/