+ Reply to Thread
Results 1 to 12 of 12

Cycle throuhg rows on a sheet

  1. #1
    Forum Contributor
    Join Date
    12-08-2012
    Location
    USA
    MS-Off Ver
    Excel 365
    Posts
    190

    Cycle throuhg rows on a sheet

    i need the functions to cycle throuhg the rows on each sheet and output data in this format


    For Sheet X
    For I to Count total rows
    output

    specific Sheet!A4&CHAR(10)&
    Specific Sheet!B4&CHAR(10)&
    specific Sheet!C4&CHAR(10)&
    IF(ISBLANK(specific sheet!D4),"Det. 2014",Notostraca!D4&CHAR(10)&"Det. R. G. Ahlers 2014"))

    anyoen able to help?

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,243

    Re: Cycle throuhg rows on a sheet

    I don't know about anyone else but I don't understand what it is you are trying to do.

    However, maybe this will start you in the right direction ... or any direction.

    Please Login or Register  to view this content.

    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Contributor
    Join Date
    12-08-2012
    Location
    USA
    MS-Off Ver
    Excel 365
    Posts
    190

    Re: Cycle throuhg rows on a sheet

    Collection Sheet.xlsx

    here is my workbook
    what i want is data to look like the first cell on the label sheet..but the function has to check each of the sheets to gather all that data

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,243

    Re: Cycle throuhg rows on a sheet

    Like I said, didn't really follow your requirement.

    So, try:

    Please Login or Register  to view this content.

    Regards, TMS

  5. #5
    Forum Contributor
    Join Date
    12-08-2012
    Location
    USA
    MS-Off Ver
    Excel 365
    Posts
    190

    Re: Cycle throuhg rows on a sheet

    ok in your code how woudl i set the range to start at A4 instead of A1

    as in A4 is the first point a record would be founnd?

  6. #6
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,243

    Re: Cycle throuhg rows on a sheet

    As per your example, the data fields are in cells A4, B4, C4 and D4 on each sheet.

    On the Labels sheet, the label is created in the next free cell in column A, that is, starting in the cell after the heading "labels" and working down.

    The labels output exactly match your sample data. In that respect, your question has been answered.

    If I have understood your supplementary question correctly, you need to move the heading "labels" to cell A3 on the Labels sheet.

    Regards, TMS

  7. #7
    Forum Contributor
    Join Date
    12-08-2012
    Location
    USA
    MS-Off Ver
    Excel 365
    Posts
    190

    Re: Cycle throuhg rows on a sheet

    ok my bad i was mis understainding the code...
    when i run it i get blank cells adde dbecasue the shet hsa nothign on it yet..how would i account for that..im assuming an if statement right?

  8. #8
    Forum Contributor
    Join Date
    12-08-2012
    Location
    USA
    MS-Off Ver
    Excel 365
    Posts
    190

    Re: Cycle throuhg rows on a sheet

    when i have multiple rows on a sheet filled in wiht the data it only spits out the first row

  9. #9
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,243

    Re: Cycle throuhg rows on a sheet

    The original example code demonstrated looping through rows on each sheet. The second example just gets one row of data from each sheet, which appeared to be what was (not) present in your sample workbook.

    I suggest you have a go at combining the row loop into the sheet loop.

    Regards, TMS

  10. #10
    Forum Contributor
    Join Date
    12-08-2012
    Location
    USA
    MS-Off Ver
    Excel 365
    Posts
    190

    Re: Cycle throuhg rows on a sheet

    ah ok thx ill have a go at it

  11. #11
    Forum Contributor
    Join Date
    12-08-2012
    Location
    USA
    MS-Off Ver
    Excel 365
    Posts
    190

    Re: Cycle throuhg rows on a sheet

    Ok im lost woith what to do from her..i can get them to combine well
    Please Login or Register  to view this content.

  12. #12
    Forum Contributor
    Join Date
    12-08-2012
    Location
    USA
    MS-Off Ver
    Excel 365
    Posts
    190

    Re: Cycle throuhg rows on a sheet

    here is waht i got...but its not working perfectly

    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] Cycle Through A Series of Worksheets & Insert Rows, Then Special Paste Data
    By DDM64 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 12-26-2012, 10:45 PM
  2. [SOLVED] Cycle Through Specific Worksheets & Paste Data In Each Sheet
    By DDM64 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-18-2012, 11:59 PM
  3. [SOLVED] Cycle through a long set of output and select certain rows/columns for new sheets
    By matrix_machine in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-28-2012, 05:32 PM
  4. cycle through data from another sheet
    By vinnybear in forum Excel General
    Replies: 6
    Last Post: 02-11-2012, 11:34 AM
  5. [SOLVED] How do I keep result from 1 iteration cycle to use in next cycle?
    By sgl8akm in forum Excel General
    Replies: 0
    Last Post: 07-27-2006, 03:35 PM

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