Results 1 to 3 of 3

Thread: Storing Text Value From Cell To Array

  1. #1
    Member
    Join Date
    Aug 2012
    Posts
    72
    Rep Power
    13

    Question Storing Text Value From Cell To Array

    Hi.
    I have some cells with text, example:
    Adapter for concrete water tank 150mm FG BSP - 2 "

    I would store each text in each cell in a position of an array:
    Code:
    Dim arra (941) As String
    
    arra (a) = Cells (line 2). Text
    But the stored value is just "."
    Could anyone help me?
    Last edited by Excel Fox; 02-14-2013 at 12:13 PM. Reason: Code Tags

  2. #2
    Administrator Excel Fox's Avatar
    Join Date
    Mar 2011
    Posts
    1,402
    Rep Power
    10
    What does 'line 2' mean? Unless it is some variable (there shouldn't have been a space in the variable name) that contains a number, it isn't clear how you would get a '.' in your array. Maybe you want to post a sample file.
    A dream is not something you see when you are asleep, but something you strive for when you are awake.

    It's usually a bad idea to say that something can't be done.

    The difference between dream and aim, is that one requires soundless sleep to see and the other requires sleepless efforts to achieve

    Join us at Facebook

  3. #3
    Member
    Join Date
    Aug 2012
    Posts
    72
    Rep Power
    13
    Hi.

    i'm solvedthis way
    Code:
    ThisWorkbook.Sheets("INC").Copy Before:=oWks.Sheets(1)
    Thank you!!

Similar Threads

  1. Replies: 2
    Last Post: 05-30-2013, 07:28 PM
  2. Replies: 5
    Last Post: 03-09-2013, 09:01 AM
  3. Replies: 15
    Last Post: 01-04-2013, 03:26 PM
  4. Replies: 1
    Last Post: 08-21-2012, 07:36 PM
  5. Last Filled Cell Having Text
    By Excel Fox in forum Excel and VBA Tips and Tricks
    Replies: 5
    Last Post: 07-18-2011, 02:33 PM

Posting Permissions

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