mountainman88
Board Regular
- Joined
- Jun 22, 2019
- Messages
- 109
- Office Version
- 2016
- Platform
- Windows
I want to quickly put a range of cells containing text into an array called blockstrings. Why does the following not work?:
blockstrings = Worksheets("VBAinputs").Range("a5:a" & blocknameslastrow)
instead i have to use the following to make it work:
Worksheets("VBAinputs").Range("a1").Select
blockstrings = Range("a5:a" & blocknameslastrow)
thanks
blockstrings = Worksheets("VBAinputs").Range("a5:a" & blocknameslastrow)
instead i have to use the following to make it work:
Worksheets("VBAinputs").Range("a1").Select
blockstrings = Range("a5:a" & blocknameslastrow)
thanks