Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Simply need to copy the following range *excluding* the totals row, which is always the bottom row. Here's one of numerous attempts that doesn't work: Range("ak1").Select Range(Selection, Selection.End(xlToRight)).Select Range(Selection, Selection.End(xlDown)).Select Selection.Resize(Rows.Count - 1, Columns.Count).Select Any assistance would be greatly appreciated. Thanx. - Mike |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
This should do it
With Range("ak1") .Resize(.End(xlDown).Row - 1, .End(xlToRight).Column).Select End With -- __________________________________ HTH Bob "MikeF" wrote in message ... Simply need to copy the following range *excluding* the totals row, which is always the bottom row. Here's one of numerous attempts that doesn't work: Range("ak1").Select Range(Selection, Selection.End(xlToRight)).Select Range(Selection, Selection.End(xlDown)).Select Selection.Resize(Rows.Count - 1, Columns.Count).Select Any assistance would be greatly appreciated. Thanx. - Mike |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Bob,
Thanx for the reply. The row part of it works fine, but it's taking *all* the columns to the right, not just the 5, 6, 7, or whatever is there. Is that happening on your end as well? "Bob Phillips" wrote: This should do it With Range("ak1") .Resize(.End(xlDown).Row - 1, .End(xlToRight).Column).Select End With -- __________________________________ HTH Bob "MikeF" wrote in message ... Simply need to copy the following range *excluding* the totals row, which is always the bottom row. Here's one of numerous attempts that doesn't work: Range("ak1").Select Range(Selection, Selection.End(xlToRight)).Select Range(Selection, Selection.End(xlDown)).Select Selection.Resize(Rows.Count - 1, Columns.Count).Select Any assistance would be greatly appreciated. Thanx. - Mike |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Is this better?
With Range("ak1") .Resize(.End(xlDown).Row - 1, .End(xlToRight).Column - .Column() + 1).Select End With -- __________________________________ HTH Bob "MikeF" wrote in message ... Bob, Thanx for the reply. The row part of it works fine, but it's taking *all* the columns to the right, not just the 5, 6, 7, or whatever is there. Is that happening on your end as well? "Bob Phillips" wrote: This should do it With Range("ak1") .Resize(.End(xlDown).Row - 1, .End(xlToRight).Column).Select End With -- __________________________________ HTH Bob "MikeF" wrote in message ... Simply need to copy the following range *excluding* the totals row, which is always the bottom row. Here's one of numerous attempts that doesn't work: Range("ak1").Select Range(Selection, Selection.End(xlToRight)).Select Range(Selection, Selection.End(xlDown)).Select Selection.Resize(Rows.Count - 1, Columns.Count).Select Any assistance would be greatly appreciated. Thanx. - Mike |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Yes, that works.
Thank you. "Bob Phillips" wrote: Is this better? With Range("ak1") .Resize(.End(xlDown).Row - 1, .End(xlToRight).Column - .Column() + 1).Select End With -- __________________________________ HTH Bob "MikeF" wrote in message ... Bob, Thanx for the reply. The row part of it works fine, but it's taking *all* the columns to the right, not just the 5, 6, 7, or whatever is there. Is that happening on your end as well? "Bob Phillips" wrote: This should do it With Range("ak1") .Resize(.End(xlDown).Row - 1, .End(xlToRight).Column).Select End With -- __________________________________ HTH Bob "MikeF" wrote in message ... Simply need to copy the following range *excluding* the totals row, which is always the bottom row. Here's one of numerous attempts that doesn't work: Range("ak1").Select Range(Selection, Selection.End(xlToRight)).Select Range(Selection, Selection.End(xlDown)).Select Selection.Resize(Rows.Count - 1, Columns.Count).Select Any assistance would be greatly appreciated. Thanx. - Mike |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Exclude data from summary totals when hidden | Excel Worksheet Functions | |||
Exclude Header from Range? | Excel Discussion (Misc queries) | |||
Exclude one range from another | Excel Programming | |||
Exclude hidden data from summary totals | Excel Discussion (Misc queries) | |||
Range.Delete and Range.Resize.Name performance issues | Excel Programming |