to get the number of columns
Assuming row 1 has data to the last column
ColCount = cells(1,columns.count).end(xltoleft).column
--
joel
------------------------------------------------------------------------
joel's Profile: 229
View this thread:
http://www.thecodecage.com/forumz/sh...d.php?t=165640
Microsoft Office Help