-
Public member 'Worksheets' on type 'Worksheet' not found.
i have a excel template with 4 sheets
sheet1 & sheet4 are compulsary
but out of sheet 2 & sheet3 only one sheet shld be visible when exporting depending on the condition given in vb.net code
if the user checks sheet2 then sheet3 needs to be deleted & if the user check sheet3 on the user interface of the application then sheet2 shld be deleted
i hve written the code for the same
sheet3 gets deleted wuthout any issue but when tring to delete sheet2 i get error msg
----sheet2
ExcWS.Application.DisplayAlerts = False
ExcWS = ExcApp.Worksheets("OrderI")
ExcWS.Worksheets("Anexure-I").delete()
ExcWS.Application.DisplayAlerts = True
----sheet3
ExcWS.Application.DisplayAlerts = False
ExcWS = ExcApp.Worksheets("PurchaseI")
ExcWS.Worksheets("Anexure-I").delete()
ExcWS.Application.DisplayAlerts = True
Similar Threads
-
By laxwrestler27 in forum .NET
Replies: 3
Last Post: 03-17-2008, 04:53 PM
-
By kenn_rosie in forum ASP.NET
Replies: 1
Last Post: 12-31-2005, 11:29 AM
-
By anonymous in forum VB Classic
Replies: 1
Last Post: 12-31-2002, 12:04 AM
-
By Rober in forum VB Classic
Replies: 0
Last Post: 05-24-2002, 09:43 AM
-
By Nate in forum VB Classic
Replies: 1
Last Post: 05-23-2002, 07:52 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Development Centers
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center
|