设置Spread Sheet 选择模式,普通OR单行


Public Sub SetSpreadStyle(AnySs As vaSpread, aFlg As Boolean)

    
With AnySs
        
If aFlg = True Then
            .AutoClipboard 
= False
            .EditModePermanent 
= False
            .OperationMode 
= OperationModeSingle
            .ProcessTab 
= False
            .ScrollBarExtMode 
= True
        
Else
            .AutoClipboard 
= True
            .EditModePermanent 
= True
            .OperationMode 
= OperationModeNormal
            .ProcessTab 
= True
            .ScrollBarExtMode 
= False
        
End If
    
End With

End Sub


原文地址:https://www.cnblogs.com/sekihin/p/688189.html
Creative Commons License 本作品采用 知识共享署名-非商业性使用 2.5 中国大陆许可协议进行许可。