Hi, i am trying to create an Array that will print the stock number as a title on row A. e.g. "Stock 1" in A2 "Stock 2" in A3...etc
here is what i have attempted:
![]()
Please Login or Register to view this content.
Hi, i am trying to create an Array that will print the stock number as a title on row A. e.g. "Stock 1" in A2 "Stock 2" in A3...etc
here is what i have attempted:
![]()
Please Login or Register to view this content.
Last edited by mashoutposse; 01-08-2010 at 02:26 PM.
You don't need an array to do that, you can go:
If you do want to use an array, since the array contains text you need to dim it as a string, not a double.![]()
Please Login or Register to view this content.
Also:
makes the tenth member of the array change each time. To have each the number of array correspond to the Stock number, you'd want:![]()
Please Login or Register to view this content.
Don't forget array's first number starts at zero. To make it 1, put![]()
Please Login or Register to view this content.
At the top of the module.![]()
Please Login or Register to view this content.
Hope that helps
Is your code running too slowly?
Does your workbook or database have a bunch of duplicate pieces of data?
Have a look at this article to learn the best ways to set up your projects.
It will save both time and effort in the long run!
Dave
a big help, thank you!
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks