Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 05-29-2018, 01:27 PM
p45cal's Avatar
p45cal p45cal is offline Generating / exporting a report summarizing info in a worksheet Windows 10 Generating / exporting a report summarizing info in a worksheet Office 2016
Expert
 
Join Date: Apr 2014
Posts: 956
p45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond repute
Default

A guess.

Select only a single block of cells NOT including date headers row, nor clients column:
Code:
Sub blah()
Set myRange = Selection
Set SceSht = Selection.Parent
Set NewSht = Sheets.Add
Set Destn = NewSht.Range("A2")
For Each rw In myRange.Rows
  If Application.CountBlank(rw) < rw.Cells.Count Then
    Destn.Value = SceSht.Cells(rw.Row, 3).Value
    Set Destn = Destn.Offset(1)
    For Each cll In rw.Cells
      If Len(cll.Value) > 0 Then
        Destn.Value = SceSht.Cells(3, cll.Column).Value
        cll.Copy Destn.Offset(, 1) 'this also copies comments but you can remove them en masse later.
        Destn.Offset(, 2).Value = cll.Comment.Text
        Set Destn = Destn.Offset(1)
      End If
    Next cll
  End If
Next rw
End Sub

Reply With Quote
Reply

Tags
export, report



Similar Threads
Thread Thread Starter Forum Replies Last Post
Filename options when saving in Word 2013 - using report number at top of a report ? swayzak Word 1 09-08-2017 08:54 AM
Generating / exporting a report summarizing info in a worksheet Not all fields are exported to the Baseline Cost Report - Visual Report Rowena Project 3 05-30-2016 04:24 PM
Generating / exporting a report summarizing info in a worksheet Summarizing data in a workbook which the sheets contain verndor names in different orders. pad Excel 3 10-14-2015 07:33 PM
Automation Process of Schedule Report Output and Report Check Score Card ! ozman86 Word VBA 1 11-19-2014 11:52 PM
Generating / exporting a report summarizing info in a worksheet arrows remain between task bars, but predecessor info disappears from task info Antares Project 1 12-14-2011 09:19 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 08:27 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft