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
  1. Home
  2. The Lounge
  3. Excel mystery

Excel mystery

Scheduled Pinned Locked Moved The Lounge
helpquestion
38 Posts 16 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 salowist

    Do you know if any of the Korean users can add a module manually?

    R Offline
    R Offline
    Rage
    wrote on last edited by
    #28

    Yes, they can add modules, and remove them from other working excel files.

    S 1 Reply Last reply
    0
    • R Rage

      Yes, they can add modules, and remove them from other working excel files.

      S Offline
      S Offline
      salowist
      wrote on last edited by
      #29

      Have you tried converting the spreadsheet to 2007? It would require security changes but it may just work. I have a vbs script that adds trusted locations via the registry if you need.

      R 1 Reply Last reply
      0
      • S salowist

        Have you tried converting the spreadsheet to 2007? It would require security changes but it may just work. I have a vbs script that adds trusted locations via the registry if you need.

        R Offline
        R Offline
        Rage
        wrote on last edited by
        #30

        Yes ( I mentioned that in my OP IIRC), and it did not help ( same behaviour, same error messages), both as .xls and as .xlsm. There was actually no necessary security changes, as everything was set on "allowed". Can you PM me your script ? This sounds interesting ! Thanks !

        S 1 Reply Last reply
        0
        • R Rage

          So we are just facing a mystery here, maybe can someone throw some light on it. We have an 2003 Excel spreadsheet (format .xls) with macros, which is used in several locations in the world on Office 2007 without problem. But Korea. When they try and open the file, the modules just vanished, and there is no VBA code anymore. Two error messages appear : "Modules not found", and "Excel found unreadable content". Has anybody a clue ? (Dear hamsters, feel free to move this message, if not appropriate here. I am just trying to hit the mass, because I have no idea where to begin with).

          ~RaGE();

          I think words like 'destiny' are a way of trying to find order where none exists. - Christian Graus Do not feed the troll ! - Common proverb

          S Offline
          S Offline
          snowman53
          wrote on last edited by
          #31

          Is it possible they custom installed Office and left out the VBA support?

          R 1 Reply Last reply
          0
          • S snowman53

            Is it possible they custom installed Office and left out the VBA support?

            R Offline
            R Offline
            Rage
            wrote on last edited by
            #32

            Custom installed, yes. Left out VBA support, no, they have been using Office successfully for the last two years, so it must be something in the file.

            S 1 Reply Last reply
            0
            • R Rage

              Yes ( I mentioned that in my OP IIRC), and it did not help ( same behaviour, same error messages), both as .xls and as .xlsm. There was actually no necessary security changes, as everything was set on "allowed". Can you PM me your script ? This sounds interesting ! Thanks !

              S Offline
              S Offline
              salowist
              wrote on last edited by
              #33

              Sorry, didn't catch that in your orig post. Have you tried saving it as an xlsb (Binary Workbook) file or ,depending on what your code does, as an xlam (Add-In)? Here is the vbs script to add a trusted location to an office program

                  Dim WshWhell
              Set WshShell = CreateObject("WScript.Shell")
              
              'Acceptable Office Version Values: 2003 = 11.0, 2007=12.0, 2010=14.0
                  'Acceptable Program Values: Excel,Access, Outlook, PowerPoint, Word, Visio.
                  'There is a "Common" program group that may possibly be used but I haven't tried it yet.
              	'The location ID is a unique value such as "LOCATION99"
              
              RegEdPath= "HKEY\_CURRENT\_USER\\SOFTWARE\\MICROSOFT\\OFFICE\\(Office Version)\\(Program)\\SECURITY\\TRUSTED LOCATIONS\\(LocationID)\\"
              
              WshShell.RegWrite  RegEdPath  , ""
              	WshShell.RegWrite  RegEdPath & "PATH" , "C:\\MyTrustedPath"
              	WshShell.RegWrite  RegEdPath & "Description" , "Description"		
              	WshShell.RegWrite  RegEdPath & "AllowsubFolder" , 1 , "REG\_DWORD"
              
              1 Reply Last reply
              0
              • R Rage

                Custom installed, yes. Left out VBA support, no, they have been using Office successfully for the last two years, so it must be something in the file.

                S Offline
                S Offline
                snowman53
                wrote on last edited by
                #34

                Rage wrote:

                have been using Office successfully for the last two years

                A little unclear - does that mean they have been using other Excel VBA modules? If yes, I would suggest getting a copy of one that works and look for differences. If they have been running Office, but not using VBA modules, you might try reinstalling office.

                R 1 Reply Last reply
                0
                • S snowman53

                  Rage wrote:

                  have been using Office successfully for the last two years

                  A little unclear - does that mean they have been using other Excel VBA modules? If yes, I would suggest getting a copy of one that works and look for differences. If they have been running Office, but not using VBA modules, you might try reinstalling office.

                  R Offline
                  R Offline
                  Rage
                  wrote on last edited by
                  #35

                  They have been using MS Excel for two years with other workbooks without problems. They have only issues with one particular workbook, that they have tested on six machines, and which fails on all of them with the symptoms I explained. This workbook is actually a tool; the version we have sent has been completely reworked when compared to the last version one year ago, so it has almost nothing to do with it anymore. As a side note, the new version of the workbook is working properly in USA, Japan and China.

                  1 Reply Last reply
                  0
                  • R Rage

                    So we are just facing a mystery here, maybe can someone throw some light on it. We have an 2003 Excel spreadsheet (format .xls) with macros, which is used in several locations in the world on Office 2007 without problem. But Korea. When they try and open the file, the modules just vanished, and there is no VBA code anymore. Two error messages appear : "Modules not found", and "Excel found unreadable content". Has anybody a clue ? (Dear hamsters, feel free to move this message, if not appropriate here. I am just trying to hit the mass, because I have no idea where to begin with).

                    ~RaGE();

                    I think words like 'destiny' are a way of trying to find order where none exists. - Christian Graus Do not feed the troll ! - Common proverb

                    C Offline
                    C Offline
                    Clumpco
                    wrote on last edited by
                    #36

                    Could the error messages be about "an invalid object library or object references not found"? (I know the problems translating errors from EN->Other->EN). If so, search and destroy any *.exd files under appdata (Vista/7) or Application Data (XP) Also turn off Excel file validation. [HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Excel\Security\FileValidation] "DisableEditFromPV"=dword:00000000 "EnableOnload"=dword:00000000 What happens if you send the module code as a text and then paste it into the Korean module and then save, close reload? Does it still disappear?

                    1 Reply Last reply
                    0
                    • V virang_21

                      Rage wrote:

                      But Korea.

                      Which Korea ? Naughty Korea or Nice Korea ? :)

                      Zen and the art of software maintenance : rm -rf * Math is like love : a simple idea but it can get complicated.

                      D Offline
                      D Offline
                      djdanlib 0
                      wrote on last edited by
                      #37

                      This image macro seems appropriate. North Korea is Best Korea[^]

                      1 Reply Last reply
                      0
                      • R Rage

                        So we are just facing a mystery here, maybe can someone throw some light on it. We have an 2003 Excel spreadsheet (format .xls) with macros, which is used in several locations in the world on Office 2007 without problem. But Korea. When they try and open the file, the modules just vanished, and there is no VBA code anymore. Two error messages appear : "Modules not found", and "Excel found unreadable content". Has anybody a clue ? (Dear hamsters, feel free to move this message, if not appropriate here. I am just trying to hit the mass, because I have no idea where to begin with).

                        ~RaGE();

                        I think words like 'destiny' are a way of trying to find order where none exists. - Christian Graus Do not feed the troll ! - Common proverb

                        S Offline
                        S Offline
                        suob77
                        wrote on last edited by
                        #38

                        I had a similar problem in a PC with Arabic windows, some users install the Arabic keyboard language but the ”Language for non-Unicode programs” setting is kept default to “English”, if the file is located at the desktop or document folder (and the user name is in Arabic), or any path that might have a folder named in Korean it might cause a problem.
                        You can instruct the user to move the file to c:\ drive or “c:\any all English folder path\format.xls“,just don’t open it from desktop.

                        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