+ Reply to Thread
Results 1 to 8 of 8

Generate rows in respect of values of a column

  1. #1
    Forum Contributor
    Join Date
    03-11-2013
    Location
    india
    MS-Off Ver
    Excel 2007
    Posts
    726

    Generate rows in respect of values of a column

    I have values in column E of my workbook

    i want to generate rows for its corresponding f g h and m column in sheet 2

    attaching a sample sheet also kindly assisst.

    regards
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Generate rows in respect of values of a column

    The code works on the sample attached. Make sure that you have the word "Month" next to month.
    Attached Files Attached Files

  3. #3
    Forum Contributor
    Join Date
    03-11-2013
    Location
    india
    MS-Off Ver
    Excel 2007
    Posts
    726

    Re: Generate rows in respect of values of a column

    The code is working fine sir

    but the problem is it is generating a new sheet everytime where as i want to generate the result in existing sheet2 only and if sheet2 is full it should generate result after clearing data of sheet2
    as further the results are linked with sheet2 only....in my workbook

  4. #4
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Generate rows in respect of values of a column

    If you do not want to clear the existing data before the code copies in the sheet, you need to remove (Comment) this line.

    .UsedRange.Offset(0).ClearContents
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    03-11-2013
    Location
    india
    MS-Off Ver
    Excel 2007
    Posts
    726

    Re: Generate rows in respect of values of a column

    Thank you sir...

  6. #6
    Forum Contributor
    Join Date
    03-11-2013
    Location
    india
    MS-Off Ver
    Excel 2007
    Posts
    726

    Re: Generate rows in respect of values of a column

    the code is generating rows for those columns also where repestive values aginst code is zero also which is not require

    if any column is blank or zero then the code should not generate a row against the code value column

    kindly modify the code

  7. #7
    Forum Contributor
    Join Date
    03-11-2013
    Location
    india
    MS-Off Ver
    Excel 2007
    Posts
    726

    Re: Generate rows in respect of values of a column

    the code is generating rows for those columns also where repestive values aginst code is zero also which is not require

    if any column is blank or zero then the code should not generate a row against the code value column

    kindly modify the code

  8. #8
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,538

    Re: Generate rows in respect of values of a column

    Try
    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Random Generate values of a column
    By jrable in forum Excel General
    Replies: 12
    Last Post: 11-14-2014, 02:39 PM
  2. How to auto generate values in a column?
    By balu.soln4biz in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-24-2014, 07:42 PM
  3. Macro to select rows with respect to highest value in column
    By gokzee in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-05-2012, 09:41 PM
  4. Replies: 3
    Last Post: 02-29-2012, 02:41 PM
  5. deleting reduntant rows in respect to one column
    By oscar123 in forum Excel General
    Replies: 2
    Last Post: 05-06-2008, 02:25 PM
  6. How to generate one long column from a series of rows?
    By Humbro in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-28-2007, 08:49 AM

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