+ Reply to Thread
Results 1 to 3 of 3

Rows Spacing, Column Spacing

  1. #1
    Registered User
    Join Date
    05-20-2008
    Posts
    20

    Rows Spacing, Column Spacing

    The code below shows:
    ColA
    Qty1
    Qty2
    Qty3

    can I modify it to show
    ColA -ColB-ColC
    Qty1
    ------Qty2
    -----------Qty3

    Please Login or Register  to view this content.

    The code below shows:
    ColA-ColB-ColC
    Qty1-Qty2-Qty3


    can I modify it to show:
    ColA -ColB-ColC
    Qty1
    ------Qty2
    -----------Qty3
    Please Login or Register  to view this content.

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258
    Hello Pukka83,

    Here are 2 macros to do what you want. Change the variable values in red to match what you need.
    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Sincerely,
    Leith Ross

  3. #3
    Registered User
    Join Date
    05-20-2008
    Posts
    20
    thank you so much! I couldn't get it the way I want the code to be...
    do you mind to help me take a look at my code? It's in the nvT Sheet.
    I'm getting this:
    http://www.geocities.com/gjfeng/no.bmp
    the desired outcome is:
    http://www.geocities.com/gjfeng/yes.bmp

    The part which controls the qty value is:
    qty = Worksheets("db").Cells(intRow, 8).Value
    'Sheets("nvT").Range("c" & Columns.Count).End(xlUp)(2).Resize(, 1).Value = qty
    Worksheets("nvT").Range("IV7", Worksheets("nvT").Cells(7, Columns.Count).End(xlToLeft))(3).Value = qty


    link: http://www.geocities.com/gjfeng/protoV2.xls


    Please Login or Register  to view this content.
    Last edited by Pukka83; 05-26-2008 at 02:04 AM.

+ 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