+ Reply to Thread
Results 1 to 12 of 12

Generate report with no blank cells

  1. #1
    Forum Contributor
    Join Date
    02-21-2007
    MS-Off Ver
    Microsoft 365 Apps for enterprise
    Posts
    389

    Generate report with no blank cells

    Hello,

    I need to create a macro to copy the entire D row from the tab "generate" to the tab "report".

    This is not the reaseon I create a new Tread :-D.

    I need the data to be copied as paste value and without blank cells into the report worksheet.

    In fact in the "generate" worksheet in D column, I generate a report where data can change. So I need when I click on the macro button "Generate Report" to copy the current data in D column into the "Report" worksheet. The most would be to have the date of the day then the report without blank cell.
    As I need to keep a history I would need the report to be copied in the column with no data.

    To be clearer I attached a sample. Just imagine that I have push the button "Generate Report" the 10/23/2013 and push it again the 10/24/2013. I would need the data to ba as it is in the Report worksheet.

    I hope I have been clear enough. If not please do not hesitate to contact me.

    many thanks in advance.
    Graig
    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 report with no blank cells

    Try the attached.
    Attached Files Attached Files
    Last edited by AB33; 10-24-2013 at 05:49 AM.

  3. #3
    Forum Contributor
    Join Date
    02-21-2007
    MS-Off Ver
    Microsoft 365 Apps for enterprise
    Posts
    389

    Re: Generate report with no blank cells

    It is almost what I need

    When I put a formula in the column D The script doesn't work properly (which is why I need to copy and paste values because I have in the original file formulas)
    Also I need to have the date of the day at the top of the row. I thought about doing a dim of the date of the day =NOW() but I do not know how to implement it into your macro

    Thanks for your help !
    Graig

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

    Re: Generate report with no blank cells

    I do not know which one is not working.
    The code is very simple. Copy all non-empty cells in column D- values ONLY in to next empty column.
    I am not sure why are you referring to as "Formula"
    I can add today's date to be copied in to report sheet D1.

  5. #5
    Forum Contributor
    Join Date
    02-21-2007
    MS-Off Ver
    Microsoft 365 Apps for enterprise
    Posts
    389

    Re: Generate report with no blank cells

    If you type a formula instead of a player or even enter above "Group A" the =NOW() to get the date. The entered formulas in the D column are not copied in the "report" worksheet

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

    Re: Generate report with no blank cells

    Is your question regarding copying today's date in to D1 or the rest of the code is not working? If it is the former, as I said on my last post, I can add a line which copies the date.
    Infact, you can add this line just before the application cut line.

    Please Login or Register  to view this content.

  7. #7
    Forum Contributor
    Join Date
    02-21-2007
    MS-Off Ver
    Microsoft 365 Apps for enterprise
    Posts
    389

    Re: Generate report with no blank cells

    I am sorry I do not manage to make it work.

    I attach the "original" file. In the column A:A I just copy past my generated report or even remove manually the players OR add exceptions in the "except" worksheet.

    As you can see in the column "D" I have formulas to check whether players should be taking out of the report.

    Can you please help me to make it work?

    Many thanks in advance,
    Graig
    Attached Files Attached Files

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

    Re: Generate report with no blank cells

    Okay,
    I know the issue.
    You do not have non-blank cells, but have formula with blank values.
    It can easily be done by a loop, but there is a short enumerate number code (Forgotten it now) which can copy these type of data.
    So, If you are not in a rush, I need to dig and find the code. If you are, I will do the loop.

  9. #9
    Forum Contributor
    Join Date
    02-21-2007
    MS-Off Ver
    Microsoft 365 Apps for enterprise
    Posts
    389

    Re: Generate report with no blank cells

    I am not in a rush ! Thanks a lot for your help. I appreciate.
    Graig

  10. #10
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: Generate report with no blank cells

    Hi AB and Graig,
    maybe so (see attachment)
    Attached Files Attached Files

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

    Re: Generate report with no blank cells

    Graig,
    I was unable to find the enumerate number and has asked Nilem.

    He has nailed it down. This avoids loop which was my intention.

    Thanks Nilem!

  12. #12
    Forum Contributor
    Join Date
    02-21-2007
    MS-Off Ver
    Microsoft 365 Apps for enterprise
    Posts
    389

    Re: Generate report with no blank cells

    It is just perfect !! Thank you both!
    Graig

+ 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. Generate Report using vba
    By aman1234 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-07-2010, 10:22 AM
  2. Excel 2007 : Need to generate a report
    By Zipmeister in forum Excel General
    Replies: 0
    Last Post: 01-20-2010, 08:51 AM
  3. Find blank cells and generate report
    By Rick_Stanich in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-03-2009, 12:29 PM
  4. Generate Report
    By Peter Carlson in forum Excel General
    Replies: 0
    Last Post: 04-10-2006, 01:55 PM
  5. generate report
    By raisin in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-07-2005, 01:47 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