+ Reply to Thread
Results 1 to 6 of 6

dlg macro not working on 2016

  1. #1
    Registered User
    Join Date
    09-29-2016
    Location
    valencia
    MS-Off Ver
    2016
    Posts
    3

    Unhappy dlg macro not working on 2016

    Hello,
    first of all, I want to say hello to all the community.

    I have a excel file that works without problems in excel 2010, is a special macro created by Siemens company, it generates a text file based on the excel file, but on excel 2016 not works:
    1.- if a open the .xls [compatibility mode] file directly it shows that some objects can not be loaded due are not available on this equipment,
    1.1.- I run the macro " menu_on" , it adds a new "SIMATIC" tab
    1.2 in Add-ins SIMATIC ribbon I click on SIMATIC->save DB as AWL -file
    1.3 appears an error of compilation indicatins that it is not found the method or data member
    1.3 it highlights dlg.dlgFinDBFile.ShowSave


    2.- I save it in .xlsm, close and open it again
    2.1 now it is don't showed the error of the unfound objects
    2.2 when click on Add-ins SIMATIC ribbon I click on SIMATIC->save DB as AWL -file
    2.3 appears an error of compilation indicatins that it is not found the method or data member
    2.4 it highlights dlg.dlgFinDBFile.ShowSave


    Please, can someone bring light of hoe make it works in excel 2016, I tried to install framework 4.6.2, and other tools I see recommended ,but without exit.

    Thanks in advance to all the community.

  2. #2
    Forum Expert
    Join Date
    06-25-2009
    Location
    Sofia, Bulgaria, EU
    MS-Off Ver
    Excel 2003-2013
    Posts
    1,290

    Re: dlg macro not working on 2016

    It looks like you a missing some external library. in VBA editor go to Tools->References and check if you have any missing references (i.e. it will have MISSING) in front of it. In other words it's not 2010/2016 compatibility issue, but simply you a missing some software that has to be installed before you can use the Siemens macro
    If you are pleased with a member's answer then use the Star icon to rate it.

  3. #3
    Registered User
    Join Date
    09-29-2016
    Location
    valencia
    MS-Off Ver
    2016
    Posts
    3

    Re: dlg macro not working on 2016

    Quote Originally Posted by buran View Post
    It looks like you a missing some external library. in VBA editor go to Tools->References and check if you have any missing references (i.e. it will have MISSING) in front of it. In other words it's not 2010/2016 compatibility issue, but simply you a missing some software that has to be installed before you can use the Siemens macro
    Thanks for the quick reply, I am using two separated laptops,

    in the laptop with 2010 shows in References:
    ·Visual basic for applications
    ·Microsoft excel 14.0 object library
    ·Microsoft forms 2.0 object library
    ·Microsoft office 14.0 object library
    ·Microsoft common dialog control 6.0 (sp6)

    in the laptop with 2016 shows in References:
    ·Visual basic for applications
    ·Microsoft excel 16.0 object library
    ·Microsoft forms 2.0 object library
    ·Microsoft office 16.0 object library
    ·Microsoft common dialog control 6.0 (sp6)

    the rest are unmake, I don't see MISSING anywhere

    Also, I forgot the excel file, hahaha,
    please, find attached the excel document if you are interested to test

    Thanks again...
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    06-25-2009
    Location
    Sofia, Bulgaria, EU
    MS-Off Ver
    Excel 2003-2013
    Posts
    1,290

    Re: dlg macro not working on 2016

    I'm sure the problem is with missing or not properly installed Microsoft Dialog Control. You too said that some objects can not be loaded due are not available on this equipment.
    the problem is with controls on dlgFile UserForm and I've got the same warning and here is how my references window looks like:

    Screenshot 2016-09-29 17.17.01.png

    on your laptop check the location of the control and confirm that you actually have the file (for example if somehow the file was deleted by mistake and the registry key is still there)
    Last edited by buran; 09-29-2016 at 10:32 AM.

  5. #5
    Registered User
    Join Date
    09-29-2016
    Location
    valencia
    MS-Off Ver
    2016
    Posts
    3

    Re: dlg macro not working on 2016

    Quote Originally Posted by buran View Post
    I'm sure the problem is with missing or not properly installed Microsoft Dialog Control. You too said that some objects can not be loaded due are not available on this equipment.
    the problem is with controls on dlgFile UserForm and I've got the same warning and here is how my references window looks like:

    Attachment 482622

    on your laptop check the location of the control and confirm that you actually have the file (for example if somehow the file was deleted by mistake and the registry key is still there)
    Thanks again for your help, but before Microsoft common dialog control 6.0 (sp6), it is not showed the word MISSING, the file exist on laptop with date 09/03/2004

    .....

    I think I am stuck with this...

  6. #6
    Forum Expert
    Join Date
    06-25-2009
    Location
    Sofia, Bulgaria, EU
    MS-Off Ver
    Excel 2003-2013
    Posts
    1,290

    Re: dlg macro not working on 2016

    I don't have other ideas. Maybe someone else will be able to help...

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Format Cells function not working in excel 2016
    By pongmeister in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 06-08-2016, 11:58 AM
  2. Replies: 0
    Last Post: 05-17-2016, 12:39 PM
  3. Filter not working in Excel 2016
    By pongmeister in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 05-04-2016, 12:50 PM
  4. Date filter not working in Excel 2016
    By captainbridge in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-18-2016, 09:33 AM
  5. Macro From Excel 2013 Not Working in 2016
    By tm1238 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-08-2016, 04:39 PM
  6. Excel 2016 15.17 on Mac - Controls not working
    By MRock in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 2
    Last Post: 01-07-2016, 08:50 PM
  7. Replies: 9
    Last Post: 12-17-2015, 10:44 AM

Tags for this Thread

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1