Consulting

Results 1 to 6 of 6

Thread: VBA on an old machine

  1. #1

    VBA on an old machine

    Hi all,

    Ive written some vba on a Windows 7 machine running office 2010, the spreadsheet is then given to somebody else running Windows XP office 2007.
    the code hiccups when using the function Right, I imagine if it ever gets past here something else will cause issue.

    anyway if I get the person to buy office 2010 will this solve the problem? or will they need to upgrade the OS too?

    thanks

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    That sounds as if you have a missing reference, no need to upgrade anything.
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  3. #3
    Quote Originally Posted by xld View Post
    That sounds as if you have a missing reference, no need to upgrade anything.
    thats very possible but i thought that enabled references are carried with the excel file?

    if its the case that the computer doesnt have the reference at all will upgrading his copy of office fix the issue?

  4. #4
    Also if the reference exists in the library but isnt enabled is there a way to enable it with VBA?
    i think the answer to that is going to be a big no no

  5. #5
    VBAX Master Aflatoon's Avatar
    Joined
    Sep 2009
    Location
    UK
    Posts
    1,720
    Location
    The usual scenario is that you have a reference to another Office application library (e.g. Word or Outlook 2010) and that isn't backwards compatible. It could also be something like the Windows Common Controls which not all machines have installed. For the former, you can late bind your code; for the latter, you're better off avoiding the controls, IMO.
    Be as you wish to seem

  6. #6
    Quote Originally Posted by Aflatoon View Post
    The usual scenario is that you have a reference to another Office application library (e.g. Word or Outlook 2010) and that isn't backwards compatible. It could also be something like the Windows Common Controls which not all machines have installed. For the former, you can late bind your code; for the latter, you're better off avoiding the controls, IMO.
    thanks for that, I will Look at late binding and see if that works.

Posting Permissions

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