Consulting

Results 1 to 4 of 4

Thread: Please Help W/Conflicting Codes

  1. #1

    Please Help W/Conflicting Codes

    Hi All,

    Many of my users don't have their macro's enables. I found this code from this site that solved the problem. ("I can't post links yet")

    ""vbaexpress.com/kb/getarticle.php?kb_id=379""



    However, in my spread sheet, in a worksheet module for a commandbutoon, I have a code that has this line.

    some code
    Activeworkbook.save
    some code
    The code does some formating and calculating and saves the changes w/out waiting for the user to save or close the worbook. But for some reason it conflicts w/the code above and will not work. I stepped through the code but can't figure out where the issue is. Thanks for any help.

    Activeworkbook.save

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    If you are stepping through the code, you must have enabled macros. If you enabled macros, that code should work.
    ____________________________________________
    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
    It's my code that doesn't work . . not the code to the link . . .

  4. #4
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Quote Originally Posted by OrphanBear
    It's my code that doesn't work . . not the code to the link . . .
    ____________________________________________
    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

Posting Permissions

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