2016-10-28 3 views
0

Was kann ich außer Schaltfläche in Online-Excel verwenden? Es ist nicht erlaubt:Toggle-Taste in Excel Online

We can't show these features in the browser:

• Objects like form toolbar controls, toolbox controls, and ActiveX controls But you can see all the content in this workbook by opening the file in Excel.

Ich wollte nur Endanwender Lösung für Hidding geben/viele Spaltengruppe zeigt.

Private Sub ToggleButton1_Click() 
Dim xAddress As String 
xAddress = "L:P" 
If ToggleButton1.Value Then 
    Application.ActiveSheet.Columns(xAddress).Hidden = True 
Else 
    Application.ActiveSheet.Columns(xAddress).Hidden = False 
End If 
End Sub 

Antwort

1

Sie können eine CheckBox verwenden.

If CheckBox1.Value = True Then 
    Application.ActiveSheet.Columns(xAddress).Hidden = True 
Else 
    Application.ActiveSheet.Columns(xAddress).Hidden = False 
End If 
+0

Ich änderte Knopf und Code und ich bekam Fehler: https://msdn.microsoft.com/en-us/library/office/gg251554(v=office.15).aspx – Testtest11

+0

und Kontrollkästchen auch aren 't erlaubt https://support.office.com/en-us/article/Add-a-check-box-in-Excel-Online-EE90CCF4-AD25-4EFD-9855-F5B062C3F664 – Testtest11

Verwandte Themen