PC Review


Reply
Thread Tools Rate Thread

How to create a macro to generate report using advanced filter

 
 
exploringmacro
Guest
Posts: n/a
 
      16th Jun 2009
Hello,

Can somebody help me.

I'm creating a macro, wherein, I have a workbook with Sheet name "Finishes
Checklists" (see below data example), I need to run the report using Advanced
Filter, where all rows with "N" will only show on the report, but the report
must be on a new workbook then will prompt the user to save that workbook.

FINISHES Checklists Template

A B C D
(Column)
Location Item Completed Defects
Description
Y/N

Dining Ceiling N W5 - damage
Lobby Wall Y


FINISHES Report (after running Macro, on new workbook)

A B D (Column)
Location Item Defects Description

Dining Ceiling W5 - damage

Thank you.

 
Reply With Quote
 
 
 
 
Bernie Deitrick
Guest
Posts: n/a
 
      16th Jun 2009
exploringmacro,

I have assumed that your data table starts in cell A1 of sheet "Finishes Checklists" and is
contiguous (no completely blank rows or columns)

HTH,
Bernie
MS Excel MVP

Sub MacroForExploringMacro()
Dim myS As Worksheet
Dim myC As Worksheet
Dim myR As Range

Set myS = Worksheets("Finishes Checklists")

On Error Resume Next
Worksheets("Finishes Report").Delete

Set myC = Sheets.Add(Type:="Worksheet")
myC.Name = "Finishes Report"

Set myR = myS.Range("A1").CurrentRegion
myR.AutoFilter Field:=3, Criteria1:="N"
myR.SpecialCells(xlCellTypeVisible).Copy myC.Range("A1")
myS.ShowAllData
myC.Columns(3).Delete
myC.Move

ActiveWorkbook.SaveAs Application.GetSaveAsFilename _
("Finishes Report - items to be completed.xls")
End Sub

"exploringmacro" <(E-Mail Removed)> wrote in message
news:E5902FDF-A1B9-4703-928A-(E-Mail Removed)...
> Hello,
>
> Can somebody help me.
>
> I'm creating a macro, wherein, I have a workbook with Sheet name "Finishes
> Checklists" (see below data example), I need to run the report using Advanced
> Filter, where all rows with "N" will only show on the report, but the report
> must be on a new workbook then will prompt the user to save that workbook.
>
> FINISHES Checklists Template
>
> A B C D
> (Column)
> Location Item Completed Defects
> Description
> Y/N
>
> Dining Ceiling N W5 - damage
> Lobby Wall Y
>
>
> FINISHES Report (after running Macro, on new workbook)
>
> A B D (Column)
> Location Item Defects Description
>
> Dining Ceiling W5 - damage
>
> Thank you.
>



 
Reply With Quote
 
exploringmacro
Guest
Posts: n/a
 
      17th Jun 2009
Hi Bernie,

Thanks for your reply.

My data didnt start from A1. Below is the info.

A14 = COMMAND BUTTON
A518 = REPORT INFORMATION (PROJECT NAME, ADDRESS, BLK NO, INSP NO, ETC)
C19:C20 = CRITERIA RANGE (A19=COMPLETED, A20=Y/N)
A1919 = HEADER (LOCATION, ITEM, COMPLETED,DEFECTS)
C20 = Y/N
A21nxx = DATA FOR REPORTING

OBJECTIVE:
TO PREPARE THE INSPECTION REPORT BASED ON THE FINISHES CHECKLISTS WHERE IN
THE ANSWER IS "N" AND COPY ALL THE INFORMATION FROM FINISHES CHECKLISTS
WORKSHEET <A5nxx> TO NEW WORKBOOK WITH WORKSHEET NAME AS FINISHES REPORT
EXCEPT THE COLUMN C (DELETE COLUMN C), TO SHOW THE FINISHES REPORT THEN SAVE
THE FILE AS WHATEVER FILE NAME.


COLUMN A COLUMN B COLUMN C COLUMN D
R19 LOCATION ITEM COMPLETED DEFECTS DESCRIPTION
R20 Y / N
R21 FAMILY HALL FLOOR N F2- Consistent
colour tone ( Tonality )
R22 MASTER BATH WALL N W17 - Consistent
finished texture
R23 DINING CEILING Y

CAN ONLY PRINT THE ROWS AND COLUMNS WITH THE INFORMATION?

THANKS FOR YOUR HELP.



"Bernie Deitrick" wrote:

> exploringmacro,
>
> I have assumed that your data table starts in cell A1 of sheet "Finishes Checklists" and is
> contiguous (no completely blank rows or columns)
>
> HTH,
> Bernie
> MS Excel MVP
>
> Sub MacroForExploringMacro()
> Dim myS As Worksheet
> Dim myC As Worksheet
> Dim myR As Range
>
> Set myS = Worksheets("Finishes Checklists")
>
> On Error Resume Next
> Worksheets("Finishes Report").Delete
>
> Set myC = Sheets.Add(Type:="Worksheet")
> myC.Name = "Finishes Report"
>
> Set myR = myS.Range("A1").CurrentRegion
> myR.AutoFilter Field:=3, Criteria1:="N"
> myR.SpecialCells(xlCellTypeVisible).Copy myC.Range("A1")
> myS.ShowAllData
> myC.Columns(3).Delete
> myC.Move
>
> ActiveWorkbook.SaveAs Application.GetSaveAsFilename _
> ("Finishes Report - items to be completed.xls")
> End Sub
>
> "exploringmacro" <(E-Mail Removed)> wrote in message
> news:E5902FDF-A1B9-4703-928A-(E-Mail Removed)...
> > Hello,
> >
> > Can somebody help me.
> >
> > I'm creating a macro, wherein, I have a workbook with Sheet name "Finishes
> > Checklists" (see below data example), I need to run the report using Advanced
> > Filter, where all rows with "N" will only show on the report, but the report
> > must be on a new workbook then will prompt the user to save that workbook.
> >
> > FINISHES Checklists Template
> >
> > A B C D
> > (Column)
> > Location Item Completed Defects
> > Description
> > Y/N
> >
> > Dining Ceiling N W5 - damage
> > Lobby Wall Y
> >
> >
> > FINISHES Report (after running Macro, on new workbook)
> >
> > A B D (Column)
> > Location Item Defects Description
> >
> > Dining Ceiling W5 - damage
> >
> > Thank you.
> >

>
>
>

 
Reply With Quote
 
exploringmacro
Guest
Posts: n/a
 
      17th Jun 2009
Hello Mr. Bernie,

Below is the macro that I've created, can you please check what went wrong.
What happen is, it only open a new workbook which is correct, but nothing
inside. What I need is to copy all information from Finishes Checklists where
in the Column C = N, except Column C and except A14 (dont require in the
Finishes Report).

Sub GenFinReport()

Dim myS As Worksheet
Dim myC As Worksheet
Dim myR As Range

Set myS = Worksheets("Finishes Checklists")

On Error Resume Next
Worksheets("Finishes Report").Delete

Set myC = Sheets.Add(Type:="Worksheet")
myC.Name = "Finishes Report"

'criteria range'
Set myR = myS.Range("D19") = "Completed"
Set myR = myS.Range("D20") = "N"

myS.Range("A1:E194").AdvancedFilter _
Action:=xlFilterCopy, _
CriteriaRange:=myS.Range("D1920"), _
CopyToRange:=myC.Range("A1:E194"), _
Unique:=False

myR.SpecialCells(xlCellTypeVisible).Copy myC.Range("A1:E194")
myS.ShowAllData
myC.Columns("D").Delete
myC.Move

ActiveWorkbook.SaveAs Application.GetSaveAsFilename _
("Finishes Report - items to be completed.xls")

End Sub


"Bernie Deitrick" wrote:

> exploringmacro,
>
> I have assumed that your data table starts in cell A1 of sheet "Finishes Checklists" and is
> contiguous (no completely blank rows or columns)
>
> HTH,
> Bernie
> MS Excel MVP
>
> Sub MacroForExploringMacro()
> Dim myS As Worksheet
> Dim myC As Worksheet
> Dim myR As Range
>
> Set myS = Worksheets("Finishes Checklists")
>
> On Error Resume Next
> Worksheets("Finishes Report").Delete
>
> Set myC = Sheets.Add(Type:="Worksheet")
> myC.Name = "Finishes Report"
>
> Set myR = myS.Range("A1").CurrentRegion
> myR.AutoFilter Field:=3, Criteria1:="N"
> myR.SpecialCells(xlCellTypeVisible).Copy myC.Range("A1")
> myS.ShowAllData
> myC.Columns(3).Delete
> myC.Move
>
> ActiveWorkbook.SaveAs Application.GetSaveAsFilename _
> ("Finishes Report - items to be completed.xls")
> End Sub
>
> "exploringmacro" <(E-Mail Removed)> wrote in message
> news:E5902FDF-A1B9-4703-928A-(E-Mail Removed)...
> > Hello,
> >
> > Can somebody help me.
> >
> > I'm creating a macro, wherein, I have a workbook with Sheet name "Finishes
> > Checklists" (see below data example), I need to run the report using Advanced
> > Filter, where all rows with "N" will only show on the report, but the report
> > must be on a new workbook then will prompt the user to save that workbook.
> >
> > FINISHES Checklists Template
> >
> > A B C D
> > (Column)
> > Location Item Completed Defects
> > Description
> > Y/N
> >
> > Dining Ceiling N W5 - damage
> > Lobby Wall Y
> >
> >
> > FINISHES Report (after running Macro, on new workbook)
> >
> > A B D (Column)
> > Location Item Defects Description
> >
> > Dining Ceiling W5 - damage
> >
> > Thank you.
> >

>
>
>

 
Reply With Quote
 
exploringmacro
Guest
Posts: n/a
 
      17th Jun 2009
Hello Mr. Bernie,

I've created the macro as per below.

What happen is, this macro only open and prompt to save the new workbook
which is correct, but on the workbook no information inside.

What I need is, to copy and filter the worksheet based on the criteria given
from Finishes Checklists then paste to new workbook and prompt to save the
file, but delete Finishes Checklists Column C (which is the criteria range)
and A14 (which is the cell for macro button).

Sub GenFinReport()

Dim myS As Worksheet
Dim myC As Worksheet
Dim myR As Range

Set myS = Worksheets("Finishes Checklists")

On Error Resume Next
Worksheets("Finishes Report").Delete

Set myC = Sheets.Add(Type:="Worksheet")
myC.Name = "Finishes Report"

'criteria range'
Set myR = myS.Range("D19") = "Completed"
Set myR = myS.Range("D20") = "N"

myS.Range("A1:E194").AdvancedFilter _
Action:=xlFilterCopy, _
CriteriaRange:=myS.Range("D1920"), _
CopyToRange:=myC.Range("A1:E194"), _
Unique:=False

myR.SpecialCells(xlCellTypeVisible).Copy myC.Range("A1:E194")
myS.ShowAllData
myC.Columns("D").Delete
myC.Move

ActiveWorkbook.SaveAs Application.GetSaveAsFilename _
("Finishes Report - items to be completed.xls")

End Sub


"exploringmacro" wrote:

> Hi Bernie,
>
> Thanks for your reply.
>
> My data didnt start from A1. Below is the info.
>
> A14 = COMMAND BUTTON
> A518 = REPORT INFORMATION (PROJECT NAME, ADDRESS, BLK NO, INSP NO, ETC)
> C19:C20 = CRITERIA RANGE (A19=COMPLETED, A20=Y/N)
> A1919 = HEADER (LOCATION, ITEM, COMPLETED,DEFECTS)
> C20 = Y/N
> A21nxx = DATA FOR REPORTING
>
> OBJECTIVE:
> TO PREPARE THE INSPECTION REPORT BASED ON THE FINISHES CHECKLISTS WHERE IN
> THE ANSWER IS "N" AND COPY ALL THE INFORMATION FROM FINISHES CHECKLISTS
> WORKSHEET <A5nxx> TO NEW WORKBOOK WITH WORKSHEET NAME AS FINISHES REPORT
> EXCEPT THE COLUMN C (DELETE COLUMN C), TO SHOW THE FINISHES REPORT THEN SAVE
> THE FILE AS WHATEVER FILE NAME.
>
>
> COLUMN A COLUMN B COLUMN C COLUMN D
> R19 LOCATION ITEM COMPLETED DEFECTS DESCRIPTION
> R20 Y / N
> R21 FAMILY HALL FLOOR N F2- Consistent
> colour tone ( Tonality )
> R22 MASTER BATH WALL N W17 - Consistent
> finished texture
> R23 DINING CEILING Y
>
> CAN ONLY PRINT THE ROWS AND COLUMNS WITH THE INFORMATION?
>
> THANKS FOR YOUR HELP.
>
>
>
> "Bernie Deitrick" wrote:
>
> > exploringmacro,
> >
> > I have assumed that your data table starts in cell A1 of sheet "Finishes Checklists" and is
> > contiguous (no completely blank rows or columns)
> >
> > HTH,
> > Bernie
> > MS Excel MVP
> >
> > Sub MacroForExploringMacro()
> > Dim myS As Worksheet
> > Dim myC As Worksheet
> > Dim myR As Range
> >
> > Set myS = Worksheets("Finishes Checklists")
> >
> > On Error Resume Next
> > Worksheets("Finishes Report").Delete
> >
> > Set myC = Sheets.Add(Type:="Worksheet")
> > myC.Name = "Finishes Report"
> >
> > Set myR = myS.Range("A1").CurrentRegion
> > myR.AutoFilter Field:=3, Criteria1:="N"
> > myR.SpecialCells(xlCellTypeVisible).Copy myC.Range("A1")
> > myS.ShowAllData
> > myC.Columns(3).Delete
> > myC.Move
> >
> > ActiveWorkbook.SaveAs Application.GetSaveAsFilename _
> > ("Finishes Report - items to be completed.xls")
> > End Sub
> >
> > "exploringmacro" <(E-Mail Removed)> wrote in message
> > news:E5902FDF-A1B9-4703-928A-(E-Mail Removed)...
> > > Hello,
> > >
> > > Can somebody help me.
> > >
> > > I'm creating a macro, wherein, I have a workbook with Sheet name "Finishes
> > > Checklists" (see below data example), I need to run the report using Advanced
> > > Filter, where all rows with "N" will only show on the report, but the report
> > > must be on a new workbook then will prompt the user to save that workbook.
> > >
> > > FINISHES Checklists Template
> > >
> > > A B C D
> > > (Column)
> > > Location Item Completed Defects
> > > Description
> > > Y/N
> > >
> > > Dining Ceiling N W5 - damage
> > > Lobby Wall Y
> > >
> > >
> > > FINISHES Report (after running Macro, on new workbook)
> > >
> > > A B D (Column)
> > > Location Item Defects Description
> > >
> > > Dining Ceiling W5 - damage
> > >
> > > Thank you.
> > >

> >
> >
> >

 
Reply With Quote
 
Bernie Deitrick
Guest
Posts: n/a
 
      17th Jun 2009
Try this version.

HTH,
Bernie
MS Excel MVP

Sub MacroForExploringMacro2()
Dim myS As Worksheet
Dim myC As Worksheet
Dim myR As Range

Set myS = Worksheets("Finishes Checklists")

On Error Resume Next
Worksheets("Finishes Report").Delete

Set myC = Sheets.Add(Type:="Worksheet")
myC.Name = "Finishes Report"

Set myR = myS.Range("A19" & myS.Cells(Rows.Count, 4).End(xlUp))
myR.AutoFilter Field:=3, Criteria1:="N"
myS.Cells.SpecialCells(xlCellTypeVisible).Copy myC.Range("A1")
myS.ShowAllData
Intersect(myC.Range("19:" & Rows.Count), myC.Columns(3)).Delete Shift:=xlToLeft
myC.Move

ActiveWorkbook.SaveAs Application.GetSaveAsFilename _
("Finishes Report - items to be completed.xls")
End Sub




"exploringmacro" <(E-Mail Removed)> wrote in message
news:91BAD788-D841-4F18-B20D-(E-Mail Removed)...
> Hello Mr. Bernie,
>
> Below is the macro that I've created, can you please check what went wrong.
> What happen is, it only open a new workbook which is correct, but nothing
> inside. What I need is to copy all information from Finishes Checklists where
> in the Column C = N, except Column C and except A14 (dont require in the
> Finishes Report).
>
> Sub GenFinReport()
>
> Dim myS As Worksheet
> Dim myC As Worksheet
> Dim myR As Range
>
> Set myS = Worksheets("Finishes Checklists")
>
> On Error Resume Next
> Worksheets("Finishes Report").Delete
>
> Set myC = Sheets.Add(Type:="Worksheet")
> myC.Name = "Finishes Report"
>
> 'criteria range'
> Set myR = myS.Range("D19") = "Completed"
> Set myR = myS.Range("D20") = "N"
>
> myS.Range("A1:E194").AdvancedFilter _
> Action:=xlFilterCopy, _
> CriteriaRange:=myS.Range("D1920"), _
> CopyToRange:=myC.Range("A1:E194"), _
> Unique:=False
>
> myR.SpecialCells(xlCellTypeVisible).Copy myC.Range("A1:E194")
> myS.ShowAllData
> myC.Columns("D").Delete
> myC.Move
>
> ActiveWorkbook.SaveAs Application.GetSaveAsFilename _
> ("Finishes Report - items to be completed.xls")
>
> End Sub
>
>
> "Bernie Deitrick" wrote:
>
>> exploringmacro,
>>
>> I have assumed that your data table starts in cell A1 of sheet "Finishes Checklists" and is
>> contiguous (no completely blank rows or columns)
>>
>> HTH,
>> Bernie
>> MS Excel MVP
>>
>> Sub MacroForExploringMacro()
>> Dim myS As Worksheet
>> Dim myC As Worksheet
>> Dim myR As Range
>>
>> Set myS = Worksheets("Finishes Checklists")
>>
>> On Error Resume Next
>> Worksheets("Finishes Report").Delete
>>
>> Set myC = Sheets.Add(Type:="Worksheet")
>> myC.Name = "Finishes Report"
>>
>> Set myR = myS.Range("A1").CurrentRegion
>> myR.AutoFilter Field:=3, Criteria1:="N"
>> myR.SpecialCells(xlCellTypeVisible).Copy myC.Range("A1")
>> myS.ShowAllData
>> myC.Columns(3).Delete
>> myC.Move
>>
>> ActiveWorkbook.SaveAs Application.GetSaveAsFilename _
>> ("Finishes Report - items to be completed.xls")
>> End Sub
>>
>> "exploringmacro" <(E-Mail Removed)> wrote in message
>> news:E5902FDF-A1B9-4703-928A-(E-Mail Removed)...
>> > Hello,
>> >
>> > Can somebody help me.
>> >
>> > I'm creating a macro, wherein, I have a workbook with Sheet name "Finishes
>> > Checklists" (see below data example), I need to run the report using Advanced
>> > Filter, where all rows with "N" will only show on the report, but the report
>> > must be on a new workbook then will prompt the user to save that workbook.
>> >
>> > FINISHES Checklists Template
>> >
>> > A B C D
>> > (Column)
>> > Location Item Completed Defects
>> > Description
>> > Y/N
>> >
>> > Dining Ceiling N W5 - damage
>> > Lobby Wall Y
>> >
>> >
>> > FINISHES Report (after running Macro, on new workbook)
>> >
>> > A B D (Column)
>> > Location Item Defects Description
>> >
>> > Dining Ceiling W5 - damage
>> >
>> > Thank you.
>> >

>>
>>
>>



 
Reply With Quote
 
exploringmacro
Guest
Posts: n/a
 
      18th Jun 2009
Hello Mr. Bernie,

Thanks a lot, its working.

Only thing is, on the Finishes Report even the formula was copied over, as
this is the report editing is not allowed.

please help. thanks.

"Bernie Deitrick" wrote:

> Try this version.
>
> HTH,
> Bernie
> MS Excel MVP
>
> Sub MacroForExploringMacro2()
> Dim myS As Worksheet
> Dim myC As Worksheet
> Dim myR As Range
>
> Set myS = Worksheets("Finishes Checklists")
>
> On Error Resume Next
> Worksheets("Finishes Report").Delete
>
> Set myC = Sheets.Add(Type:="Worksheet")
> myC.Name = "Finishes Report"
>
> Set myR = myS.Range("A19" & myS.Cells(Rows.Count, 4).End(xlUp))
> myR.AutoFilter Field:=3, Criteria1:="N"
> myS.Cells.SpecialCells(xlCellTypeVisible).Copy myC.Range("A1")
> myS.ShowAllData
> Intersect(myC.Range("19:" & Rows.Count), myC.Columns(3)).Delete Shift:=xlToLeft
> myC.Move
>
> ActiveWorkbook.SaveAs Application.GetSaveAsFilename _
> ("Finishes Report - items to be completed.xls")
> End Sub
>
>
>
>
> "exploringmacro" <(E-Mail Removed)> wrote in message
> news:91BAD788-D841-4F18-B20D-(E-Mail Removed)...
> > Hello Mr. Bernie,
> >
> > Below is the macro that I've created, can you please check what went wrong.
> > What happen is, it only open a new workbook which is correct, but nothing
> > inside. What I need is to copy all information from Finishes Checklists where
> > in the Column C = N, except Column C and except A14 (dont require in the
> > Finishes Report).
> >
> > Sub GenFinReport()
> >
> > Dim myS As Worksheet
> > Dim myC As Worksheet
> > Dim myR As Range
> >
> > Set myS = Worksheets("Finishes Checklists")
> >
> > On Error Resume Next
> > Worksheets("Finishes Report").Delete
> >
> > Set myC = Sheets.Add(Type:="Worksheet")
> > myC.Name = "Finishes Report"
> >
> > 'criteria range'
> > Set myR = myS.Range("D19") = "Completed"
> > Set myR = myS.Range("D20") = "N"
> >
> > myS.Range("A1:E194").AdvancedFilter _
> > Action:=xlFilterCopy, _
> > CriteriaRange:=myS.Range("D1920"), _
> > CopyToRange:=myC.Range("A1:E194"), _
> > Unique:=False
> >
> > myR.SpecialCells(xlCellTypeVisible).Copy myC.Range("A1:E194")
> > myS.ShowAllData
> > myC.Columns("D").Delete
> > myC.Move
> >
> > ActiveWorkbook.SaveAs Application.GetSaveAsFilename _
> > ("Finishes Report - items to be completed.xls")
> >
> > End Sub
> >
> >
> > "Bernie Deitrick" wrote:
> >
> >> exploringmacro,
> >>
> >> I have assumed that your data table starts in cell A1 of sheet "Finishes Checklists" and is
> >> contiguous (no completely blank rows or columns)
> >>
> >> HTH,
> >> Bernie
> >> MS Excel MVP
> >>
> >> Sub MacroForExploringMacro()
> >> Dim myS As Worksheet
> >> Dim myC As Worksheet
> >> Dim myR As Range
> >>
> >> Set myS = Worksheets("Finishes Checklists")
> >>
> >> On Error Resume Next
> >> Worksheets("Finishes Report").Delete
> >>
> >> Set myC = Sheets.Add(Type:="Worksheet")
> >> myC.Name = "Finishes Report"
> >>
> >> Set myR = myS.Range("A1").CurrentRegion
> >> myR.AutoFilter Field:=3, Criteria1:="N"
> >> myR.SpecialCells(xlCellTypeVisible).Copy myC.Range("A1")
> >> myS.ShowAllData
> >> myC.Columns(3).Delete
> >> myC.Move
> >>
> >> ActiveWorkbook.SaveAs Application.GetSaveAsFilename _
> >> ("Finishes Report - items to be completed.xls")
> >> End Sub
> >>
> >> "exploringmacro" <(E-Mail Removed)> wrote in message
> >> news:E5902FDF-A1B9-4703-928A-(E-Mail Removed)...
> >> > Hello,
> >> >
> >> > Can somebody help me.
> >> >
> >> > I'm creating a macro, wherein, I have a workbook with Sheet name "Finishes
> >> > Checklists" (see below data example), I need to run the report using Advanced
> >> > Filter, where all rows with "N" will only show on the report, but the report
> >> > must be on a new workbook then will prompt the user to save that workbook.
> >> >
> >> > FINISHES Checklists Template
> >> >
> >> > A B C D
> >> > (Column)
> >> > Location Item Completed Defects
> >> > Description
> >> > Y/N
> >> >
> >> > Dining Ceiling N W5 - damage
> >> > Lobby Wall Y
> >> >
> >> >
> >> > FINISHES Report (after running Macro, on new workbook)
> >> >
> >> > A B D (Column)
> >> > Location Item Defects Description
> >> >
> >> > Dining Ceiling W5 - damage
> >> >
> >> > Thank you.
> >> >
> >>
> >>
> >>

>
>
>

 
Reply With Quote
 
Bernie Deitrick
Guest
Posts: n/a
 
      18th Jun 2009
Change the one line

myS.Cells.SpecialCells(xlCellTypeVisible).Copy myC.Range("A1")

to three lines

myS.Cells.SpecialCells(xlCellTypeVisible).Copy
myC.Range("A1").PasteSpecial xlPasteValues
myC.Range("A1").PasteSpecial xlPasteFormats

HTH,
Bernie
MS Excel MVP


"exploringmacro" <(E-Mail Removed)> wrote in message
news:B6E40C2D-2D5D-4E79-BA2E-(E-Mail Removed)...
> Hello Mr. Bernie,
>
> Thanks a lot, its working.
>
> Only thing is, on the Finishes Report even the formula was copied over, as
> this is the report editing is not allowed.
>
> please help. thanks.
>
> "Bernie Deitrick" wrote:
>
>> Try this version.
>>
>> HTH,
>> Bernie
>> MS Excel MVP
>>
>> Sub MacroForExploringMacro2()
>> Dim myS As Worksheet
>> Dim myC As Worksheet
>> Dim myR As Range
>>
>> Set myS = Worksheets("Finishes Checklists")
>>
>> On Error Resume Next
>> Worksheets("Finishes Report").Delete
>>
>> Set myC = Sheets.Add(Type:="Worksheet")
>> myC.Name = "Finishes Report"
>>
>> Set myR = myS.Range("A19" & myS.Cells(Rows.Count, 4).End(xlUp))
>> myR.AutoFilter Field:=3, Criteria1:="N"
>> myS.Cells.SpecialCells(xlCellTypeVisible).Copy myC.Range("A1")
>> myS.ShowAllData
>> Intersect(myC.Range("19:" & Rows.Count), myC.Columns(3)).Delete Shift:=xlToLeft
>> myC.Move
>>
>> ActiveWorkbook.SaveAs Application.GetSaveAsFilename _
>> ("Finishes Report - items to be completed.xls")
>> End Sub
>>
>>
>>
>>
>> "exploringmacro" <(E-Mail Removed)> wrote in message
>> news:91BAD788-D841-4F18-B20D-(E-Mail Removed)...
>> > Hello Mr. Bernie,
>> >
>> > Below is the macro that I've created, can you please check what went wrong.
>> > What happen is, it only open a new workbook which is correct, but nothing
>> > inside. What I need is to copy all information from Finishes Checklists where
>> > in the Column C = N, except Column C and except A14 (dont require in the
>> > Finishes Report).
>> >
>> > Sub GenFinReport()
>> >
>> > Dim myS As Worksheet
>> > Dim myC As Worksheet
>> > Dim myR As Range
>> >
>> > Set myS = Worksheets("Finishes Checklists")
>> >
>> > On Error Resume Next
>> > Worksheets("Finishes Report").Delete
>> >
>> > Set myC = Sheets.Add(Type:="Worksheet")
>> > myC.Name = "Finishes Report"
>> >
>> > 'criteria range'
>> > Set myR = myS.Range("D19") = "Completed"
>> > Set myR = myS.Range("D20") = "N"
>> >
>> > myS.Range("A1:E194").AdvancedFilter _
>> > Action:=xlFilterCopy, _
>> > CriteriaRange:=myS.Range("D1920"), _
>> > CopyToRange:=myC.Range("A1:E194"), _
>> > Unique:=False
>> >
>> > myR.SpecialCells(xlCellTypeVisible).Copy myC.Range("A1:E194")
>> > myS.ShowAllData
>> > myC.Columns("D").Delete
>> > myC.Move
>> >
>> > ActiveWorkbook.SaveAs Application.GetSaveAsFilename _
>> > ("Finishes Report - items to be completed.xls")
>> >
>> > End Sub
>> >
>> >
>> > "Bernie Deitrick" wrote:
>> >
>> >> exploringmacro,
>> >>
>> >> I have assumed that your data table starts in cell A1 of sheet "Finishes Checklists" and is
>> >> contiguous (no completely blank rows or columns)
>> >>
>> >> HTH,
>> >> Bernie
>> >> MS Excel MVP
>> >>
>> >> Sub MacroForExploringMacro()
>> >> Dim myS As Worksheet
>> >> Dim myC As Worksheet
>> >> Dim myR As Range
>> >>
>> >> Set myS = Worksheets("Finishes Checklists")
>> >>
>> >> On Error Resume Next
>> >> Worksheets("Finishes Report").Delete
>> >>
>> >> Set myC = Sheets.Add(Type:="Worksheet")
>> >> myC.Name = "Finishes Report"
>> >>
>> >> Set myR = myS.Range("A1").CurrentRegion
>> >> myR.AutoFilter Field:=3, Criteria1:="N"
>> >> myR.SpecialCells(xlCellTypeVisible).Copy myC.Range("A1")
>> >> myS.ShowAllData
>> >> myC.Columns(3).Delete
>> >> myC.Move
>> >>
>> >> ActiveWorkbook.SaveAs Application.GetSaveAsFilename _
>> >> ("Finishes Report - items to be completed.xls")
>> >> End Sub
>> >>
>> >> "exploringmacro" <(E-Mail Removed)> wrote in message
>> >> news:E5902FDF-A1B9-4703-928A-(E-Mail Removed)...
>> >> > Hello,
>> >> >
>> >> > Can somebody help me.
>> >> >
>> >> > I'm creating a macro, wherein, I have a workbook with Sheet name "Finishes
>> >> > Checklists" (see below data example), I need to run the report using Advanced
>> >> > Filter, where all rows with "N" will only show on the report, but the report
>> >> > must be on a new workbook then will prompt the user to save that workbook.
>> >> >
>> >> > FINISHES Checklists Template
>> >> >
>> >> > A B C D
>> >> > (Column)
>> >> > Location Item Completed Defects
>> >> > Description
>> >> > Y/N
>> >> >
>> >> > Dining Ceiling N W5 - damage
>> >> > Lobby Wall Y
>> >> >
>> >> >
>> >> > FINISHES Report (after running Macro, on new workbook)
>> >> >
>> >> > A B D (Column)
>> >> > Location Item Defects Description
>> >> >
>> >> > Dining Ceiling W5 - damage
>> >> >
>> >> > Thank you.
>> >> >
>> >>
>> >>
>> >>

>>
>>
>>



 
Reply With Quote
 
exploringmacro
Guest
Posts: n/a
 
      23rd Jun 2009

Hello Mr. Bernie,

Thanks for your help.

Below is the macro that I'm using, this macros do the following
1. Open a new workbook with worksheet name as Finishes Report --- OK
2. Ask to save the file as Finishes Report and allow to change as any
filename --- OK
3. Copy the entire data from Finishes Checklists to Finishes Report --Not OK
(On the Finishes Report, need to copy or filter is only the answer with
"N" in column C, even though in this macro we specify the range, but seems
its not working)

Things that need your help and advise
1. Need to delete A1:C4, even though I already specify the command but seems
its not working
2. Need to specify the default size of each columns for printing purposes
3. Need to copy the company logo from Finishes Checklists to Finishes Report
4. Only answers in Column C as "N" will copy or filter into the Finishes
Report
5. The Finishes Report should only copy the filtered data from the Finishes
Checklists not the formula

Below is the macro that I'm using for testing.

Thanks for your help.

Dim myC As Worksheet
Dim myR As Range
Dim wb As Workbook

Set myS = Worksheets("Finishes Checklists")

On Error Resume Next
Worksheets("Finishes Report").Delete

Set myC = Sheets.Add(Type:="Worksheet")
myC.Name = "Finishes Report"

'criteria range' --- seems not working as it copies all data in the sheets
and didnt apply the filter

Set myR = myS.Range("C20") = "Completed"
Set myR = myS.Range("C21") = "N"

myS.Range("A5:E194").AdvancedFilter _
Action:=xlFilterCopy, _
CriteriaRange:=myS.Range("C20:C21"), _
CopyToRange:=myC.Range("A1194"), _
Unique:=False

myS.Cells.SpecialCells(xlCellTypeVisible).Copy myC.Range("A1194")
myC.Range("A1").PasteSpecial xlPasteValues
myC.Range("A1").PasteSpecial xlPasteFormats

Application.DisplayAlerts = False
myC.Columns("C").Delete
Application.DisplayAlerts = True

myC.Move
myC("Sheet1").Range("A1:C4").Delete Shift:=xlShiftToLeft (this is to
delete the Range A1:C4, but seems not working)

ActiveWorkbook.SaveAs Application.GetSaveAsFilename _
("Finishes Report.xls")
End Sub

thanks for your help.



"Bernie Deitrick" wrote:

> Change the one line
>
> myS.Cells.SpecialCells(xlCellTypeVisible).Copy myC.Range("A1")
>
> to three lines
>
> myS.Cells.SpecialCells(xlCellTypeVisible).Copy
> myC.Range("A1").PasteSpecial xlPasteValues
> myC.Range("A1").PasteSpecial xlPasteFormats
>
> HTH,
> Bernie
> MS Excel MVP
>
>
> "exploringmacro" <(E-Mail Removed)> wrote in message
> news:B6E40C2D-2D5D-4E79-BA2E-(E-Mail Removed)...
> > Hello Mr. Bernie,
> >
> > Thanks a lot, its working.
> >
> > Only thing is, on the Finishes Report even the formula was copied over, as
> > this is the report editing is not allowed.
> >
> > please help. thanks.
> >
> > "Bernie Deitrick" wrote:
> >
> >> Try this version.
> >>
> >> HTH,
> >> Bernie
> >> MS Excel MVP
> >>
> >> Sub MacroForExploringMacro2()
> >> Dim myS As Worksheet
> >> Dim myC As Worksheet
> >> Dim myR As Range
> >>
> >> Set myS = Worksheets("Finishes Checklists")
> >>
> >> On Error Resume Next
> >> Worksheets("Finishes Report").Delete
> >>
> >> Set myC = Sheets.Add(Type:="Worksheet")
> >> myC.Name = "Finishes Report"
> >>
> >> Set myR = myS.Range("A19" & myS.Cells(Rows.Count, 4).End(xlUp))
> >> myR.AutoFilter Field:=3, Criteria1:="N"
> >> myS.Cells.SpecialCells(xlCellTypeVisible).Copy myC.Range("A1")
> >> myS.ShowAllData
> >> Intersect(myC.Range("19:" & Rows.Count), myC.Columns(3)).Delete Shift:=xlToLeft
> >> myC.Move
> >>
> >> ActiveWorkbook.SaveAs Application.GetSaveAsFilename _
> >> ("Finishes Report - items to be completed.xls")
> >> End Sub
> >>
> >>
> >>
> >>
> >> "exploringmacro" <(E-Mail Removed)> wrote in message
> >> news:91BAD788-D841-4F18-B20D-(E-Mail Removed)...
> >> > Hello Mr. Bernie,
> >> >
> >> > Below is the macro that I've created, can you please check what went wrong.
> >> > What happen is, it only open a new workbook which is correct, but nothing
> >> > inside. What I need is to copy all information from Finishes Checklists where
> >> > in the Column C = N, except Column C and except A14 (dont require in the
> >> > Finishes Report).
> >> >
> >> > Sub GenFinReport()
> >> >
> >> > Dim myS As Worksheet
> >> > Dim myC As Worksheet
> >> > Dim myR As Range
> >> >
> >> > Set myS = Worksheets("Finishes Checklists")
> >> >
> >> > On Error Resume Next
> >> > Worksheets("Finishes Report").Delete
> >> >
> >> > Set myC = Sheets.Add(Type:="Worksheet")
> >> > myC.Name = "Finishes Report"
> >> >
> >> > 'criteria range'
> >> > Set myR = myS.Range("D19") = "Completed"
> >> > Set myR = myS.Range("D20") = "N"
> >> >
> >> > myS.Range("A1:E194").AdvancedFilter _
> >> > Action:=xlFilterCopy, _
> >> > CriteriaRange:=myS.Range("D1920"), _
> >> > CopyToRange:=myC.Range("A1:E194"), _
> >> > Unique:=False
> >> >
> >> > myR.SpecialCells(xlCellTypeVisible).Copy myC.Range("A1:E194")
> >> > myS.ShowAllData
> >> > myC.Columns("D").Delete
> >> > myC.Move
> >> >
> >> > ActiveWorkbook.SaveAs Application.GetSaveAsFilename _
> >> > ("Finishes Report - items to be completed.xls")
> >> >
> >> > End Sub
> >> >
> >> >
> >> > "Bernie Deitrick" wrote:
> >> >
> >> >> exploringmacro,
> >> >>
> >> >> I have assumed that your data table starts in cell A1 of sheet "Finishes Checklists" and is
> >> >> contiguous (no completely blank rows or columns)
> >> >>
> >> >> HTH,
> >> >> Bernie
> >> >> MS Excel MVP
> >> >>
> >> >> Sub MacroForExploringMacro()
> >> >> Dim myS As Worksheet
> >> >> Dim myC As Worksheet
> >> >> Dim myR As Range
> >> >>
> >> >> Set myS = Worksheets("Finishes Checklists")
> >> >>
> >> >> On Error Resume Next
> >> >> Worksheets("Finishes Report").Delete
> >> >>
> >> >> Set myC = Sheets.Add(Type:="Worksheet")
> >> >> myC.Name = "Finishes Report"
> >> >>
> >> >> Set myR = myS.Range("A1").CurrentRegion
> >> >> myR.AutoFilter Field:=3, Criteria1:="N"
> >> >> myR.SpecialCells(xlCellTypeVisible).Copy myC.Range("A1")
> >> >> myS.ShowAllData
> >> >> myC.Columns(3).Delete
> >> >> myC.Move
> >> >>
> >> >> ActiveWorkbook.SaveAs Application.GetSaveAsFilename _
> >> >> ("Finishes Report - items to be completed.xls")
> >> >> End Sub
> >> >>
> >> >> "exploringmacro" <(E-Mail Removed)> wrote in message
> >> >> news:E5902FDF-A1B9-4703-928A-(E-Mail Removed)...
> >> >> > Hello,
> >> >> >
> >> >> > Can somebody help me.
> >> >> >
> >> >> > I'm creating a macro, wherein, I have a workbook with Sheet name "Finishes
> >> >> > Checklists" (see below data example), I need to run the report using Advanced
> >> >> > Filter, where all rows with "N" will only show on the report, but the report
> >> >> > must be on a new workbook then will prompt the user to save that workbook.
> >> >> >
> >> >> > FINISHES Checklists Template
> >> >> >
> >> >> > A B C D
> >> >> > (Column)
> >> >> > Location Item Completed Defects
> >> >> > Description
> >> >> > Y/N
> >> >> >
> >> >> > Dining Ceiling N W5 - damage
> >> >> > Lobby Wall Y
> >> >> >
> >> >> >
> >> >> > FINISHES Report (after running Macro, on new workbook)
> >> >> >
> >> >> > A B D (Column)
> >> >> > Location Item Defects Description
> >> >> >
> >> >> > Dining Ceiling W5 - damage
> >> >> >
> >> >> > Thank you.
> >> >> >
> >> >>
> >> >>
> >> >>
> >>
> >>
> >>

>
>
>

 
Reply With Quote
 
Bernie Deitrick
Guest
Posts: n/a
 
      23rd Jun 2009

There is a world of difference between AutoFilters and Advanced filters. Since you have a very
simple criteria, stick with Autofilters.

Try this version.

HTH,
Bernie
MS Excel MVP

Sub TryNow()
Dim myC As Worksheet
Dim myS As Worksheet
Dim myR As Range
Dim wb As Workbook

Set myS = Worksheets("Finishes Checklists")

On Error Resume Next
Worksheets("Finishes Report").Delete

Set myC = Sheets.Add(Type:="Worksheet")
myC.Name = "Finishes Report"

Set myR = myS.Range("A5:E" & myS.Cells(Rows.Count, 5).End(xlUp))
myR.AutoFilter Field:=3, Criteria1:="N"
myS.Cells.SpecialCells(xlCellTypeVisible).Copy
myC.Range("A1").PasteSpecial xlPasteValues
myC.Range("A1").PasteSpecial xlPasteFormats
myC.Range("A1").PasteSpecial xlPasteColumnWidths
myS.ShowAllData

Intersect(myC.Range("5:" & Rows.Count), myC.Columns(3)).Delete Shift:=xlToLeft
myC.Range("A1:C4").Delete Shift:=xlShiftToLeft
myC.Move

ActiveWorkbook.SaveAs Application.GetSaveAsFilename _
("Finishes Report.xls")
End Sub



"exploringmacro" <(E-Mail Removed)> wrote in message
news:74E37E90-4677-4AE7-833A-(E-Mail Removed)...
> Hello Mr. Bernie,
>
> Thanks for your help.
>
> Below is the macro that I'm using, this macros do the following
> 1. Open a new workbook with worksheet name as Finishes Report --- OK
> 2. Ask to save the file as Finishes Report and allow to change as any
> filename --- OK
> 3. Copy the entire data from Finishes Checklists to Finishes Report --Not OK
> (On the Finishes Report, need to copy or filter is only the answer with
> "N" in column C, even though in this macro we specify the range, but seems
> its not working)
>
> Things that need your help and advise
> 1. Need to delete A1:C4, even though I already specify the command but seems
> its not working
> 2. Need to specify the default size of each columns for printing purposes
> 3. Need to copy the company logo from Finishes Checklists to Finishes Report
> 4. Only answers in Column C as "N" will copy or filter into the Finishes
> Report
> 5. The Finishes Report should only copy the filtered data from the Finishes
> Checklists not the formula
>
> Below is the macro that I'm using for testing.
>
> Thanks for your help.
>
> Dim myC As Worksheet
> Dim myR As Range
> Dim wb As Workbook
>
> Set myS = Worksheets("Finishes Checklists")
>
> On Error Resume Next
> Worksheets("Finishes Report").Delete
>
> Set myC = Sheets.Add(Type:="Worksheet")
> myC.Name = "Finishes Report"
>
> 'criteria range' --- seems not working as it copies all data in the sheets
> and didnt apply the filter
>
> Set myR = myS.Range("C20") = "Completed"
> Set myR = myS.Range("C21") = "N"
>
> myS.Range("A5:E194").AdvancedFilter _
> Action:=xlFilterCopy, _
> CriteriaRange:=myS.Range("C20:C21"), _
> CopyToRange:=myC.Range("A1194"), _
> Unique:=False
>
> myS.Cells.SpecialCells(xlCellTypeVisible).Copy myC.Range("A1194")
> myC.Range("A1").PasteSpecial xlPasteValues
> myC.Range("A1").PasteSpecial xlPasteFormats
>
> Application.DisplayAlerts = False
> myC.Columns("C").Delete
> Application.DisplayAlerts = True
>
> myC.Move
> myC("Sheet1").Range("A1:C4").Delete Shift:=xlShiftToLeft (this is to
> delete the Range A1:C4, but seems not working)
>
> ActiveWorkbook.SaveAs Application.GetSaveAsFilename _
> ("Finishes Report.xls")
> End Sub
>
> thanks for your help.
>
>
>
> "Bernie Deitrick" wrote:
>
>> Change the one line
>>
>> myS.Cells.SpecialCells(xlCellTypeVisible).Copy myC.Range("A1")
>>
>> to three lines
>>
>> myS.Cells.SpecialCells(xlCellTypeVisible).Copy
>> myC.Range("A1").PasteSpecial xlPasteValues
>> myC.Range("A1").PasteSpecial xlPasteFormats
>>
>> HTH,
>> Bernie
>> MS Excel MVP
>>
>>
>> "exploringmacro" <(E-Mail Removed)> wrote in message
>> news:B6E40C2D-2D5D-4E79-BA2E-(E-Mail Removed)...
>> > Hello Mr. Bernie,
>> >
>> > Thanks a lot, its working.
>> >
>> > Only thing is, on the Finishes Report even the formula was copied over, as
>> > this is the report editing is not allowed.
>> >
>> > please help. thanks.
>> >
>> > "Bernie Deitrick" wrote:
>> >
>> >> Try this version.
>> >>
>> >> HTH,
>> >> Bernie
>> >> MS Excel MVP
>> >>
>> >> Sub MacroForExploringMacro2()
>> >> Dim myS As Worksheet
>> >> Dim myC As Worksheet
>> >> Dim myR As Range
>> >>
>> >> Set myS = Worksheets("Finishes Checklists")
>> >>
>> >> On Error Resume Next
>> >> Worksheets("Finishes Report").Delete
>> >>
>> >> Set myC = Sheets.Add(Type:="Worksheet")
>> >> myC.Name = "Finishes Report"
>> >>
>> >> Set myR = myS.Range("A19" & myS.Cells(Rows.Count, 4).End(xlUp))
>> >> myR.AutoFilter Field:=3, Criteria1:="N"
>> >> myS.Cells.SpecialCells(xlCellTypeVisible).Copy myC.Range("A1")
>> >> myS.ShowAllData
>> >> Intersect(myC.Range("19:" & Rows.Count), myC.Columns(3)).Delete Shift:=xlToLeft
>> >> myC.Move
>> >>
>> >> ActiveWorkbook.SaveAs Application.GetSaveAsFilename _
>> >> ("Finishes Report - items to be completed.xls")
>> >> End Sub
>> >>
>> >>
>> >>
>> >>
>> >> "exploringmacro" <(E-Mail Removed)> wrote in message
>> >> news:91BAD788-D841-4F18-B20D-(E-Mail Removed)...
>> >> > Hello Mr. Bernie,
>> >> >
>> >> > Below is the macro that I've created, can you please check what went wrong.
>> >> > What happen is, it only open a new workbook which is correct, but nothing
>> >> > inside. What I need is to copy all information from Finishes Checklists where
>> >> > in the Column C = N, except Column C and except A14 (dont require in the
>> >> > Finishes Report).
>> >> >
>> >> > Sub GenFinReport()
>> >> >
>> >> > Dim myS As Worksheet
>> >> > Dim myC As Worksheet
>> >> > Dim myR As Range
>> >> >
>> >> > Set myS = Worksheets("Finishes Checklists")
>> >> >
>> >> > On Error Resume Next
>> >> > Worksheets("Finishes Report").Delete
>> >> >
>> >> > Set myC = Sheets.Add(Type:="Worksheet")
>> >> > myC.Name = "Finishes Report"
>> >> >
>> >> > 'criteria range'
>> >> > Set myR = myS.Range("D19") = "Completed"
>> >> > Set myR = myS.Range("D20") = "N"
>> >> >
>> >> > myS.Range("A1:E194").AdvancedFilter _
>> >> > Action:=xlFilterCopy, _
>> >> > CriteriaRange:=myS.Range("D1920"), _
>> >> > CopyToRange:=myC.Range("A1:E194"), _
>> >> > Unique:=False
>> >> >
>> >> > myR.SpecialCells(xlCellTypeVisible).Copy myC.Range("A1:E194")
>> >> > myS.ShowAllData
>> >> > myC.Columns("D").Delete
>> >> > myC.Move
>> >> >
>> >> > ActiveWorkbook.SaveAs Application.GetSaveAsFilename _
>> >> > ("Finishes Report - items to be completed.xls")
>> >> >
>> >> > End Sub
>> >> >
>> >> >
>> >> > "Bernie Deitrick" wrote:
>> >> >
>> >> >> exploringmacro,
>> >> >>
>> >> >> I have assumed that your data table starts in cell A1 of sheet "Finishes Checklists" and
>> >> >> is
>> >> >> contiguous (no completely blank rows or columns)
>> >> >>
>> >> >> HTH,
>> >> >> Bernie
>> >> >> MS Excel MVP
>> >> >>
>> >> >> Sub MacroForExploringMacro()
>> >> >> Dim myS As Worksheet
>> >> >> Dim myC As Worksheet
>> >> >> Dim myR As Range
>> >> >>
>> >> >> Set myS = Worksheets("Finishes Checklists")
>> >> >>
>> >> >> On Error Resume Next
>> >> >> Worksheets("Finishes Report").Delete
>> >> >>
>> >> >> Set myC = Sheets.Add(Type:="Worksheet")
>> >> >> myC.Name = "Finishes Report"
>> >> >>
>> >> >> Set myR = myS.Range("A1").CurrentRegion
>> >> >> myR.AutoFilter Field:=3, Criteria1:="N"
>> >> >> myR.SpecialCells(xlCellTypeVisible).Copy myC.Range("A1")
>> >> >> myS.ShowAllData
>> >> >> myC.Columns(3).Delete
>> >> >> myC.Move
>> >> >>
>> >> >> ActiveWorkbook.SaveAs Application.GetSaveAsFilename _
>> >> >> ("Finishes Report - items to be completed.xls")
>> >> >> End Sub
>> >> >>
>> >> >> "exploringmacro" <(E-Mail Removed)> wrote in message
>> >> >> news:E5902FDF-A1B9-4703-928A-(E-Mail Removed)...
>> >> >> > Hello,
>> >> >> >
>> >> >> > Can somebody help me.
>> >> >> >
>> >> >> > I'm creating a macro, wherein, I have a workbook with Sheet name "Finishes
>> >> >> > Checklists" (see below data example), I need to run the report using Advanced
>> >> >> > Filter, where all rows with "N" will only show on the report, but the report
>> >> >> > must be on a new workbook then will prompt the user to save that workbook.
>> >> >> >
>> >> >> > FINISHES Checklists Template
>> >> >> >
>> >> >> > A B C D
>> >> >> > (Column)
>> >> >> > Location Item Completed Defects
>> >> >> > Description
>> >> >> > Y/N
>> >> >> >
>> >> >> > Dining Ceiling N W5 - damage
>> >> >> > Lobby Wall Y
>> >> >> >
>> >> >> >
>> >> >> > FINISHES Report (after running Macro, on new workbook)
>> >> >> >
>> >> >> > A B D (Column)
>> >> >> > Location Item Defects Description
>> >> >> >
>> >> >> > Dining Ceiling W5 - damage
>> >> >> >
>> >> >> > Thank you.
>> >> >> >
>> >> >>
>> >> >>
>> >> >>
>> >>
>> >>
>> >>

>>
>>
>>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Using a continuous form's filter to generate a report. Ian Anderson General Software 1 12th Apr 2011 10:20 PM
Advanced filter macro Boss Microsoft Excel Programming 3 11th Dec 2008 09:31 AM
Advanced Filter Macro Dolphinv4 Microsoft Excel Misc 2 20th Mar 2008 11:42 AM
Generate Report with a Form Filter. =?Utf-8?B?T2x1IFNvbGFydQ==?= Microsoft Access Macros 5 13th Jul 2006 12:15 AM
Using Advanced Filter through Macro =?Utf-8?B?UHJhc2hhbnQgR2FyZw==?= Microsoft Excel Programming 4 18th Dec 2004 01:28 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:29 AM.