Results 1 to 6 of 6

Thread: Excel cell fill example

  1. #1

    Thread Starter
    Frenzied Member TheBionicOrange's Avatar
    Join Date
    Apr 2001
    Location
    Cardiff, UK
    Posts
    1,818

    Question Excel cell fill example

    Is there a neat way of saying "fill cells A1 to A12 with dashes (-)" ?
    If so ... can someone enlighten me ... thanks a lot !

  2. #2
    Frenzied Member DKenny's Avatar
    Join Date
    Sep 2005
    Location
    on the good ship oblivion..
    Posts
    1,171

    Re: Excel cell fill example

    VB Code:
    1. Dim rngOrange As Range
    2.    
    3.     Set rngOrange = ThisWorkbook.Worksheets("Test").Range("A1:A12")
    4.    
    5.     rngOrange.Value = "-"
    Declan

    Don't forget to mark your Thread as resolved.
    Take a moment to rate posts that you think are helpful

  3. #3

    Thread Starter
    Frenzied Member TheBionicOrange's Avatar
    Join Date
    Apr 2001
    Location
    Cardiff, UK
    Posts
    1,818

    Re: Excel cell fill example

    See ... I knew there would be !

    Cheers Kenny

  4. #4

    Thread Starter
    Frenzied Member TheBionicOrange's Avatar
    Join Date
    Apr 2001
    Location
    Cardiff, UK
    Posts
    1,818

    Re: Excel cell fill example

    Actually thats not "quite" what I had in mind .. but its close enough for me to use.

    What I was after was the entire cell to be filled with "-" characters, so when I set a range it would give me a continuous dotted line, but I can use what you gave me as its neater than what I had.

  5. #5
    Frenzied Member DKenny's Avatar
    Join Date
    Sep 2005
    Location
    on the good ship oblivion..
    Posts
    1,171

    Re: Excel cell fill example

    If you need a continuous dotted line, why don't you use the borders of the range?
    Declan

    Don't forget to mark your Thread as resolved.
    Take a moment to rate posts that you think are helpful

  6. #6

    Thread Starter
    Frenzied Member TheBionicOrange's Avatar
    Join Date
    Apr 2001
    Location
    Cardiff, UK
    Posts
    1,818

    Re: Excel cell fill example

    That would be the most sensible idea ... but I've just realised the problem I've got with this is that all the lines are "drawn" as the entire shooting match is imported into Excel from a text file !
    I had a problem where if I added one too many suddenly the line looked miles bigger when dumped in Excel.
    Its all very crude (and pretty naff to be honest), so I'm not going to waste any more time with it. They can live with it !

Posting Permissions

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



Click Here to Expand Forum to Full Width