Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Harry, You are an idiot. You didn't understand how Range.resize
resizes your range. You thougt that the arguements were relative arguments to resize the range, whereas they are absoute arguments, so where you were saying rng2 = rng1.resize(0,1); you were getting your 'application defined error' What you really meant to say was set rng2 = rng1.resize( 0 + rng1.rows.count, 1 + rng1.columns.count) Harry Tuttle wrote: Hello Could someone please tell me why when I code somthing like: rng2 = rng1.resize(4,4) ^^^^^^^^^^^^^^^^^ If you woudl have actually coded that you wouldn't have gotten an error, but instead you codded rng2 = rng1.resize(0,1), you dumbass gives me an 'application defined object error', while rng1.resize(4,4).select works fine? Thanks! |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
What you really meant to say was
set rng2 = rng1.resize(, 1 + rng1.columns.count) -- Regards, Tom Ogilvy "Harry Tuttle" wrote in message ... Harry, You are an idiot. You didn't understand how Range.resize resizes your range. You thougt that the arguements were relative arguments to resize the range, whereas they are absoute arguments, so where you were saying rng2 = rng1.resize(0,1); you were getting your 'application defined error' What you really meant to say was set rng2 = rng1.resize( 0 + rng1.rows.count, 1 + rng1.columns.count) Harry Tuttle wrote: Hello Could someone please tell me why when I code somthing like: rng2 = rng1.resize(4,4) ^^^^^^^^^^^^^^^^^ If you woudl have actually coded that you wouldn't have gotten an error, but instead you codded rng2 = rng1.resize(0,1), you dumbass gives me an 'application defined object error', while rng1.resize(4,4).select works fine? Thanks! |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Tom Ogilvy wrote:
What you really meant to say was set rng2 = rng1.resize(, 1 + rng1.columns.count) Thank! |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Function giving a result for number within a range | Excel Worksheet Functions | |||
Range().resize giving errors | Excel Programming | |||
Macro giving errors at workbook open | Excel Discussion (Misc queries) | |||
How do I add up a range of times giving answer in hrs & mins >24h. | Excel Worksheet Functions | |||
Range.Delete and Range.Resize.Name performance issues | Excel Programming |