Jeg takker mange gange
hva faen skulle vores lille lokal
sommerhusudlejnings bureau have gjort uden jer
Mvh
Jacob
> Kommandoen Dir() er god til dette.
> Prøv med denne lille ændring.
> >
> > Sub Kort()
> >
> > ' Skifter standardprinter til "HP LaserJet 4050 - Bakke 3"
> > Application.ActivePrinter = "HP LaserJet 4050 - Bakke 3"
> >
> > Dim myFile As String
> > Dim Txt As String
> > myFile = "c:\kort.txt"
> > Open myFile For Input As #1
> > Do While Not EOF(1)
> > Input #1, Txt
>
> If Dir(txt)<>"" Then
>
> > Documents.Open Txt
> > ActiveDocument.PrintOut False
> > ActiveDocument.Close wdDoNotSaveChanges
>
> End If
>
> > Loop
> > Close #1
> >
> > ' Skifter standardprinter til "HP LaserJet 4050 - Bakke 2"
> > Application.ActivePrinter = "HP LaserJet 4050 - Bakke 2"
> >
> > End Sub
> >
>
>
> Mvh Mads
>
>