Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Getting Invalid or unqualified reference error
Sub wordwrap() Sheets("Sheet1").rows("1:" & .Cells(.rows.Count, "A").End(xlUp).Row).AutoFit End Sub |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
probably becasue of .Cells and .rows.Count
remove dot and leave only Cells also you need an explicit reference for .rows.Count UsedRange.rows.Count might be an option On 5 Mar, 19:08, "Stanley Braverman" wrote: Getting Invalid or unqualified reference error Sub wordwrap() Sheets("Sheet1").rows("1:" & .Cells(.rows.Count, "A").End(xlUp).Row).AutoFit End Sub |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
invalid reference error saving 2003 file in 2007 | Excel Discussion (Misc queries) | |||
Invalid or unqualified reference error | Excel Programming | |||
Invalid Cell Reference error | Excel Worksheet Functions | |||
pesky invalid external reference error: how to track it down? | Excel Programming | |||
Another invalid or unqualified reference | Excel Programming |