Results 1 to 2 of 2
  1. #1
    Silver Lounger
    Join Date
    Jun 2001
    Location
    Niagara Falls, New York, USA
    Posts
    1,878
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Problem Running Module/Procedure From Macro? (A2k (9.0.3821) SR-1)

    I have a Module named mod_Normilize that contains Sub NormalizeTable_tblBPFees()

    Procedure works OK when I Ctrl + G and type NormalizeTable_tblBPFees

    When I run it from a Macro the sub dosen

  2. #2
    5 Star Lounger
    Join Date
    Jul 2002
    Location
    Toronto, Ontario, Canada
    Posts
    1,139
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Problem Running Module/Procedure From Macro? (A2k (9.0.3821) SR-1)

    Are you trying to RUN the code or open the module at the procedure? It sounds like you are trying to run the code. Correct?

    Two reasons why it's not working if you are trying to run it.

    1) Open Module of a Macro Opens the code module, it doesn't run it.
    2) To Run code from a macro you have to use RunCode and the procedure has to be a function and not a sub.
    --
    Bryan Carbonnell - Toronto <img src=/S/flags/Ontario.gif border=0 alt=Ontario width=30 height=18> <img src=/S/flags/Canada.gif border=0 alt=Canada width=30 height=18>
    Unfortunately common sense isn't so common!!
    Visit my website for useful Word, Excel and Access code, templates and Add-Ins

Posting Permissions

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