davidktw
Arch-Supremacy Member
- Joined
- Apr 15, 2010
- Messages
- 13,550
- Reaction score
- 1,302
davidktw....davidktw... davidktw...
Just been to hell and back. You cryptically talked about #######.
It's nightmare on Elms Street.Freaking perl just don't know what to do with it. Hang !
All you need to do is to tell me to blast {ColumnWidth} wide open.
I just don't understand ++ increment just don't work on number from column or row position e.g. $j=$sheet->UsedRange->Cells(1,1)->End(xlToRight)->{Column}; $j++; This darn thingy doesn't work. It has to be $j=$j+1;
So you see..... It was hell. Just sharing so that those who use this thingy don't fall into the trap. Lesson learn.:
Didn't I told you not to use the "Text" property and mentioned it is a formatted string which is affected by the column length of the excel column ? I wouldn't ask you to adjust the ColumnWidth because it is not the right way to use "Text" property for your purpose.
As for the $j++, it works in Perl, I'm not sure how your codes are doing it and if you are doing it right or has they being overloaded. Read http://perldoc.perl.org/overload.html


So, sure can... $j++; $k=$j; 