Home |
Search |
Today's Posts |
|
#1
![]() |
|||
|
|||
![]()
I'm running some code that declares rCell as a Range and steps through
a sheet using For Each rCell in ActiveSheet.UsedRange I encountered runtime error 1004, Unable to set HorizontalAlignment property of the Range class. Any thoughts as to why this is happening? Thanks! |
#2
![]() |
|||
|
|||
![]() |
#3
![]() |
|||
|
|||
![]()
Hi, Mangus-
Thanks for your response. Here's the long version of the story: as you may know Excel can generate a "Too many cell formats" error in a formatting-intensive sprdsht. I've written some code to go thru the back office tabs of this workbook and reset formats to generic. Can't explain why, but when I closed Excel and reopened the same workbook the code runs fine. And you're right, it's too late and I'm too tired to fuss with it any longer. I'm willing to chalk it up to some kind of memory... uh... flux capacitor problem. Thanks again for your come-back! |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Help: runtime error - Method seriescollection object_chart failed | Charts and Charting in Excel | |||
Runtime error for macro that works in workbook created in | Excel Discussion (Misc queries) | |||
Excel 2003 Help Runtime Error | Excel Discussion (Misc queries) | |||
Excel help giving runtime error | Excel Discussion (Misc queries) | |||
Why do I get the runtime error message430 when I start my compute. | Setting up and Configuration of Excel |