diff --git a/sc/source/filter/html/htmlexp.cxx b/sc/source/filter/html/htmlexp.cxx
index 538eb092abbce23182bbc6389bacfe0a831bc318..af0689abe279e45d3126e402ae5856b5eecae998 100644
--- a/sc/source/filter/html/htmlexp.cxx
+++ b/sc/source/filter/html/htmlexp.cxx
@@ -769,7 +769,11 @@ void ScHTMLExport::WriteTables()
             while( nCol <= nEndCol )
             {
                 if( pDoc->ColHidden(nCol, nTab) )
+                {
+                    ++nCol;
                     continue;
+                }
+
                 if( nWidth != ToPixel( pDoc->GetColWidth( nCol, nTab ) ) )
                 {
                     if( nSpan != 0 )