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

Popular posts from this blog

hibernate - How to load global settings frequently used in application in Java -

python 3.x - Mapping specific letters onto a list of words -

objective c - Ownership modifiers with manual reference counting -