Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default know when the job of print is completed?

... from another application a save the print job (in txt format) and my
problem is ...
Know when the job of print is finished

i import the finished file from (part of code):

sub import_file()
Dim RIGA As String
Dim var_DATACONT As Date
Dim var_VAL As Date

Dim Vfile
iFile = FreeFile()
Vfile = ("C:\EPF\L0785.EPF")

Open Vfile For Input As #1

While Not EOF(1)
Line Input #1, RIGA
If Len(Trim(RIGA)) 0 Then
If InStr(Mid(RIGA, 1, 12), "DATA CONTAB.") 0 Then
var_DATACONT = Mid(RIGA, 15, 10)
End If
If InStr(Mid(RIGA, 1, 11), "DIPENDENZA:") 0 Then
var_DIP = Format(Mid(RIGA, 14, 4), "#00000")
End If
If InStr(Mid(RIGA, 5, 1), "-") 0 And InStr(Mid(RIGA, 13, 1), "-") 0
Then
var_COD = Mid(RIGA, 1, 3)
End If
.............

If i take this file from the VBA import command before the rpint job is
finished i recieve this msg " ATTENTION THE FILE IS OCCUPED from
another application...) ecc...


---
Message posted from http://www.ExcelForum.com/

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Time Completed hawaiiham2000 Excel Worksheet Functions 7 February 28th 09 12:33 AM
Finding the last completed row Eric Excel Discussion (Misc queries) 2 December 12th 08 10:45 PM
If A1=X cell d1 must be completed before row 2 can be used Paul07 Excel Worksheet Functions 1 September 26th 08 06:59 AM
IF completed THEN invisible lmv Excel Discussion (Misc queries) 9 November 22nd 06 03:35 PM
How do I add rows to a completed worksheet? skeener Excel Worksheet Functions 0 January 5th 05 04:43 PM


All times are GMT +1. The time now is 10:14 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"