Hi to all,
I need to pass a value from a cell as a parameter (how many copies to print) but the code below does nothing.
No errors but also no execution whatsoever.
Dim numero_copie As Integer
numero_copie = Range("E4").Value
ExecuteExcel4Macro "PRINT(1,,,numero_copie,,,,,,,,2,,,TRUE,,FALSE)"
I also tried this:
ExecuteExcel4Macro "PRINT(1,,,""numero_copie"",,,,,,,,2,,,TRUE,,FALSE)"
Same: nothing.
What am I doing wrong?
Thank you guys!
I need to pass a value from a cell as a parameter (how many copies to print) but the code below does nothing.
No errors but also no execution whatsoever.
Dim numero_copie As Integer
numero_copie = Range("E4").Value
ExecuteExcel4Macro "PRINT(1,,,numero_copie,,,,,,,,2,,,TRUE,,FALSE)"
I also tried this:
ExecuteExcel4Macro "PRINT(1,,,""numero_copie"",,,,,,,,2,,,TRUE,,FALSE)"
Same: nothing.
What am I doing wrong?
Thank you guys!