Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Random error 91
I sometimes get an error 91 with this code, but sometimes it works.
objWkb.Worksheets("Sorted Rankings").Range ("A1:B1") With Selection .HorizontalAlignment = xlCenter .VerticalAlignment = xlBottom .WrapText = False .Orientation = 0 .AddIndent = False .ShrinkToFit = False .MergeCells = True End With Any ideas? Thanks |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Random error 91
objWkb.Worksheets("Sorted Rankings").Range ("A1:B1") .Select
That is the line. Still having the error 91. -Brian |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Random error 91
It sounds like you haven't initialized the objWkb variable.
-- Cordially, Chip Pearson Microsoft MVP - Excel Pearson Software Consulting, LLC www.cpearson.com "BerkshireGuy" wrote in message oups.com... objWkb.Worksheets("Sorted Rankings").Range ("A1:B1") .Select That is the line. Still having the error 91. -Brian |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Random #VALUE! error in simple SUM formula results | Excel Worksheet Functions | |||
Non-random numbers generated by excel's data analysis random gener | Excel Worksheet Functions | |||
Non-random numbers generated by excel's data analysis random gener | Excel Discussion (Misc queries) | |||
How do I find random number in list of random alpha? (Position is. | Excel Discussion (Misc queries) | |||
Range object failed - random error | Excel Programming |