37 lines
887 B
Python
37 lines
887 B
Python
import openpyxl
|
|
from openpyxl.styles import Font
|
|
|
|
def make_tabellen_ueberschrift():
|
|
|
|
workbook = openpyxl.Workbook()
|
|
|
|
tabelle1 = workbook.active
|
|
|
|
tabelle1['A1'] = 'Name'
|
|
tabelle1['B1'] = 'Vorname'
|
|
tabelle1['C1'] = 'Geburtsdatum'
|
|
tabelle1['D1'] = 'Hilfsorganisation'
|
|
tabelle1['E1'] = 'PLZ'
|
|
tabelle1['F1'] = 'Ort'
|
|
tabelle1['G1'] = 'Nationalität'
|
|
tabelle1['H1'] = 'Strasse'
|
|
tabelle1['I1'] = 'Kommt Datum'
|
|
tabelle1['J1'] = 'Kommt Zeit'
|
|
tabelle1['K1'] = 'Geht Datum'
|
|
tabelle1['L1'] = 'Geht Zeit'
|
|
tabelle1['M1'] = 'Position'
|
|
tabelle1['N1'] = 'Geschlecht'
|
|
|
|
schrift_fett = Font(bold=True)
|
|
for col in range(1, 15):
|
|
cell = tabelle1.cell(row=1, column=col)
|
|
cell.font = schrift_fett
|
|
|
|
workbook.save('Registrierliste.xlsx')
|
|
|
|
def main():
|
|
|
|
make_tabellen_ueberschrift()
|
|
|
|
if __name__ == '__main__':
|
|
main() |