Page 1 of 2 12 LastLast
Results 1 to 40 of 48

Thread: open excel worksheet in vb.net

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Mar 2006
    Posts
    22

    open excel worksheet in vb.net

    I can open the workbook but cant open the worksheet i need.
    Here is the code i have so far.....

    Private Sub btnstaff_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnstaff.Click

    Dim ApExcel As Object 'To open Excel

    ApExcel = CreateObject("Excel.application") 'Creates an object
    ApExcel.Visible = True ' So you can see Excel
    ApExcel.Workbooks.open("C:\documents and settings\mike\desktop\dss.xls")


    I want to be able to define the worksheet (in this case, sheet 3)

    Please help

  2. #2
    Addicted Member bgard68's Avatar
    Join Date
    Mar 2006
    Location
    Arkansas
    Posts
    164

    Re: open excel worksheet in vb.net

    Using Framework 1.1, VB.Net 2003 unless I
    state otherwise

  3. #3
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: open excel worksheet in vb.net

    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  4. #4

    Thread Starter
    Junior Member
    Join Date
    Mar 2006
    Posts
    22

    Re: open excel worksheet in vb.net

    ok...i have tried the following but keep getting error message saying "member not found" which is found on the line with a * next to it.

    Dim oExcel As Object

    Dim oWorkBook As Excel.Workbook
    Dim oWorkSheet As Excel.Worksheet

    oExcel = CreateObject("Excel.application")
    oExcel.Visible = True
    oWorkBook = oExcel.Workbooks.Open("C:\documents and settings\mike\desktop\dss.xls")

    * oWorkSheet = oWorkBook.Worksheets(3)*
    oWorkSheet.Activate()

    with regard to the (3) after worksheets, i have tried various different ways, all return the same error message.
    I dont want to add any data to any cell, i just want to be able to view different sheets.
    Last edited by mike7510uk; Mar 20th, 2006 at 12:15 PM.

  5. #5
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: open excel worksheet in vb.net

    Did you add a reference to Excel?
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  6. #6

    Thread Starter
    Junior Member
    Join Date
    Mar 2006
    Posts
    22

    Re: open excel worksheet in vb.net

    yes i did add the reference.

    But just in case i did it wrong, please can you explain how i should have done it

    thanks

  7. #7
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: open excel worksheet in vb.net

    Which version are you running of VB?

    For 2003 its Project > Add Reference... > Select MS Excel xx.0 Object Library > Ok.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  8. #8

    Thread Starter
    Junior Member
    Join Date
    Mar 2006
    Posts
    22

    Re: open excel worksheet in vb.net

    i am running VB.net
    I did do it right before, so yes i have added the refernece but am still getting the same "member not found" message

  9. #9
    Addicted Member bgard68's Avatar
    Join Date
    Mar 2006
    Location
    Arkansas
    Posts
    164

    Re: open excel worksheet in vb.net

    Do you have 4 worksheets or 3 worksheets?

    If you have 3 worksheets then try:
    'Zero based!
    oWorkSheet = oWorkBook.Worksheets(2)
    Using Framework 1.1, VB.Net 2003 unless I
    state otherwise

  10. #10
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: open excel worksheet in vb.net

    There are 3 different year versions and multiple types of VB.NET. You can have 2002, 2003, 2005. And also, Express, Standard, Pro, Architect, etc.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  11. #11

    Thread Starter
    Junior Member
    Join Date
    Mar 2006
    Posts
    22

    Re: open excel worksheet in vb.net

    i have 6 worksheets, i can get Excel to open if i leave out the.....

    'oWorkSheet = oWorkBook.Worksheets(3)
    'oWorkSheet.Activate()


    ....code. Just cant go to the sheet i want. ( I have six sheets and six buttons, each button should open up the correct sheet)

  12. #12

    Thread Starter
    Junior Member
    Join Date
    Mar 2006
    Posts
    22

    Re: open excel worksheet in vb.net

    I am running 2003 version

  13. #13
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: open excel worksheet in vb.net

    See post #9.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  14. #14

    Thread Starter
    Junior Member
    Join Date
    Mar 2006
    Posts
    22

    Re: open excel worksheet in vb.net

    Quote Originally Posted by RobDog888
    See post #9.

    still not working...still comes up with the member not found message

  15. #15
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: open excel worksheet in vb.net

    Which line is the error message pointing to?
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  16. #16

    Thread Starter
    Junior Member
    Join Date
    Mar 2006
    Posts
    22

    Re: open excel worksheet in vb.net

    * oWorkSheet = oWorkBook.Worksheets(3)*

    thats the error line. (the (3) i have tried alternatives but still the same outcome

  17. #17
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: open excel worksheet in vb.net

    VB Code:
    1. oWorkSheet = oWorkBook.Worksheets.Items(3)
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  18. #18
    Addicted Member bgard68's Avatar
    Join Date
    Mar 2006
    Location
    Arkansas
    Posts
    164

    Re: open excel worksheet in vb.net

    try:

    oWorkSheet = oWorkBook.Worksheets("myWorkSheetName")
    oWorkSheet.Activate()
    Using Framework 1.1, VB.Net 2003 unless I
    state otherwise

  19. #19

    Thread Starter
    Junior Member
    Join Date
    Mar 2006
    Posts
    22

    Re: open excel worksheet in vb.net

    Dim oExcel As Object

    Dim oWorkBook As Excel.Workbook
    Dim oWorkSheet As Excel.Worksheet

    oExcel = CreateObject("Excel.application")
    oExcel.Visible = True
    oWorkBook = oExcel.Workbooks.Open("C:\documents and settings\mike\desktop\dss.xls")



    oWorkSheet = oWorkBook.Worksheets.Items(3)
    oWorkSheet.Activate()

    the above code is all the code i have relating to the button...

    the same error message appears (even after i did the .items(3) bit)

  20. #20

    Thread Starter
    Junior Member
    Join Date
    Mar 2006
    Posts
    22

    Re: open excel worksheet in vb.net

    Quote Originally Posted by bgard68
    try:

    oWorkSheet = oWorkBook.Worksheets("myWorkSheetName")
    oWorkSheet.Activate()

    no, still the same error message

  21. #21
    Addicted Member bgard68's Avatar
    Join Date
    Mar 2006
    Location
    Arkansas
    Posts
    164

    Re: open excel worksheet in vb.net

    What version of Excel are you running ?
    Using Framework 1.1, VB.Net 2003 unless I
    state otherwise

  22. #22
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: open excel worksheet in vb.net

    VB Code:
    1. oWorkSheet = oWorkBook.Sheets.Items(2)
    Forgot to make the adjustment to sheet 3. Try the Sheets collection instead.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  23. #23

    Thread Starter
    Junior Member
    Join Date
    Mar 2006
    Posts
    22

    Re: open excel worksheet in vb.net

    Quote Originally Posted by bgard68
    What version of Excel are you running ?

    also 2003 for excel

  24. #24

    Thread Starter
    Junior Member
    Join Date
    Mar 2006
    Posts
    22

    Re: open excel worksheet in vb.net

    Quote Originally Posted by RobDog888
    VB Code:
    1. oWorkSheet = oWorkBook.Sheets.Items(2)
    Forgot to make the adjustment to sheet 3. Try the Sheets collection instead.
    still the same message

  25. #25
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: open excel worksheet in vb.net

    Not sure whats different in your workbook but this is what I usually do from my link I posted earlier.
    VB Code:
    1. Dim oWB As Excel.Workbook = moApp.Workbooks.Add
    2. Dim oSht As Excel.Worksheet = DirectCast(oWB.Sheets("Sheet1"), Excel.Worksheet)
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  26. #26

    Thread Starter
    Junior Member
    Join Date
    Mar 2006
    Posts
    22

    Re: open excel worksheet in vb.net

    Quote Originally Posted by RobDog888
    Not sure whats different in your workbook but this is what I usually do from my link I posted earlier.
    VB Code:
    1. Dim oWB As Excel.Workbook = moApp.Workbooks.Add
    2. Dim oSht As Excel.Worksheet = DirectCast(oWB.Sheets("Sheet1"), Excel.Worksheet)

    where does "moApp" come from?

  27. #27
    Hyperactive Member
    Join Date
    Mar 2006
    Posts
    413

    Re: open excel worksheet in vb.net

    its been awhile, but I think you need to cast everthing.

    Here is some stuff I pulled out of my code VB.net 2003 & office 2003


    VB Code:
    1. xlApp = CType(CreateObject("Excel.Application"), Excel.Application)
    2. xlBook = CType(xlApp.Workbooks.Open(sFileName), Excel.Workbook)
    3. xlSheet = CType(xlApp.ActiveSheet, Excel.Worksheet)
    4. xlSheet = CType(xlBook.Worksheets.Item(1), Excel.Worksheet
    Last edited by PENNYSTOCK; Mar 20th, 2006 at 01:32 PM.

  28. #28

    Thread Starter
    Junior Member
    Join Date
    Mar 2006
    Posts
    22

    Re: open excel worksheet in vb.net

    Quote Originally Posted by PENNYSTOCK
    its been awhile, but I think you need to cast everthing.

    Here is some stuff I pulled out of my code VB.net 2003 & office 2003


    VB Code:
    1. xlApp = CType(CreateObject("Excel.Application"), Excel.Application)
    2. xlBook = CType(xlApp.Workbooks.Open(sFileName), Excel.Workbook)
    3. xlSheet = CType(xlApp.ActiveSheet, Excel.Worksheet)

    where does that code go?

  29. #29
    Hyperactive Member
    Join Date
    Mar 2006
    Posts
    413

    Re: open excel worksheet in vb.net

    Like this.
    VB Code:
    1. Dim oExcel As Object
    2.  
    3. Dim oWorkBook As Excel.Workbook
    4. Dim oWorkSheet As Excel.Worksheet
    5.  
    6. oExcel = ctype(CreateObject("Excel.application"), Excel.Application)
    7. oExcel.Visible = True
    8. oWorkBook = ctype(oExcel.Workbooks.Open("C:\documents and settings\mike\desktop\dss.xls"), Excel.Workbook)
    9.  
    10.  
    11.  
    12. oWorkSheet = ctype(oWorkBook.Worksheets.Items(3),Excel.Worksheet)
    13. oWorkSheet.Activate()

  30. #30

    Thread Starter
    Junior Member
    Join Date
    Mar 2006
    Posts
    22

    Re: open excel worksheet in vb.net

    Quote Originally Posted by PENNYSTOCK
    Like this.
    VB Code:
    1. Dim oExcel As Object
    2.  
    3. Dim oWorkBook As Excel.Workbook
    4. Dim oWorkSheet As Excel.Worksheet
    5.  
    6. oExcel = ctype(CreateObject("Excel.application"), Excel.Application)
    7. oExcel.Visible = True
    8. oWorkBook = ctype(oExcel.Workbooks.Open("C:\documents and settings\mike\desktop\dss.xls"), Excel.Workbook)
    9.  
    10.  
    11.  
    12. oWorkSheet = ctype(oWorkBook.Worksheets.Items(3),Excel.Worksheet)
    13. oWorkSheet.Activate()
    it still says "member not found" (refering to the 'oWorkSheet = ctype(oWorkBook.Worksheets.Items(3),Excel.Worksheet)' line)

  31. #31
    Hyperactive Member
    Join Date
    Mar 2006
    Posts
    413

    Re: open excel worksheet in vb.net

    One last thing to try that I can see.
    Change
    Dim oExcel As Object
    to
    Dim oExcel As Excel.Application

  32. #32

    Thread Starter
    Junior Member
    Join Date
    Mar 2006
    Posts
    22

    Re: open excel worksheet in vb.net

    still the same error message

  33. #33
    Hyperactive Member
    Join Date
    Mar 2006
    Posts
    413

    Re: open excel worksheet in vb.net

    Since you have visable set to True, do you see the excel file opening? Do you exit excel before you re-run the program?

  34. #34

    Thread Starter
    Junior Member
    Join Date
    Mar 2006
    Posts
    22

    Re: open excel worksheet in vb.net

    Quote Originally Posted by PENNYSTOCK
    Since you have visable set to True, do you see the excel file opening? Do you exit excel before you re-run the program?

    yes, excel opens, then the error message, when the error message is cancelled, i have to close excel. so it opens, just not on the sheet i want

  35. #35
    Hyperactive Member
    Join Date
    Mar 2006
    Posts
    413

    Re: open excel worksheet in vb.net

    repost your this function again. The whole function.

  36. #36

    Thread Starter
    Junior Member
    Join Date
    Mar 2006
    Posts
    22

    Re: open excel worksheet in vb.net

    Private Sub btnstaff_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnstaff.Click




    Dim oExcel As Object
    Dim oWorkBook As Excel.Workbook
    Dim oWorkSheet As Excel.Worksheet

    oExcel = CType(CreateObject("Excel.application"), Excel.Application)
    oExcel.Visible = True
    oWorkBook = CType(oExcel.Workbooks.Open("C:\documents and settings\mike\desktop\dss.xls"), Excel.Workbook)



    oWorkSheet = CType(oWorkBook.Worksheets.Items(3), Excel.Worksheet)
    oWorkSheet.Activate()



    End Sub

  37. #37
    Hyperactive Member
    Join Date
    Mar 2006
    Posts
    413

    Re: open excel worksheet in vb.net

    take the "s" of item

    VB Code:
    1. oWorkSheet = CType(oWorkBook.Worksheets.Items(3), Excel.Worksheet)
    2.  
    3. should be
    4.  
    5. oWorkSheet = CType(oWorkBook.Worksheets.Item(3), Excel.Worksheet)

  38. #38

    Thread Starter
    Junior Member
    Join Date
    Mar 2006
    Posts
    22

    Re: open excel worksheet in vb.net

    done that, still says the same error message.."member not found"

  39. #39
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: open excel worksheet in vb.net

    You never confirmed how many sheets you have in your workbook? The Items collection is zero based.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  40. #40
    Hyperactive Member
    Join Date
    Mar 2006
    Posts
    413

    Re: open excel worksheet in vb.net

    What excel do you running based on your references.

    I have all three of these in my refs:

    Excel 11 Ver 1.5
    microsoft.office.core 11 Ver 2.3
    VBIDE 5.3 ver 5.3

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width