Can I abbrevate the following (would I Dim and Set it as aRange?)
hi, you can use Set to set a reference, e.g.
Dim rng as Range
Set rng = AccRep.Sheets("Volumes").Cells.find()
rng.offset(0,1)=1
rng.Offset(0,2)=2
rng must be a Range, a String won`t work.
stefan
On 18 Aug., 12:18, Simon wrote:
AccRep.Sheets("Volumes").Cells.Find("latest")
Rather than using this many times in the code I thought I could define
it as a Rng or Path or String or something?
Which would I use, whats the different between a Path and a String.
Thanks VBA (virtually beginner amateur)
|