[Python] Why doesn't dynamic string work with xl() function in 'Python in Excel'?

Discussão em 'Python' iniciado por Stack, Abril 5, 2025.

  1. Stack

    Stack Membro Participativo

    I try Python in Excel.

    The following code works well.

    label = xl("AH2")


    But the following code does not work.

    row_label = '2'
    col_s = 'AH'
    label = xl(f"{col_s}{row_label}")


    What is wrong with the second code?

    Continue reading...

Compartilhe esta Página