Warme bakkertje
Meubilair
- Lid geworden
- 13 apr 2008
- Berichten
- 7.539
- Besturingssysteem
- Windows 10
- Office versie
- Office 2016 Prof Plus EN
Wijzig ActiveSheet in Sheets("JO-Form")
Bekijk de onderstaande video om te zien hoe je onze site als een web app op je startscherm installeert.
Opmerking: Deze functie is mogelijk niet beschikbaar in sommige browsers.
Privacywetgeving
Het is bij Helpmij.nl niet toegestaan om persoonsgegevens in een voorbeeld te plaatsen. Alle voorbeelden die persoonsgegevens bevatten zullen zonder opgaaf van reden verwijderd worden. In de vraag zal specifiek vermeld moeten worden dat het om fictieve namen gaat.
Private Sub CommandButton1_Click()
c00 = "\Job order " & Sheets(1).Range("A" & Rows.Count).End(xlUp).Value & ".pdf"
If Dir(ThisWorkbook.Path & c00) <> "" Then
MsgBox "PDF bestand bestaat al. Geef een ander nummer", vbInformation, "In gebruik"
Else
With Sheets("JO-Form")
With .Cells(23, 3)
.ClearContents
.Value = Sheets(1).Range("A" & Rows.Count).End(xlUp).Value
End With
.ExportAsFixedFormat xlTypePDF, ThisWorkbook.Path & c00
.ExportAsFixedFormat xlTypePDF, CreateObject("scripting.filesystemobject").getfolder(ThisWorkbook.Path).parentfolder & "\Download" & c00
End With
End If
End Sub
Private Sub CommandButton1_Click()
c00 = "\Job order " & Sheets(1).Range("A" & Rows.Count).End(xlUp).Value & ".pdf"
If Dir(ThisWorkbook.Path & c00) <> "" Then
MsgBox "PDF bestand bestaat al. Geef een ander nummer", vbInformation, "In gebruik"
Else
With Sheets("JO-Form")
.Cells(23, 3) = Sheets(1).Range("A" & Rows.Count).End(xlUp).Value
.ExportAsFixedFormat xlTypePDF, ThisWorkbook.Path & "\Job order " & ThisWorkbook.Sheets(1).Range("A" & Rows.Count).End(xlUp).Value & ".pdf"
.ExportAsFixedFormat xlTypePDF, ThisWorkbook.Path & "\..\Download\Job order " & ThisWorkbook.Sheets(1).Range("A" & Rows.Count).End(xlUp).Value & ".pdf"
End With
End If
End Sub
Private Sub CommandButton1_Click()
Application.ScreenUpdating = False
c00 = "\Job order " & Sheets(1).Range("A" & Rows.Count).End(xlUp).Value & ".pdf"
If Dir(ThisWorkbook.Path & c00) <> "" Then
MsgBox "PDF bestand bestaat al. Geef een ander nummer", vbInformation, "In gebruik"
Else
With Sheets("JO-Form")
.Visible = True
.Cells(23, 3) = Sheets(1).Range("A" & Rows.Count).End(xlUp).Value
.ExportAsFixedFormat xlTypePDF, ThisWorkbook.Path & "\Job order " & ThisWorkbook.Sheets(1).Range("A" & Rows.Count).End(xlUp).Value & ".pdf"
.ExportAsFixedFormat xlTypePDF, ThisWorkbook.Path & "\..\Download\Job order " & ThisWorkbook.Sheets(1).Range("A" & Rows.Count).End(xlUp).Value & ".pdf"
.Visible = False
End With
End If
Application.ScreenUpdating = True
End Sub
Dat heb je me ook niet horen/zien zeggen. Ik zei dat; "een bezoeker met desbetreffende status wel wat ruimdenkender mag zijn dan wordt getoond (met alle respect natuurlijk)."En het wil natuurlijk niet zeggen omdat mijn status Giga senior is dat ik overal verstand van heb.
We gebruiken essentiële cookies om deze site te laten werken, en optionele cookies om de ervaring te verbeteren.