Voorbeelden van VBA-code
1. Bedrag zonder BTW uitrekenen
Bedrag_incl_BTW = InputBox("Bedrag inclusief BTW")
Bedrag_excl_BTW = Bedrag_incl_BTW / 121 * 21
BTW = Bedrag_incl_BTW - Bedrag_excl_BTW
ActiveCell.Value = BTW
X. Rijen invoegen
Optie 1 (x aantal rijen invoegen via input in cellen H5 en H6)
Dim aantal As String
aantal = Range("H5").Value
beginrij = Range("H6").Value
laatsterij = aantal + beginrij - 1
Aantalrijen = beginrij & ":" & laatsterij
Rows(Aantalrijen).Select
Selection.Insert
ActiveCell.Select
Optie 2 (x aantal rijen invoegen via input in inputbox)
Dim aantal As Long
Dim beginrij As Long
beginrij = InputBox("Vanaf welke rij wil je de rijen invoegen?")
aantal = InputBox("Hoeveel rijen wil je invoegen?")
Aantalrijen = beginrij & ":" & aantal - 1 + beginrij
Rows(Aantalrijen).Select
Selection.Insert
ActiveCell.Select
3. Veelgestelde vragen
Klik hier en begin te typen. Eum fugiat quo voluptas nulla pariatur at vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate.
