Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. To find if an excel file has got VBA code in it irrespective of the version of excel(it can be any version of excel)

To find if an excel file has got VBA code in it irrespective of the version of excel(it can be any version of excel)

Scheduled Pinned Locked Moved C#
helpannouncement
2 Posts 2 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Suj_78
    wrote on last edited by
    #1

    Hi Guys, I am trying to find a property or method in Microsoft.Office.Iterop.Excel which will help me make a decision whether an excel file (can be any version of excel) has got any VBA code or macro. Can anyone help me with this. So far I have found the following property that deals only with excel 4.0 worksheets: Excel4IntlMacroSheets 'Returns a Sheets collection that represents all the Microsoft Excel 4.0 international macro sheets in the specified workbook. ' Excel4MacroSheets 'Returns a Sheets collection that represents all the Microsoft Excel 4.0 macro sheets in the specified workbook. ' Any help will be appreciated. Thanks

    happy coding!

    A 1 Reply Last reply
    0
    • S Suj_78

      Hi Guys, I am trying to find a property or method in Microsoft.Office.Iterop.Excel which will help me make a decision whether an excel file (can be any version of excel) has got any VBA code or macro. Can anyone help me with this. So far I have found the following property that deals only with excel 4.0 worksheets: Excel4IntlMacroSheets 'Returns a Sheets collection that represents all the Microsoft Excel 4.0 international macro sheets in the specified workbook. ' Excel4MacroSheets 'Returns a Sheets collection that represents all the Microsoft Excel 4.0 macro sheets in the specified workbook. ' Any help will be appreciated. Thanks

      happy coding!

      A Offline
      A Offline
      Alaric_
      wrote on last edited by
      #2

      You might want to rephrase your question in such a way that it makes it clear that you are attempting to do this in a C# implementation(Assuming that you ARE in fact trying to do this in C#) If you are not doing this in C#, you probably want to repost this in the appropriate forum. People sometimes get kind of "touchy" in here.

      "I need build Skynet. Plz send code"

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups