output - VBA Excel Printing data into Immediate Window about a range data to test understanding -
i wanting series of small tests helps builds understand work around small business problem of generating data in correct manner.
my first approach prove myself print (string data type) list of id's (using .value method) in immediate window of vbe can see list can build test afterwards.
my vba code @ moment shows define "custtest" named range a1:a100 in sheet 1
sub testranges() dim custrng range each custrng in range("custtest") print custrng.value next end sub
i thought of this
sub testranges() dim custrng range each custrng in range("custtest") custrng print .value end next end sub
this came error not sure has occured, compile error:- method not valid without suitable object.
any suggestions?
thanks, peter.
use: debug.print .value
instead of print .value
additional information: print
suitable use in immediate window. however, use ?
(question mark) there instead of print
Comments
Post a Comment