serpent xx
Gebruiker
- Lid geworden
- 2 mei 2008
- Berichten
- 201
Wie kan mij helpen met het volgende.
In verband met de overgang naar Windows 10 loopt mijn macro vast op "Environ$". Ik heb onderstaand een gedeelte van deze macro bijgevoegd. Kan iemand mij aangeven wat ik moet doen om dit op te lossen?
Moet ik deze eviron variabelen nog toevoegen in Windows 10?
TempFilePath = Environ$("temp") & ""
' Now append a date and time stamp
' in your pdf file name. Naming convention
' can be changed based on your requirement.
TempFileName = "werkenlijst per " & Format(Now, "dd-mmm-yy") & ".pdf"
'Complete path of the file where it is saved
FileFullPath = TempFilePath & TempFileName
'Now Export the Activesshet as PDF with the given File Name and path
On Error GoTo err
With ActiveSheet
.ExportAsFixedFormat _
Type:=xlTypePDF, _
Filename:=FileFullPath, _
Quality:=xlQualityStandard, _
IncludeDocProperties:=True, _
IgnorePrintAreas:=False, _
OpenAfterPublish:=False
End With
In verband met de overgang naar Windows 10 loopt mijn macro vast op "Environ$". Ik heb onderstaand een gedeelte van deze macro bijgevoegd. Kan iemand mij aangeven wat ik moet doen om dit op te lossen?
Moet ik deze eviron variabelen nog toevoegen in Windows 10?
TempFilePath = Environ$("temp") & ""
' Now append a date and time stamp
' in your pdf file name. Naming convention
' can be changed based on your requirement.
TempFileName = "werkenlijst per " & Format(Now, "dd-mmm-yy") & ".pdf"
'Complete path of the file where it is saved
FileFullPath = TempFilePath & TempFileName
'Now Export the Activesshet as PDF with the given File Name and path
On Error GoTo err
With ActiveSheet
.ExportAsFixedFormat _
Type:=xlTypePDF, _
Filename:=FileFullPath, _
Quality:=xlQualityStandard, _
IncludeDocProperties:=True, _
IgnorePrintAreas:=False, _
OpenAfterPublish:=False
End With