+ Reply to Thread
Results 1 to 19 of 19

code problem excel 2003 to 2010

  1. #1
    Registered User
    Join Date
    01-07-2014
    Location
    United States
    MS-Off Ver
    Excel 2003, 2010
    Posts
    15

    code problem excel 2003 to 2010

    I have this code assigned to a button in excel 2003 but when I open the file in excel 2010 the button does not work. Any help would be appreciated. The file is opened in compatibility mode. It's .xls

    Thanks!

    Please Login or Register  to view this content.
    Last edited by 6StringJazzer; 01-08-2014 at 10:34 AM. Reason: code tags

  2. #2
    Forum Expert
    Join Date
    11-28-2012
    Location
    Guatemala
    MS-Off Ver
    Excel 2010
    Posts
    2,394

    Re: code problem excel 2003 to 2010

    Excel 2010 disables macros specially if the file is xls and not xlsm could that be the problem. It also request permission for the macros to be enabled

  3. #3
    Forum Contributor HerryMarkowitz's Avatar
    Join Date
    09-10-2012
    Location
    Europe
    MS-Off Ver
    Office 2021 - Win10
    Posts
    1,014

    Re: code problem excel 2003 to 2010

    Try enclosed file.
    Attached Files Attached Files
    Sub DontForgetThese()
         If Your thread includes any code Then Please use code tags...
         If Your thread has been solved Then Please mark as solved...
         If Anybody has helped to you Then Please add reputation...
    End Sub

  4. #4
    Registered User
    Join Date
    01-07-2014
    Location
    United States
    MS-Off Ver
    Excel 2003, 2010
    Posts
    15

    Re: code problem excel 2003 to 2010

    OK. So I guess the only way to make this work in 2010 is to save it as an .xlsm? Thanks!

    The xlsm by Herry works fine.

  5. #5
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,788

    Re: code problem excel 2003 to 2010

    Quote Originally Posted by rwstarkey View Post
    OK. So I guess the only way to make this work in 2010 is to save it as an .xlsm?
    No its not like that... When the file opens just Click Enable Macros thats enough


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  6. #6
    Registered User
    Join Date
    01-07-2014
    Location
    United States
    MS-Off Ver
    Excel 2003, 2010
    Posts
    15

    Re: code problem excel 2003 to 2010

    Something is odd because it doesn't give me the option of enabling macros, I've got all macro security wide open right now in 2010, but when I open the .xls file the button does not work at all and the view macros shows no macros at all. I'm wondering if the way I attached the VBA code to the button in 2003 is somehow not working in 2010? It's been awhile so I can't remember exactly how I did that button design in 2003.

    ideas?

    Thanks!

  7. #7
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,788

    Re: code problem excel 2003 to 2010

    Ok... Whether it is a ActiveX control if not you can pick that macro by pressing Alt+F8 and run it.

    Please check and confirm

    Another option just add that workbook path in trusted location and check, because the trusted location path files will have full rights to run macros automatically which prompting to enable macros

  8. #8
    Registered User
    Join Date
    01-07-2014
    Location
    United States
    MS-Off Ver
    Excel 2003, 2010
    Posts
    15

    Re: code problem excel 2003 to 2010

    That's the problem. No macros show up. So somehow code that works on that button in 2003 doesn't show up as a macro in 2010, and also won't run via the button. I can see it in VBA when I go to design / show code, but the button is unresponsive and no macros are showing. Ugh.

  9. #9
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,788

    Re: code problem excel 2003 to 2010

    Open the 2003 file Just create a new button and assign the macro and check

  10. #10
    Registered User
    Join Date
    01-07-2014
    Location
    United States
    MS-Off Ver
    Excel 2003, 2010
    Posts
    15

    Re: code problem excel 2003 to 2010

    OK. I wonder how I assigned VBA code to that button orginally? :-)

  11. #11
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,788

    Re: code problem excel 2003 to 2010

    I believe it is a Active-x control

    What menu its showing when you right click the Button.

  12. #12
    Registered User
    Join Date
    01-07-2014
    Location
    United States
    MS-Off Ver
    Excel 2003, 2010
    Posts
    15

    Re: code problem excel 2003 to 2010

    Yeah it's showing view code, not select macro. So that won't transfer directly to 2010? Thanks!

  13. #13
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,788

    Re: code problem excel 2003 to 2010

    Click View code and copy the code and Just create a new activex control and do right click and select view code and paste it

  14. #14
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 365 on Win11 (desktop), 2019 on Win11 (notebook)
    Posts
    8,198

    Re: code problem excel 2003 to 2010

    Hi, rwstarkey,

    Your opening post does not comply with Rule 3 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here



    (This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7)

    Ciao,
    Holger
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

  15. #15
    Registered User
    Join Date
    01-07-2014
    Location
    United States
    MS-Off Ver
    Excel 2003, 2010
    Posts
    15

    Re: code problem excel 2003 to 2010

    Looks like the buttons in 2003 were corrupt or old or just not compatible with 2010. I recreated them and they then worked in 2010. Thanks!

  16. #16
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2502
    Posts
    26,822

    Re: code problem excel 2003 to 2010

    rwstarkey, you posted soon after HaHoBe so I assume you missed his request and I won't cite you for ignoring the request to follow our rules. Please take the time to review our rules. There aren't many, and they are all important.

    I have updated your post because you are a new member but please use CODE tags next time.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  17. #17
    Registered User
    Join Date
    01-07-2014
    Location
    United States
    MS-Off Ver
    Excel 2003, 2010
    Posts
    15

    Re: code problem excel 2003 to 2010

    OK. My apologies. I'm used to free-flowing open forums mostly so I'll review how it rolls here and do that for sure. Thanks!

  18. #18
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2502
    Posts
    26,822

    Re: code problem excel 2003 to 2010

    No harm done. I participate on a general purpose discussion board that basically has no rules except "don't be a jerk." On this board, in contrast, we're more structured because the board has a particular focus and we want every thread to be informative and beneficial. So we want good thread titles so they can be found with searches, code tags for readability, notice if you cross-post so people don't waste time solving a problem that's already been solved somewhere else, etc.

    Welcome and I hope you enjoy the community here!

  19. #19
    Registered User
    Join Date
    01-07-2014
    Location
    United States
    MS-Off Ver
    Excel 2003, 2010
    Posts
    15

    Re: code problem excel 2003 to 2010

    OK. Thanks.

+ 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. Excel 2003 to Excel 2010 and back to Excel 2003 problem
    By keops9876 in forum Excel General
    Replies: 1
    Last Post: 02-02-2013, 07:30 PM
  2. Macro works fine in 2010, Crashing in 2003 - Posting problem code - Please Help?
    By RDAmidwest in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-11-2012, 04:14 PM
  3. Code won't work in Excel 2003, but will in 2007/2010
    By Mak2145 in forum Excel Programming / VBA / Macros
    Replies: 21
    Last Post: 03-30-2012, 12:23 PM
  4. Code From 2003 to 2010 excel not working
    By realniceguy5000 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 07-20-2011, 12:41 PM
  5. Code error, after switching to Excel 2010, from 2003
    By EMoe in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-01-2011, 05:12 PM

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