We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Programmatically changing the Worksheet that is currently visible

Trying to change the currently activateworksheet within a workbook. I have modified code on the appropriate worksheet and can see this but cannot change the currently activateworksheet to ensure that this tab is the displayed one.
Am I missing something ?

Dim SourceTab = ComboBox3.Text
If String.IsNullOrWhiteSpace(SourceTab) Then
Exit Sub
End If
'Some code to change the content on the Spreadsheet2.Workbook.Worksheets(SourceTab)
Spreadsheet2.ActiveSheet = Spreadsheet2.Workbook.Worksheets(SourceTab)

2 Replies

SP Spotty December 23, 2018 01:25 AM UTC

figured it out and used 


AA Arulraj A Syncfusion Team December 24, 2018 01:42 AM UTC

Hi Spotty, 

Thanks for the update. 

We are glad to know that the reported problem has been resolved at your end. Please let us know if you have any further queries on this. We are happy to help you. 

Arulraj A 

Live Chat Icon For mobile
Up arrow icon