View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Smitch Smitch is offline
external usenet poster
 
Posts: 3
Default Assigning an array to range object?

Hi,

This seems like a silly question but I cant seem to find the answer€¦

In VBA I can do this
Dim wks As Worksheet
Dim rng As Range

Set wks = ThisWorkbook.ActiveSheet
Set rng = wks.Range("A1").Resize(1, 5)
rng = Array("One", "Two", "Three", "Four", "Five")

How do I do the same in VB.NET (2005)?

Thank you,

~Smitch