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

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -