LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 109
Default How to index a variable in VBA

I am trying to create a loop that will enter data according to a loop but no
success:
I have location1,Location2 Location3 Variables Up to 50 How do i correct
this so it works?

For i= 1 to 50
location(i)=Worksheets(1).cells(i).value
Next i
End Sub

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
look up, match index? multi variable formulas Jason Excel Worksheet Functions 1 December 16th 09 03:33 PM
How do I use a variable as a reference to an array in INDEX Steve Haack Excel Worksheet Functions 6 July 29th 08 06:16 PM
Help on index addressing using variable sheets & cell references Greggers Excel Worksheet Functions 3 September 4th 07 02:38 PM
Using INDEX() to Locate Variable Data Shadowboy Excel Discussion (Misc queries) 4 August 21st 06 02:17 PM
Variable values in Index function mlkpied Excel Worksheet Functions 6 December 6th 04 11:38 PM


All times are GMT +1. The time now is 06:50 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"