larrykathy
Technical User
Using Excel VBA
First I'm finding the number of columns on a sheet with data....
"TheLastCol = ActiveSheet.Cells.Find(What:="*", SearchDirection:=xlPrevious, SearchOrder:=xlByColumns).Column" This gives me say 28...
Second, I use this line.......
"FirstCol = Chr$(ColumnCounter + 64)" ...It starts at "A"
Everything is A-OK until I get to column "AA" and then it gives me a error 1004 define object. The character "FirstCol" returns is "[".
The program bombs after that.
Any ideas?
Thanks
Larry
First I'm finding the number of columns on a sheet with data....
"TheLastCol = ActiveSheet.Cells.Find(What:="*", SearchDirection:=xlPrevious, SearchOrder:=xlByColumns).Column" This gives me say 28...
Second, I use this line.......
"FirstCol = Chr$(ColumnCounter + 64)" ...It starts at "A"
Everything is A-OK until I get to column "AA" and then it gives me a error 1004 define object. The character "FirstCol" returns is "[".
The program bombs after that.
Any ideas?
Thanks
Larry