excel - Cannot select range from another workbook -
i'm writing code on 1 workbook prompts user select data in workbook.
dim rng range set rng = application.inputbox(prompt:="please select range", title:="range select", type:=8) dim ws worksheets: set ws = worksheets("working")
the problem input dialog box when move other workbook select range remains behind in first workbook , cannot select range.
to select range in different workbook other active workbook, must first activate workbook , activate or select range .
Comments
Post a Comment