+ Reply to Thread
Results 1 to 3 of 3

Creating an Array to output titles(text)

  1. #1
    Registered User
    Join Date
    01-06-2010
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    19

    Creating an Array to output titles(text)

    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.

  2. #2
    Forum Expert davegugg's Avatar
    Join Date
    12-18-2008
    Location
    WI, US
    MS-Off Ver
    2010
    Posts
    1,884

    Re: Creating an Array to output titles(text)

    You don't need an array to do that, you can go:

    Please Login or Register  to view this content.
    If you do want to use an array, since the array contains text you need to dim it as a string, not a double.
    Also:

    Please Login or Register  to view this content.
    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.

    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

  3. #3
    Registered User
    Join Date
    01-06-2010
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    19

    Re: Creating an Array to output titles(text)

    a big help, thank you!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1