Is there a limit on an Excel worksheet's name length?

后端 未结 5 971
天命终不由人
天命终不由人 2020-12-03 06:26

When I try to set a longish worksheet name using ruby and win32ole with the following code:

require \"win32ole\"
excel = WIN32OLE.new(\'Excel.Application\')
         


        
5条回答
  •  北荒
    北荒 (楼主)
    2020-12-03 06:58

    Renaming a worksheet manually in Excel, you hit a limit of 31 chars, so I'd suggest that that's a hard limit.

提交回复
热议问题