PC Review


Reply
Thread Tools Rate Thread

Creating a summary sheet

 
 
=?Utf-8?B?bmFiYW5jbw==?=
Guest
Posts: n/a
 
      27th Jul 2007
Hello,

I am using the below formula to try to create a summary sheet within one
workbook from multiple sheets. How would I change the below to look only at
column a-f and all rows in the worksheet that have actual information in the
row?

Sub Summary_All_Worksheets_With_Formulas()
Dim Sh As Worksheet
Dim Newsh As Worksheet
Dim myCell As Range
Dim ColNum As Integer
Dim RwNum As Long
Dim Basebook As Workbook

With Application
.Calculation = xlCalculationManual
.ScreenUpdating = False
End With

'Delete the sheet "Summary-Sheet" if it exist
Application.DisplayAlerts = False
On Error Resume Next
ThisWorkbook.Worksheets("Summary-Sheet").Delete
On Error GoTo 0
Application.DisplayAlerts = True

'Add a worksheet with the name "Summary-Sheet"
Set Basebook = ThisWorkbook
Set Newsh = Basebook.Worksheets.Add
Newsh.Name = "Summary-Sheet"

'The links to the first sheet will start in row 2
RwNum = 1

For Each Sh In Basebook.Worksheets
If Sh.Name <> Newsh.Name And Sh.Visible Then
ColNum = 1
RwNum = RwNum + 1
'Copy the sheet name in the A column
Newsh.Cells(RwNum, 1).Value = Sh.Name

For Each myCell In Sh.Range("A1,D5:E5,Z10") '<--Change the
range
ColNum = ColNum + 1
Newsh.Cells(RwNum, ColNum).Formula = _
"='" & Sh.Name & "'!" & myCell.Address(False, False)
Next myCell

End If
Next Sh

Newsh.UsedRange.Columns.AutoFit

With Application
.Calculation = xlCalculationAutomatic
.ScreenUpdating = True
End With
End Sub
 
Reply With Quote
 
 
 
 
Ron de Bruin
Guest
Posts: n/a
 
      27th Jul 2007
If you want that use a Copy macro
See
http://www.rondebruin.nl/copy2.htm


--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"nabanco" <(E-Mail Removed)> wrote in message news:FCD283CD-A6FE-4F40-903D-(E-Mail Removed)...
> Hello,
>
> I am using the below formula to try to create a summary sheet within one
> workbook from multiple sheets. How would I change the below to look only at
> column a-f and all rows in the worksheet that have actual information in the
> row?
>
> Sub Summary_All_Worksheets_With_Formulas()
> Dim Sh As Worksheet
> Dim Newsh As Worksheet
> Dim myCell As Range
> Dim ColNum As Integer
> Dim RwNum As Long
> Dim Basebook As Workbook
>
> With Application
> .Calculation = xlCalculationManual
> .ScreenUpdating = False
> End With
>
> 'Delete the sheet "Summary-Sheet" if it exist
> Application.DisplayAlerts = False
> On Error Resume Next
> ThisWorkbook.Worksheets("Summary-Sheet").Delete
> On Error GoTo 0
> Application.DisplayAlerts = True
>
> 'Add a worksheet with the name "Summary-Sheet"
> Set Basebook = ThisWorkbook
> Set Newsh = Basebook.Worksheets.Add
> Newsh.Name = "Summary-Sheet"
>
> 'The links to the first sheet will start in row 2
> RwNum = 1
>
> For Each Sh In Basebook.Worksheets
> If Sh.Name <> Newsh.Name And Sh.Visible Then
> ColNum = 1
> RwNum = RwNum + 1
> 'Copy the sheet name in the A column
> Newsh.Cells(RwNum, 1).Value = Sh.Name
>
> For Each myCell In Sh.Range("A1,D5:E5,Z10") '<--Change the
> range
> ColNum = ColNum + 1
> Newsh.Cells(RwNum, ColNum).Formula = _
> "='" & Sh.Name & "'!" & myCell.Address(False, False)
> Next myCell
>
> End If
> Next Sh
>
> Newsh.UsedRange.Columns.AutoFit
>
> With Application
> .Calculation = xlCalculationAutomatic
> .ScreenUpdating = True
> End With
> End Sub

 
Reply With Quote
 
=?Utf-8?B?bmFiYW5jbw==?=
Guest
Posts: n/a
 
      27th Jul 2007
Hey Ron,

I tried using the "Copy a range/column after the last column with data" and
get a compile error when I run the macro. It says sub or function not
defined. It is highlighting the below code:
Last = LastCol(DestSh)



"Ron de Bruin" wrote:

> If you want that use a Copy macro
> See
> http://www.rondebruin.nl/copy2.htm
>
>
> --
>
> Regards Ron de Bruin
> http://www.rondebruin.nl/tips.htm
>
>
> "nabanco" <(E-Mail Removed)> wrote in message news:FCD283CD-A6FE-4F40-903D-(E-Mail Removed)...
> > Hello,
> >
> > I am using the below formula to try to create a summary sheet within one
> > workbook from multiple sheets. How would I change the below to look only at
> > column a-f and all rows in the worksheet that have actual information in the
> > row?
> >
> > Sub Summary_All_Worksheets_With_Formulas()
> > Dim Sh As Worksheet
> > Dim Newsh As Worksheet
> > Dim myCell As Range
> > Dim ColNum As Integer
> > Dim RwNum As Long
> > Dim Basebook As Workbook
> >
> > With Application
> > .Calculation = xlCalculationManual
> > .ScreenUpdating = False
> > End With
> >
> > 'Delete the sheet "Summary-Sheet" if it exist
> > Application.DisplayAlerts = False
> > On Error Resume Next
> > ThisWorkbook.Worksheets("Summary-Sheet").Delete
> > On Error GoTo 0
> > Application.DisplayAlerts = True
> >
> > 'Add a worksheet with the name "Summary-Sheet"
> > Set Basebook = ThisWorkbook
> > Set Newsh = Basebook.Worksheets.Add
> > Newsh.Name = "Summary-Sheet"
> >
> > 'The links to the first sheet will start in row 2
> > RwNum = 1
> >
> > For Each Sh In Basebook.Worksheets
> > If Sh.Name <> Newsh.Name And Sh.Visible Then
> > ColNum = 1
> > RwNum = RwNum + 1
> > 'Copy the sheet name in the A column
> > Newsh.Cells(RwNum, 1).Value = Sh.Name
> >
> > For Each myCell In Sh.Range("A1,D5:E5,Z10") '<--Change the
> > range
> > ColNum = ColNum + 1
> > Newsh.Cells(RwNum, ColNum).Formula = _
> > "='" & Sh.Name & "'!" & myCell.Address(False, False)
> > Next myCell
> >
> > End If
> > Next Sh
> >
> > Newsh.UsedRange.Columns.AutoFit
> >
> > With Application
> > .Calculation = xlCalculationAutomatic
> > .ScreenUpdating = True
> > End With
> > End Sub

>

 
Reply With Quote
 
Ron de Bruin
Guest
Posts: n/a
 
      27th Jul 2007
Read this above the macro

Note: This example use the function LastCol

Copy the function also in you module

From the webpage

Where do I copy the macros and functions from this page?

1. Alt-F11
2. Insert>Module from the Menu bar
3. Paste the Code there
4. Alt-Q to go back to Excel
5. Alt-F8 to run the subs

Common Functions required for all routines:

Function LastRow(sh As Worksheet)
On Error Resume Next
LastRow = sh.Cells.Find(What:="*", _
After:=sh.Range("A1"), _
Lookat:=xlPart, _
LookIn:=xlFormulas, _
SearchOrder:=xlByRows, _
SearchDirection:=xlPrevious, _
MatchCase:=False).Row
On Error GoTo 0
End Function

Function LastCol(sh As Worksheet)
On Error Resume Next
LastCol = sh.Cells.Find(What:="*", _
After:=sh.Range("A1"), _
Lookat:=xlPart, _
LookIn:=xlFormulas, _
SearchOrder:=xlByColumns, _
SearchDirection:=xlPrevious, _
MatchCase:=False).Column
On Error GoTo 0
End Function


--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"nabanco" <(E-Mail Removed)> wrote in message news:271C9794-BF04-49A2-A250-(E-Mail Removed)...
> Hey Ron,
>
> I tried using the "Copy a range/column after the last column with data" and
> get a compile error when I run the macro. It says sub or function not
> defined. It is highlighting the below code:
> Last = LastCol(DestSh)
>
>
>
> "Ron de Bruin" wrote:
>
>> If you want that use a Copy macro
>> See
>> http://www.rondebruin.nl/copy2.htm
>>
>>
>> --
>>
>> Regards Ron de Bruin
>> http://www.rondebruin.nl/tips.htm
>>
>>
>> "nabanco" <(E-Mail Removed)> wrote in message news:FCD283CD-A6FE-4F40-903D-(E-Mail Removed)...
>> > Hello,
>> >
>> > I am using the below formula to try to create a summary sheet within one
>> > workbook from multiple sheets. How would I change the below to look only at
>> > column a-f and all rows in the worksheet that have actual information in the
>> > row?
>> >
>> > Sub Summary_All_Worksheets_With_Formulas()
>> > Dim Sh As Worksheet
>> > Dim Newsh As Worksheet
>> > Dim myCell As Range
>> > Dim ColNum As Integer
>> > Dim RwNum As Long
>> > Dim Basebook As Workbook
>> >
>> > With Application
>> > .Calculation = xlCalculationManual
>> > .ScreenUpdating = False
>> > End With
>> >
>> > 'Delete the sheet "Summary-Sheet" if it exist
>> > Application.DisplayAlerts = False
>> > On Error Resume Next
>> > ThisWorkbook.Worksheets("Summary-Sheet").Delete
>> > On Error GoTo 0
>> > Application.DisplayAlerts = True
>> >
>> > 'Add a worksheet with the name "Summary-Sheet"
>> > Set Basebook = ThisWorkbook
>> > Set Newsh = Basebook.Worksheets.Add
>> > Newsh.Name = "Summary-Sheet"
>> >
>> > 'The links to the first sheet will start in row 2
>> > RwNum = 1
>> >
>> > For Each Sh In Basebook.Worksheets
>> > If Sh.Name <> Newsh.Name And Sh.Visible Then
>> > ColNum = 1
>> > RwNum = RwNum + 1
>> > 'Copy the sheet name in the A column
>> > Newsh.Cells(RwNum, 1).Value = Sh.Name
>> >
>> > For Each myCell In Sh.Range("A1,D5:E5,Z10") '<--Change the
>> > range
>> > ColNum = ColNum + 1
>> > Newsh.Cells(RwNum, ColNum).Formula = _
>> > "='" & Sh.Name & "'!" & myCell.Address(False, False)
>> > Next myCell
>> >
>> > End If
>> > Next Sh
>> >
>> > Newsh.UsedRange.Columns.AutoFit
>> >
>> > With Application
>> > .Calculation = xlCalculationAutomatic
>> > .ScreenUpdating = True
>> > End With
>> > End Sub

>>

 
Reply With Quote
 
=?Utf-8?B?bmFiYW5jbw==?=
Guest
Posts: n/a
 
      28th Jul 2007
Thanks Ron, that worked.

The "merge" sheet is taking the data from sheets 1,2 &3 and placing it
horizontally across the sheet. Is there a way to place the merged data
vertically, one sheet's data on top of the other ending at the last row of
data?

For example, my data is in columns A:F in three separate sheets. There may
be many rows completed in each sheet however. I am trying to create a
summary sheet that has A:F of all three sheets in one nice. Does this make
sense and is it possible?


"Ron de Bruin" wrote:

> Read this above the macro
>
> Note: This example use the function LastCol
>
> Copy the function also in you module
>
> From the webpage
>
> Where do I copy the macros and functions from this page?
>
> 1. Alt-F11
> 2. Insert>Module from the Menu bar
> 3. Paste the Code there
> 4. Alt-Q to go back to Excel
> 5. Alt-F8 to run the subs
>
> Common Functions required for all routines:
>
> Function LastRow(sh As Worksheet)
> On Error Resume Next
> LastRow = sh.Cells.Find(What:="*", _
> After:=sh.Range("A1"), _
> Lookat:=xlPart, _
> LookIn:=xlFormulas, _
> SearchOrder:=xlByRows, _
> SearchDirection:=xlPrevious, _
> MatchCase:=False).Row
> On Error GoTo 0
> End Function
>
> Function LastCol(sh As Worksheet)
> On Error Resume Next
> LastCol = sh.Cells.Find(What:="*", _
> After:=sh.Range("A1"), _
> Lookat:=xlPart, _
> LookIn:=xlFormulas, _
> SearchOrder:=xlByColumns, _
> SearchDirection:=xlPrevious, _
> MatchCase:=False).Column
> On Error GoTo 0
> End Function
>
>
> --
>
> Regards Ron de Bruin
> http://www.rondebruin.nl/tips.htm
>
>
> "nabanco" <(E-Mail Removed)> wrote in message news:271C9794-BF04-49A2-A250-(E-Mail Removed)...
> > Hey Ron,
> >
> > I tried using the "Copy a range/column after the last column with data" and
> > get a compile error when I run the macro. It says sub or function not
> > defined. It is highlighting the below code:
> > Last = LastCol(DestSh)
> >
> >
> >
> > "Ron de Bruin" wrote:
> >
> >> If you want that use a Copy macro
> >> See
> >> http://www.rondebruin.nl/copy2.htm
> >>
> >>
> >> --
> >>
> >> Regards Ron de Bruin
> >> http://www.rondebruin.nl/tips.htm
> >>
> >>
> >> "nabanco" <(E-Mail Removed)> wrote in message news:FCD283CD-A6FE-4F40-903D-(E-Mail Removed)...
> >> > Hello,
> >> >
> >> > I am using the below formula to try to create a summary sheet within one
> >> > workbook from multiple sheets. How would I change the below to look only at
> >> > column a-f and all rows in the worksheet that have actual information in the
> >> > row?
> >> >
> >> > Sub Summary_All_Worksheets_With_Formulas()
> >> > Dim Sh As Worksheet
> >> > Dim Newsh As Worksheet
> >> > Dim myCell As Range
> >> > Dim ColNum As Integer
> >> > Dim RwNum As Long
> >> > Dim Basebook As Workbook
> >> >
> >> > With Application
> >> > .Calculation = xlCalculationManual
> >> > .ScreenUpdating = False
> >> > End With
> >> >
> >> > 'Delete the sheet "Summary-Sheet" if it exist
> >> > Application.DisplayAlerts = False
> >> > On Error Resume Next
> >> > ThisWorkbook.Worksheets("Summary-Sheet").Delete
> >> > On Error GoTo 0
> >> > Application.DisplayAlerts = True
> >> >
> >> > 'Add a worksheet with the name "Summary-Sheet"
> >> > Set Basebook = ThisWorkbook
> >> > Set Newsh = Basebook.Worksheets.Add
> >> > Newsh.Name = "Summary-Sheet"
> >> >
> >> > 'The links to the first sheet will start in row 2
> >> > RwNum = 1
> >> >
> >> > For Each Sh In Basebook.Worksheets
> >> > If Sh.Name <> Newsh.Name And Sh.Visible Then
> >> > ColNum = 1
> >> > RwNum = RwNum + 1
> >> > 'Copy the sheet name in the A column
> >> > Newsh.Cells(RwNum, 1).Value = Sh.Name
> >> >
> >> > For Each myCell In Sh.Range("A1,D5:E5,Z10") '<--Change the
> >> > range
> >> > ColNum = ColNum + 1
> >> > Newsh.Cells(RwNum, ColNum).Formula = _
> >> > "='" & Sh.Name & "'!" & myCell.Address(False, False)
> >> > Next myCell
> >> >
> >> > End If
> >> > Next Sh
> >> >
> >> > Newsh.UsedRange.Columns.AutoFit
> >> >
> >> > With Application
> >> > .Calculation = xlCalculationAutomatic
> >> > .ScreenUpdating = True
> >> > End With
> >> > End Sub
> >>

>

 
Reply With Quote
 
Ron de Bruin
Guest
Posts: n/a
 
      28th Jul 2007
Use this example on the page

Copy from row 2 till the last row with data





--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"nabanco" <(E-Mail Removed)> wrote in message news:8F903445-8090-4739-BDA9-(E-Mail Removed)...
> Thanks Ron, that worked.
>
> The "merge" sheet is taking the data from sheets 1,2 &3 and placing it
> horizontally across the sheet. Is there a way to place the merged data
> vertically, one sheet's data on top of the other ending at the last row of
> data?
>
> For example, my data is in columns A:F in three separate sheets. There may
> be many rows completed in each sheet however. I am trying to create a
> summary sheet that has A:F of all three sheets in one nice. Does this make
> sense and is it possible?
>
>
> "Ron de Bruin" wrote:
>
>> Read this above the macro
>>
>> Note: This example use the function LastCol
>>
>> Copy the function also in you module
>>
>> From the webpage
>>
>> Where do I copy the macros and functions from this page?
>>
>> 1. Alt-F11
>> 2. Insert>Module from the Menu bar
>> 3. Paste the Code there
>> 4. Alt-Q to go back to Excel
>> 5. Alt-F8 to run the subs
>>
>> Common Functions required for all routines:
>>
>> Function LastRow(sh As Worksheet)
>> On Error Resume Next
>> LastRow = sh.Cells.Find(What:="*", _
>> After:=sh.Range("A1"), _
>> Lookat:=xlPart, _
>> LookIn:=xlFormulas, _
>> SearchOrder:=xlByRows, _
>> SearchDirection:=xlPrevious, _
>> MatchCase:=False).Row
>> On Error GoTo 0
>> End Function
>>
>> Function LastCol(sh As Worksheet)
>> On Error Resume Next
>> LastCol = sh.Cells.Find(What:="*", _
>> After:=sh.Range("A1"), _
>> Lookat:=xlPart, _
>> LookIn:=xlFormulas, _
>> SearchOrder:=xlByColumns, _
>> SearchDirection:=xlPrevious, _
>> MatchCase:=False).Column
>> On Error GoTo 0
>> End Function
>>
>>
>> --
>>
>> Regards Ron de Bruin
>> http://www.rondebruin.nl/tips.htm
>>
>>
>> "nabanco" <(E-Mail Removed)> wrote in message news:271C9794-BF04-49A2-A250-(E-Mail Removed)...
>> > Hey Ron,
>> >
>> > I tried using the "Copy a range/column after the last column with data" and
>> > get a compile error when I run the macro. It says sub or function not
>> > defined. It is highlighting the below code:
>> > Last = LastCol(DestSh)
>> >
>> >
>> >
>> > "Ron de Bruin" wrote:
>> >
>> >> If you want that use a Copy macro
>> >> See
>> >> http://www.rondebruin.nl/copy2.htm
>> >>
>> >>
>> >> --
>> >>
>> >> Regards Ron de Bruin
>> >> http://www.rondebruin.nl/tips.htm
>> >>
>> >>
>> >> "nabanco" <(E-Mail Removed)> wrote in message news:FCD283CD-A6FE-4F40-903D-(E-Mail Removed)...
>> >> > Hello,
>> >> >
>> >> > I am using the below formula to try to create a summary sheet within one
>> >> > workbook from multiple sheets. How would I change the below to look only at
>> >> > column a-f and all rows in the worksheet that have actual information in the
>> >> > row?
>> >> >
>> >> > Sub Summary_All_Worksheets_With_Formulas()
>> >> > Dim Sh As Worksheet
>> >> > Dim Newsh As Worksheet
>> >> > Dim myCell As Range
>> >> > Dim ColNum As Integer
>> >> > Dim RwNum As Long
>> >> > Dim Basebook As Workbook
>> >> >
>> >> > With Application
>> >> > .Calculation = xlCalculationManual
>> >> > .ScreenUpdating = False
>> >> > End With
>> >> >
>> >> > 'Delete the sheet "Summary-Sheet" if it exist
>> >> > Application.DisplayAlerts = False
>> >> > On Error Resume Next
>> >> > ThisWorkbook.Worksheets("Summary-Sheet").Delete
>> >> > On Error GoTo 0
>> >> > Application.DisplayAlerts = True
>> >> >
>> >> > 'Add a worksheet with the name "Summary-Sheet"
>> >> > Set Basebook = ThisWorkbook
>> >> > Set Newsh = Basebook.Worksheets.Add
>> >> > Newsh.Name = "Summary-Sheet"
>> >> >
>> >> > 'The links to the first sheet will start in row 2
>> >> > RwNum = 1
>> >> >
>> >> > For Each Sh In Basebook.Worksheets
>> >> > If Sh.Name <> Newsh.Name And Sh.Visible Then
>> >> > ColNum = 1
>> >> > RwNum = RwNum + 1
>> >> > 'Copy the sheet name in the A column
>> >> > Newsh.Cells(RwNum, 1).Value = Sh.Name
>> >> >
>> >> > For Each myCell In Sh.Range("A1,D5:E5,Z10") '<--Change the
>> >> > range
>> >> > ColNum = ColNum + 1
>> >> > Newsh.Cells(RwNum, ColNum).Formula = _
>> >> > "='" & Sh.Name & "'!" & myCell.Address(False, False)
>> >> > Next myCell
>> >> >
>> >> > End If
>> >> > Next Sh
>> >> >
>> >> > Newsh.UsedRange.Columns.AutoFit
>> >> >
>> >> > With Application
>> >> > .Calculation = xlCalculationAutomatic
>> >> > .ScreenUpdating = True
>> >> > End With
>> >> > End Sub
>> >>

>>

 
Reply With Quote
 
=?Utf-8?B?bmFiYW5jbw==?=
Guest
Posts: n/a
 
      29th Jul 2007
It's still doing the same thing, how do I get the merge sheet to show data
from all other sheets stacked on top of each other as opposed to next to each
other?

"Ron de Bruin" wrote:

> Use this example on the page
>
> Copy from row 2 till the last row with data
>
>
>
>
>
> --
>
> Regards Ron de Bruin
> http://www.rondebruin.nl/tips.htm
>
>
> "nabanco" <(E-Mail Removed)> wrote in message news:8F903445-8090-4739-BDA9-(E-Mail Removed)...
> > Thanks Ron, that worked.
> >
> > The "merge" sheet is taking the data from sheets 1,2 &3 and placing it
> > horizontally across the sheet. Is there a way to place the merged data
> > vertically, one sheet's data on top of the other ending at the last row of
> > data?
> >
> > For example, my data is in columns A:F in three separate sheets. There may
> > be many rows completed in each sheet however. I am trying to create a
> > summary sheet that has A:F of all three sheets in one nice. Does this make
> > sense and is it possible?
> >
> >
> > "Ron de Bruin" wrote:
> >
> >> Read this above the macro
> >>
> >> Note: This example use the function LastCol
> >>
> >> Copy the function also in you module
> >>
> >> From the webpage
> >>
> >> Where do I copy the macros and functions from this page?
> >>
> >> 1. Alt-F11
> >> 2. Insert>Module from the Menu bar
> >> 3. Paste the Code there
> >> 4. Alt-Q to go back to Excel
> >> 5. Alt-F8 to run the subs
> >>
> >> Common Functions required for all routines:
> >>
> >> Function LastRow(sh As Worksheet)
> >> On Error Resume Next
> >> LastRow = sh.Cells.Find(What:="*", _
> >> After:=sh.Range("A1"), _
> >> Lookat:=xlPart, _
> >> LookIn:=xlFormulas, _
> >> SearchOrder:=xlByRows, _
> >> SearchDirection:=xlPrevious, _
> >> MatchCase:=False).Row
> >> On Error GoTo 0
> >> End Function
> >>
> >> Function LastCol(sh As Worksheet)
> >> On Error Resume Next
> >> LastCol = sh.Cells.Find(What:="*", _
> >> After:=sh.Range("A1"), _
> >> Lookat:=xlPart, _
> >> LookIn:=xlFormulas, _
> >> SearchOrder:=xlByColumns, _
> >> SearchDirection:=xlPrevious, _
> >> MatchCase:=False).Column
> >> On Error GoTo 0
> >> End Function
> >>
> >>
> >> --
> >>
> >> Regards Ron de Bruin
> >> http://www.rondebruin.nl/tips.htm
> >>
> >>
> >> "nabanco" <(E-Mail Removed)> wrote in message news:271C9794-BF04-49A2-A250-(E-Mail Removed)...
> >> > Hey Ron,
> >> >
> >> > I tried using the "Copy a range/column after the last column with data" and
> >> > get a compile error when I run the macro. It says sub or function not
> >> > defined. It is highlighting the below code:
> >> > Last = LastCol(DestSh)
> >> >
> >> >
> >> >
> >> > "Ron de Bruin" wrote:
> >> >
> >> >> If you want that use a Copy macro
> >> >> See
> >> >> http://www.rondebruin.nl/copy2.htm
> >> >>
> >> >>
> >> >> --
> >> >>
> >> >> Regards Ron de Bruin
> >> >> http://www.rondebruin.nl/tips.htm
> >> >>
> >> >>
> >> >> "nabanco" <(E-Mail Removed)> wrote in message news:FCD283CD-A6FE-4F40-903D-(E-Mail Removed)...
> >> >> > Hello,
> >> >> >
> >> >> > I am using the below formula to try to create a summary sheet within one
> >> >> > workbook from multiple sheets. How would I change the below to look only at
> >> >> > column a-f and all rows in the worksheet that have actual information in the
> >> >> > row?
> >> >> >
> >> >> > Sub Summary_All_Worksheets_With_Formulas()
> >> >> > Dim Sh As Worksheet
> >> >> > Dim Newsh As Worksheet
> >> >> > Dim myCell As Range
> >> >> > Dim ColNum As Integer
> >> >> > Dim RwNum As Long
> >> >> > Dim Basebook As Workbook
> >> >> >
> >> >> > With Application
> >> >> > .Calculation = xlCalculationManual
> >> >> > .ScreenUpdating = False
> >> >> > End With
> >> >> >
> >> >> > 'Delete the sheet "Summary-Sheet" if it exist
> >> >> > Application.DisplayAlerts = False
> >> >> > On Error Resume Next
> >> >> > ThisWorkbook.Worksheets("Summary-Sheet").Delete
> >> >> > On Error GoTo 0
> >> >> > Application.DisplayAlerts = True
> >> >> >
> >> >> > 'Add a worksheet with the name "Summary-Sheet"
> >> >> > Set Basebook = ThisWorkbook
> >> >> > Set Newsh = Basebook.Worksheets.Add
> >> >> > Newsh.Name = "Summary-Sheet"
> >> >> >
> >> >> > 'The links to the first sheet will start in row 2
> >> >> > RwNum = 1
> >> >> >
> >> >> > For Each Sh In Basebook.Worksheets
> >> >> > If Sh.Name <> Newsh.Name And Sh.Visible Then
> >> >> > ColNum = 1
> >> >> > RwNum = RwNum + 1
> >> >> > 'Copy the sheet name in the A column
> >> >> > Newsh.Cells(RwNum, 1).Value = Sh.Name
> >> >> >
> >> >> > For Each myCell In Sh.Range("A1,D5:E5,Z10") '<--Change the
> >> >> > range
> >> >> > ColNum = ColNum + 1
> >> >> > Newsh.Cells(RwNum, ColNum).Formula = _
> >> >> > "='" & Sh.Name & "'!" & myCell.Address(False, False)
> >> >> > Next myCell
> >> >> >
> >> >> > End If
> >> >> > Next Sh
> >> >> >
> >> >> > Newsh.UsedRange.Columns.AutoFit
> >> >> >
> >> >> > With Application
> >> >> > .Calculation = xlCalculationAutomatic
> >> >> > .ScreenUpdating = True
> >> >> > End With
> >> >> > End Sub
> >> >>
> >>

>

 
Reply With Quote
 
Ron de Bruin
Guest
Posts: n/a
 
      29th Jul 2007
If you use this example the data will be below each other and not next to each other

Try the example macro named "Test2" together with the LastRow function

--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"nabanco" <(E-Mail Removed)> wrote in message news:174D6815-4B9C-40D6-A417-(E-Mail Removed)...
> It's still doing the same thing, how do I get the merge sheet to show data
> from all other sheets stacked on top of each other as opposed to next to each
> other?
>
> "Ron de Bruin" wrote:
>
>> Use this example on the page
>>
>> Copy from row 2 till the last row with data
>>
>>
>>
>>
>>
>> --
>>
>> Regards Ron de Bruin
>> http://www.rondebruin.nl/tips.htm
>>
>>
>> "nabanco" <(E-Mail Removed)> wrote in message news:8F903445-8090-4739-BDA9-(E-Mail Removed)...
>> > Thanks Ron, that worked.
>> >
>> > The "merge" sheet is taking the data from sheets 1,2 &3 and placing it
>> > horizontally across the sheet. Is there a way to place the merged data
>> > vertically, one sheet's data on top of the other ending at the last row of
>> > data?
>> >
>> > For example, my data is in columns A:F in three separate sheets. There may
>> > be many rows completed in each sheet however. I am trying to create a
>> > summary sheet that has A:F of all three sheets in one nice. Does this make
>> > sense and is it possible?
>> >
>> >
>> > "Ron de Bruin" wrote:
>> >
>> >> Read this above the macro
>> >>
>> >> Note: This example use the function LastCol
>> >>
>> >> Copy the function also in you module
>> >>
>> >> From the webpage
>> >>
>> >> Where do I copy the macros and functions from this page?
>> >>
>> >> 1. Alt-F11
>> >> 2. Insert>Module from the Menu bar
>> >> 3. Paste the Code there
>> >> 4. Alt-Q to go back to Excel
>> >> 5. Alt-F8 to run the subs
>> >>
>> >> Common Functions required for all routines:
>> >>
>> >> Function LastRow(sh As Worksheet)
>> >> On Error Resume Next
>> >> LastRow = sh.Cells.Find(What:="*", _
>> >> After:=sh.Range("A1"), _
>> >> Lookat:=xlPart, _
>> >> LookIn:=xlFormulas, _
>> >> SearchOrder:=xlByRows, _
>> >> SearchDirection:=xlPrevious, _
>> >> MatchCase:=False).Row
>> >> On Error GoTo 0
>> >> End Function
>> >>
>> >> Function LastCol(sh As Worksheet)
>> >> On Error Resume Next
>> >> LastCol = sh.Cells.Find(What:="*", _
>> >> After:=sh.Range("A1"), _
>> >> Lookat:=xlPart, _
>> >> LookIn:=xlFormulas, _
>> >> SearchOrder:=xlByColumns, _
>> >> SearchDirection:=xlPrevious, _
>> >> MatchCase:=False).Column
>> >> On Error GoTo 0
>> >> End Function
>> >>
>> >>
>> >> --
>> >>
>> >> Regards Ron de Bruin
>> >> http://www.rondebruin.nl/tips.htm
>> >>
>> >>
>> >> "nabanco" <(E-Mail Removed)> wrote in message news:271C9794-BF04-49A2-A250-(E-Mail Removed)...
>> >> > Hey Ron,
>> >> >
>> >> > I tried using the "Copy a range/column after the last column with data" and
>> >> > get a compile error when I run the macro. It says sub or function not
>> >> > defined. It is highlighting the below code:
>> >> > Last = LastCol(DestSh)
>> >> >
>> >> >
>> >> >
>> >> > "Ron de Bruin" wrote:
>> >> >
>> >> >> If you want that use a Copy macro
>> >> >> See
>> >> >> http://www.rondebruin.nl/copy2.htm
>> >> >>
>> >> >>
>> >> >> --
>> >> >>
>> >> >> Regards Ron de Bruin
>> >> >> http://www.rondebruin.nl/tips.htm
>> >> >>
>> >> >>
>> >> >> "nabanco" <(E-Mail Removed)> wrote in message news:FCD283CD-A6FE-4F40-903D-(E-Mail Removed)...
>> >> >> > Hello,
>> >> >> >
>> >> >> > I am using the below formula to try to create a summary sheet within one
>> >> >> > workbook from multiple sheets. How would I change the below to look only at
>> >> >> > column a-f and all rows in the worksheet that have actual information in the
>> >> >> > row?
>> >> >> >
>> >> >> > Sub Summary_All_Worksheets_With_Formulas()
>> >> >> > Dim Sh As Worksheet
>> >> >> > Dim Newsh As Worksheet
>> >> >> > Dim myCell As Range
>> >> >> > Dim ColNum As Integer
>> >> >> > Dim RwNum As Long
>> >> >> > Dim Basebook As Workbook
>> >> >> >
>> >> >> > With Application
>> >> >> > .Calculation = xlCalculationManual
>> >> >> > .ScreenUpdating = False
>> >> >> > End With
>> >> >> >
>> >> >> > 'Delete the sheet "Summary-Sheet" if it exist
>> >> >> > Application.DisplayAlerts = False
>> >> >> > On Error Resume Next
>> >> >> > ThisWorkbook.Worksheets("Summary-Sheet").Delete
>> >> >> > On Error GoTo 0
>> >> >> > Application.DisplayAlerts = True
>> >> >> >
>> >> >> > 'Add a worksheet with the name "Summary-Sheet"
>> >> >> > Set Basebook = ThisWorkbook
>> >> >> > Set Newsh = Basebook.Worksheets.Add
>> >> >> > Newsh.Name = "Summary-Sheet"
>> >> >> >
>> >> >> > 'The links to the first sheet will start in row 2
>> >> >> > RwNum = 1
>> >> >> >
>> >> >> > For Each Sh In Basebook.Worksheets
>> >> >> > If Sh.Name <> Newsh.Name And Sh.Visible Then
>> >> >> > ColNum = 1
>> >> >> > RwNum = RwNum + 1
>> >> >> > 'Copy the sheet name in the A column
>> >> >> > Newsh.Cells(RwNum, 1).Value = Sh.Name
>> >> >> >
>> >> >> > For Each myCell In Sh.Range("A1,D5:E5,Z10") '<--Change the
>> >> >> > range
>> >> >> > ColNum = ColNum + 1
>> >> >> > Newsh.Cells(RwNum, ColNum).Formula = _
>> >> >> > "='" & Sh.Name & "'!" & myCell.Address(False, False)
>> >> >> > Next myCell
>> >> >> >
>> >> >> > End If
>> >> >> > Next Sh
>> >> >> >
>> >> >> > Newsh.UsedRange.Columns.AutoFit
>> >> >> >
>> >> >> > With Application
>> >> >> > .Calculation = xlCalculationAutomatic
>> >> >> > .ScreenUpdating = True
>> >> >> > End With
>> >> >> > End Sub
>> >> >>
>> >>

>>

 
Reply With Quote
 
=?Utf-8?B?bmFiYW5jbw==?=
Guest
Posts: n/a
 
      29th Jul 2007
Thank you so much Ron for sticking with me to figure this out, it worked!
Thank you

"Ron de Bruin" wrote:

> If you use this example the data will be below each other and not next to each other
>
> Try the example macro named "Test2" together with the LastRow function
>
> --
>
> Regards Ron de Bruin
> http://www.rondebruin.nl/tips.htm
>
>
> "nabanco" <(E-Mail Removed)> wrote in message news:174D6815-4B9C-40D6-A417-(E-Mail Removed)...
> > It's still doing the same thing, how do I get the merge sheet to show data
> > from all other sheets stacked on top of each other as opposed to next to each
> > other?
> >
> > "Ron de Bruin" wrote:
> >
> >> Use this example on the page
> >>
> >> Copy from row 2 till the last row with data
> >>
> >>
> >>
> >>
> >>
> >> --
> >>
> >> Regards Ron de Bruin
> >> http://www.rondebruin.nl/tips.htm
> >>
> >>
> >> "nabanco" <(E-Mail Removed)> wrote in message news:8F903445-8090-4739-BDA9-(E-Mail Removed)...
> >> > Thanks Ron, that worked.
> >> >
> >> > The "merge" sheet is taking the data from sheets 1,2 &3 and placing it
> >> > horizontally across the sheet. Is there a way to place the merged data
> >> > vertically, one sheet's data on top of the other ending at the last row of
> >> > data?
> >> >
> >> > For example, my data is in columns A:F in three separate sheets. There may
> >> > be many rows completed in each sheet however. I am trying to create a
> >> > summary sheet that has A:F of all three sheets in one nice. Does this make
> >> > sense and is it possible?
> >> >
> >> >
> >> > "Ron de Bruin" wrote:
> >> >
> >> >> Read this above the macro
> >> >>
> >> >> Note: This example use the function LastCol
> >> >>
> >> >> Copy the function also in you module
> >> >>
> >> >> From the webpage
> >> >>
> >> >> Where do I copy the macros and functions from this page?
> >> >>
> >> >> 1. Alt-F11
> >> >> 2. Insert>Module from the Menu bar
> >> >> 3. Paste the Code there
> >> >> 4. Alt-Q to go back to Excel
> >> >> 5. Alt-F8 to run the subs
> >> >>
> >> >> Common Functions required for all routines:
> >> >>
> >> >> Function LastRow(sh As Worksheet)
> >> >> On Error Resume Next
> >> >> LastRow = sh.Cells.Find(What:="*", _
> >> >> After:=sh.Range("A1"), _
> >> >> Lookat:=xlPart, _
> >> >> LookIn:=xlFormulas, _
> >> >> SearchOrder:=xlByRows, _
> >> >> SearchDirection:=xlPrevious, _
> >> >> MatchCase:=False).Row
> >> >> On Error GoTo 0
> >> >> End Function
> >> >>
> >> >> Function LastCol(sh As Worksheet)
> >> >> On Error Resume Next
> >> >> LastCol = sh.Cells.Find(What:="*", _
> >> >> After:=sh.Range("A1"), _
> >> >> Lookat:=xlPart, _
> >> >> LookIn:=xlFormulas, _
> >> >> SearchOrder:=xlByColumns, _
> >> >> SearchDirection:=xlPrevious, _
> >> >> MatchCase:=False).Column
> >> >> On Error GoTo 0
> >> >> End Function
> >> >>
> >> >>
> >> >> --
> >> >>
> >> >> Regards Ron de Bruin
> >> >> http://www.rondebruin.nl/tips.htm
> >> >>
> >> >>
> >> >> "nabanco" <(E-Mail Removed)> wrote in message news:271C9794-BF04-49A2-A250-(E-Mail Removed)...
> >> >> > Hey Ron,
> >> >> >
> >> >> > I tried using the "Copy a range/column after the last column with data" and
> >> >> > get a compile error when I run the macro. It says sub or function not
> >> >> > defined. It is highlighting the below code:
> >> >> > Last = LastCol(DestSh)
> >> >> >
> >> >> >
> >> >> >
> >> >> > "Ron de Bruin" wrote:
> >> >> >
> >> >> >> If you want that use a Copy macro
> >> >> >> See
> >> >> >> http://www.rondebruin.nl/copy2.htm
> >> >> >>
> >> >> >>
> >> >> >> --
> >> >> >>
> >> >> >> Regards Ron de Bruin
> >> >> >> http://www.rondebruin.nl/tips.htm
> >> >> >>
> >> >> >>
> >> >> >> "nabanco" <(E-Mail Removed)> wrote in message news:FCD283CD-A6FE-4F40-903D-(E-Mail Removed)...
> >> >> >> > Hello,
> >> >> >> >
> >> >> >> > I am using the below formula to try to create a summary sheet within one
> >> >> >> > workbook from multiple sheets. How would I change the below to look only at
> >> >> >> > column a-f and all rows in the worksheet that have actual information in the
> >> >> >> > row?
> >> >> >> >
> >> >> >> > Sub Summary_All_Worksheets_With_Formulas()
> >> >> >> > Dim Sh As Worksheet
> >> >> >> > Dim Newsh As Worksheet
> >> >> >> > Dim myCell As Range
> >> >> >> > Dim ColNum As Integer
> >> >> >> > Dim RwNum As Long
> >> >> >> > Dim Basebook As Workbook
> >> >> >> >
> >> >> >> > With Application
> >> >> >> > .Calculation = xlCalculationManual
> >> >> >> > .ScreenUpdating = False
> >> >> >> > End With
> >> >> >> >
> >> >> >> > 'Delete the sheet "Summary-Sheet" if it exist
> >> >> >> > Application.DisplayAlerts = False
> >> >> >> > On Error Resume Next
> >> >> >> > ThisWorkbook.Worksheets("Summary-Sheet").Delete
> >> >> >> > On Error GoTo 0
> >> >> >> > Application.DisplayAlerts = True
> >> >> >> >
> >> >> >> > 'Add a worksheet with the name "Summary-Sheet"
> >> >> >> > Set Basebook = ThisWorkbook
> >> >> >> > Set Newsh = Basebook.Worksheets.Add
> >> >> >> > Newsh.Name = "Summary-Sheet"
> >> >> >> >
> >> >> >> > 'The links to the first sheet will start in row 2
> >> >> >> > RwNum = 1
> >> >> >> >
> >> >> >> > For Each Sh In Basebook.Worksheets
> >> >> >> > If Sh.Name <> Newsh.Name And Sh.Visible Then
> >> >> >> > ColNum = 1
> >> >> >> > RwNum = RwNum + 1
> >> >> >> > 'Copy the sheet name in the A column
> >> >> >> > Newsh.Cells(RwNum, 1).Value = Sh.Name
> >> >> >> >
> >> >> >> > For Each myCell In Sh.Range("A1,D5:E5,Z10") '<--Change the
> >> >> >> > range
> >> >> >> > ColNum = ColNum + 1
> >> >> >> > Newsh.Cells(RwNum, ColNum).Formula = _
> >> >> >> > "='" & Sh.Name & "'!" & myCell.Address(False, False)
> >> >> >> > Next myCell
> >> >> >> >
> >> >> >> > End If
> >> >> >> > Next Sh
> >> >> >> >
> >> >> >> > Newsh.UsedRange.Columns.AutoFit
> >> >> >> >
> >> >> >> > With Application
> >> >> >> > .Calculation = xlCalculationAutomatic
> >> >> >> > .ScreenUpdating = True
> >> >> >> > End With
> >> >> >> > End Sub
> >> >> >>
> >> >>
> >>

>

 
Reply With Quote
 
Ron de Bruin
Guest
Posts: n/a
 
      29th Jul 2007
You are welcome

Thanks for the feedback

--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"nabanco" <(E-Mail Removed)> wrote in message news:5840D264-1EEE-4BC2-8442-(E-Mail Removed)...
> Thank you so much Ron for sticking with me to figure this out, it worked!
> Thank you
>
> "Ron de Bruin" wrote:
>
>> If you use this example the data will be below each other and not next to each other
>>
>> Try the example macro named "Test2" together with the LastRow function
>>
>> --
>>
>> Regards Ron de Bruin
>> http://www.rondebruin.nl/tips.htm
>>
>>
>> "nabanco" <(E-Mail Removed)> wrote in message news:174D6815-4B9C-40D6-A417-(E-Mail Removed)...
>> > It's still doing the same thing, how do I get the merge sheet to show data
>> > from all other sheets stacked on top of each other as opposed to next to each
>> > other?
>> >
>> > "Ron de Bruin" wrote:
>> >
>> >> Use this example on the page
>> >>
>> >> Copy from row 2 till the last row with data
>> >>
>> >>
>> >>
>> >>
>> >>
>> >> --
>> >>
>> >> Regards Ron de Bruin
>> >> http://www.rondebruin.nl/tips.htm
>> >>
>> >>
>> >> "nabanco" <(E-Mail Removed)> wrote in message news:8F903445-8090-4739-BDA9-(E-Mail Removed)...
>> >> > Thanks Ron, that worked.
>> >> >
>> >> > The "merge" sheet is taking the data from sheets 1,2 &3 and placing it
>> >> > horizontally across the sheet. Is there a way to place the merged data
>> >> > vertically, one sheet's data on top of the other ending at the last row of
>> >> > data?
>> >> >
>> >> > For example, my data is in columns A:F in three separate sheets. There may
>> >> > be many rows completed in each sheet however. I am trying to create a
>> >> > summary sheet that has A:F of all three sheets in one nice. Does this make
>> >> > sense and is it possible?
>> >> >
>> >> >
>> >> > "Ron de Bruin" wrote:
>> >> >
>> >> >> Read this above the macro
>> >> >>
>> >> >> Note: This example use the function LastCol
>> >> >>
>> >> >> Copy the function also in you module
>> >> >>
>> >> >> From the webpage
>> >> >>
>> >> >> Where do I copy the macros and functions from this page?
>> >> >>
>> >> >> 1. Alt-F11
>> >> >> 2. Insert>Module from the Menu bar
>> >> >> 3. Paste the Code there
>> >> >> 4. Alt-Q to go back to Excel
>> >> >> 5. Alt-F8 to run the subs
>> >> >>
>> >> >> Common Functions required for all routines:
>> >> >>
>> >> >> Function LastRow(sh As Worksheet)
>> >> >> On Error Resume Next
>> >> >> LastRow = sh.Cells.Find(What:="*", _
>> >> >> After:=sh.Range("A1"), _
>> >> >> Lookat:=xlPart, _
>> >> >> LookIn:=xlFormulas, _
>> >> >> SearchOrder:=xlByRows, _
>> >> >> SearchDirection:=xlPrevious, _
>> >> >> MatchCase:=False).Row
>> >> >> On Error GoTo 0
>> >> >> End Function
>> >> >>
>> >> >> Function LastCol(sh As Worksheet)
>> >> >> On Error Resume Next
>> >> >> LastCol = sh.Cells.Find(What:="*", _
>> >> >> After:=sh.Range("A1"), _
>> >> >> Lookat:=xlPart, _
>> >> >> LookIn:=xlFormulas, _
>> >> >> SearchOrder:=xlByColumns, _
>> >> >> SearchDirection:=xlPrevious, _
>> >> >> MatchCase:=False).Column
>> >> >> On Error GoTo 0
>> >> >> End Function
>> >> >>
>> >> >>
>> >> >> --
>> >> >>
>> >> >> Regards Ron de Bruin
>> >> >> http://www.rondebruin.nl/tips.htm
>> >> >>
>> >> >>
>> >> >> "nabanco" <(E-Mail Removed)> wrote in message news:271C9794-BF04-49A2-A250-(E-Mail Removed)...
>> >> >> > Hey Ron,
>> >> >> >
>> >> >> > I tried using the "Copy a range/column after the last column with data" and
>> >> >> > get a compile error when I run the macro. It says sub or function not
>> >> >> > defined. It is highlighting the below code:
>> >> >> > Last = LastCol(DestSh)
>> >> >> >
>> >> >> >
>> >> >> >
>> >> >> > "Ron de Bruin" wrote:
>> >> >> >
>> >> >> >> If you want that use a Copy macro
>> >> >> >> See
>> >> >> >> http://www.rondebruin.nl/copy2.htm
>> >> >> >>
>> >> >> >>
>> >> >> >> --
>> >> >> >>
>> >> >> >> Regards Ron de Bruin
>> >> >> >> http://www.rondebruin.nl/tips.htm
>> >> >> >>
>> >> >> >>
>> >> >> >> "nabanco" <(E-Mail Removed)> wrote in message
>> >> >> >> news:FCD283CD-A6FE-4F40-903D-(E-Mail Removed)...
>> >> >> >> > Hello,
>> >> >> >> >
>> >> >> >> > I am using the below formula to try to create a summary sheet within one
>> >> >> >> > workbook from multiple sheets. How would I change the below to look only at
>> >> >> >> > column a-f and all rows in the worksheet that have actual information in the
>> >> >> >> > row?
>> >> >> >> >
>> >> >> >> > Sub Summary_All_Worksheets_With_Formulas()
>> >> >> >> > Dim Sh As Worksheet
>> >> >> >> > Dim Newsh As Worksheet
>> >> >> >> > Dim myCell As Range
>> >> >> >> > Dim ColNum As Integer
>> >> >> >> > Dim RwNum As Long
>> >> >> >> > Dim Basebook As Workbook
>> >> >> >> >
>> >> >> >> > With Application
>> >> >> >> > .Calculation = xlCalculationManual
>> >> >> >> > .ScreenUpdating = False
>> >> >> >> > End With
>> >> >> >> >
>> >> >> >> > 'Delete the sheet "Summary-Sheet" if it exist
>> >> >> >> > Application.DisplayAlerts = False
>> >> >> >> > On Error Resume Next
>> >> >> >> > ThisWorkbook.Worksheets("Summary-Sheet").Delete
>> >> >> >> > On Error GoTo 0
>> >> >> >> > Application.DisplayAlerts = True
>> >> >> >> >
>> >> >> >> > 'Add a worksheet with the name "Summary-Sheet"
>> >> >> >> > Set Basebook = ThisWorkbook
>> >> >> >> > Set Newsh = Basebook.Worksheets.Add
>> >> >> >> > Newsh.Name = "Summary-Sheet"
>> >> >> >> >
>> >> >> >> > 'The links to the first sheet will start in row 2
>> >> >> >> > RwNum = 1
>> >> >> >> >
>> >> >> >> > For Each Sh In Basebook.Worksheets
>> >> >> >> > If Sh.Name <> Newsh.Name And Sh.Visible Then
>> >> >> >> > ColNum = 1
>> >> >> >> > RwNum = RwNum + 1
>> >> >> >> > 'Copy the sheet name in the A column
>> >> >> >> > Newsh.Cells(RwNum, 1).Value = Sh.Name
>> >> >> >> >
>> >> >> >> > For Each myCell In Sh.Range("A1,D5:E5,Z10") '<--Change the
>> >> >> >> > range
>> >> >> >> > ColNum = ColNum + 1
>> >> >> >> > Newsh.Cells(RwNum, ColNum).Formula = _
>> >> >> >> > "='" & Sh.Name & "'!" & myCell.Address(False, False)
>> >> >> >> > Next myCell
>> >> >> >> >
>> >> >> >> > End If
>> >> >> >> > Next Sh
>> >> >> >> >
>> >> >> >> > Newsh.UsedRange.Columns.AutoFit
>> >> >> >> >
>> >> >> >> > With Application
>> >> >> >> > .Calculation = xlCalculationAutomatic
>> >> >> >> > .ScreenUpdating = True
>> >> >> >> > End With
>> >> >> >> > End Sub
>> >> >> >>
>> >> >>
>> >>

>>


 
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
Creating a summary sheet from a song book kdaniel7979 Microsoft Word Document Management 1 18th Nov 2009 02:06 PM
Creating a Summary Sheet Needing Help Microsoft Excel Misc 4 28th Apr 2009 11:48 PM
Creating summary sheet Simon Greenland Microsoft Excel Programming 5 27th Mar 2007 03:03 PM
Creating a summary sheet Patricia Microsoft Excel Misc 1 5th May 2004 02:44 AM
Creating Summary Report on Seperate Sheet onlycatfud Microsoft Excel Misc 6 4th Jan 2004 10:46 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:42 PM.