I can't figure out why these will generate a OLE runtime error executing Sheet:rows(1):HorizontalAlignment := xlCenter
//no good #define xlCalculationAutomatic 0xFFFFEFF7 #define xlCalculationManual 0xFFFFEFD9 #define xlCenter 0xFFFFEFF4 #define xlAutomatic 0xFFFFEFF7 and these will not. //good #define xlCalculationAutomatic (0xFFFFEFF7 - 0x100000000) #define xlCalculationManual (0xFFFFEFD9 - 0x100000000) #define xlCenter (0xFFFFEFF4 - 0x100000000) #define xlAutomatic (0xFFFFEFF7 - 0x100000000) any insight appreciated. Thanks -- View this message in context: http://n2.nabble.com/OLE-tp3081505p3081505.html Sent from the harbour-devel mailing list archive at Nabble.com. _______________________________________________ Harbour mailing list Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour