+ Reply to Thread
Results 1 to 7 of 7

Problem with compatibility on other devices??

  1. #1
    Registered User
    Join Date
    06-24-2016
    Location
    France
    MS-Off Ver
    2010
    Posts
    8

    Problem with compatibility on other devices??

    Hello,

    I have a weird problem with my VBA program on excel... My program runs fine on my computer, but i decided to put it on a other device to test it.
    It appears that the command buttons won't react when i click on them... I can launch the userforms from the F5 function but not from my original command buttons.
    Then i decided to create a new sheet, and added a command button with the command to open the userform and it works ! This could've been a solution but the thing is VBA doesn't recognize the ranges when i call for a sheet. For example when i call the value of A1 cell in my first sheet (Sheets(1).range("A1").value) it pops up an error. But when i call for a value in A1 cell of one of the newly created sheets it does work! i don't understand why it does that.

    Thanks for the help!

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,463

    Re: Problem with compatibility on other devices??

    You'll need to post a sample workbook otherwise it's all guesswork.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    06-24-2016
    Location
    France
    MS-Off Ver
    2010
    Posts
    8

    Re: Problem with compatibility on other devices??

    Ok so my code on my first worksheet:

    Please Login or Register  to view this content.
    Simple as that. The userform won't show up when i click on the command button. Now if i launch the userform from F5:

    Please Login or Register  to view this content.
    The error goes on the line with the sheet selection
    This code works fine on the computer where it was created. But not on another device.

    Now weird thing is, if i add a new sheet and create a new code on the new sheet:
    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Same code, it works fine...

  4. #4
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Problem with compatibility on other devices??

    Hi,

    Are you using ActiveX buttons? If you are, I would recommend replacing them all with Form buttons instead.
    Don
    Please remember to mark your thread 'Solved' when appropriate.

  5. #5
    Registered User
    Join Date
    06-24-2016
    Location
    France
    MS-Off Ver
    2010
    Posts
    8

    Re: Problem with compatibility on other devices??

    Ok thanks that does work for my button problem, but still the sheets selection won't work at all...

  6. #6
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Problem with compatibility on other devices??

    Unfortunately whnever I have seen mention of this problem with ActiveX controls, the solution involves recreating all the affected sheets. However this should only need doing once since you have replaced all the activex controls.

  7. #7
    Registered User
    Join Date
    06-24-2016
    Location
    France
    MS-Off Ver
    2010
    Posts
    8

    Re: Problem with compatibility on other devices??

    Yes it does! i didn't even see, but it actually works :D
    Thank you very much!

+ 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. [SOLVED] SaveAS Filename compatibility problem
    By davidm_uk in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 03-21-2014, 10:35 AM
  2. [SOLVED] Backward compatibility problem
    By 1eyedjack in forum Excel General
    Replies: 1
    Last Post: 03-07-2014, 06:49 AM
  3. Strange compatibility problem between ver 2003 and ver 2007
    By 1eyedjack in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-23-2010, 03:29 AM
  4. Excel 2007 : Excel 2003 / 2007 Compatibility Problem?
    By blinkme323 in forum Excel General
    Replies: 0
    Last Post: 10-07-2008, 02:10 PM
  5. [SOLVED] Compatibility problem?
    By Alex in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-02-2006, 11:45 AM
  6. URGENT: Mac/PC Macro compatibility problem
    By marika1981 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-08-2005, 05:06 AM
  7. [SOLVED] URGENT Mac/PC macro compatibility problem
    By marika1981 in forum Excel General
    Replies: 7
    Last Post: 01-07-2005, 09:06 PM
  8. [SOLVED] URGENT: Mac/PC Macro compatibility problem
    By marika1981 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-07-2005, 07:06 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