1. L

    close workbook - dynamically

    Hi I want to ask user to enter workbook number to close and then close that workbook accordingly. So I wrote the code below, but did not run. Any help would be appreciated. Thank you. Sub mywb2() Dim x As Integer x = InputBox("which workbook") "workbooks" &x.close End Sub

Some videos you may like

This Week's Hot Topics