notebook vb
This commit is contained in:
@@ -18,8 +18,8 @@ FB_USER = "SYSDBA"
|
|||||||
FB_PASS = "masterkey"
|
FB_PASS = "masterkey"
|
||||||
FB_PORT = "3050"
|
FB_PORT = "3050"
|
||||||
|
|
||||||
SRC_DIR = Path(r"U:\externi")
|
SRC_DIR = Path(r"c:\medicusext")
|
||||||
BACKUP_DIR = Path(r"U:\externabackup")
|
BACKUP_DIR = Path(r"U:\medicusbackup")
|
||||||
|
|
||||||
MAIL_TO = "vladimir.buzalka@buzalka.cz"
|
MAIL_TO = "vladimir.buzalka@buzalka.cz"
|
||||||
|
|
||||||
|
|||||||
@@ -124,7 +124,8 @@ def hyperlink_cell(ws, row_i, col_i, cil_list, cil_radek, text, barva_hex):
|
|||||||
fill = PatternFill("solid", fgColor="FFFFFF") if row_i % 2 == 0 \
|
fill = PatternFill("solid", fgColor="FFFFFF") if row_i % 2 == 0 \
|
||||||
else PatternFill("solid", fgColor=barva_hex)
|
else PatternFill("solid", fgColor=barva_hex)
|
||||||
cell = ws.cell(row=row_i, column=col_i)
|
cell = ws.cell(row=row_i, column=col_i)
|
||||||
cell.value = f'=HYPERLINK("#{cil_list}!A{cil_radek}","{text}")'
|
cell.value = str(text)
|
||||||
|
cell.hyperlink = f'#{cil_list}!A{cil_radek}'
|
||||||
cell.font = Font(color="0000FF", underline='single')
|
cell.font = Font(color="0000FF", underline='single')
|
||||||
cell.fill = fill
|
cell.fill = fill
|
||||||
cell.border = ohraniceni
|
cell.border = ohraniceni
|
||||||
|
|||||||
Reference in New Issue
Block a user