• Visitors can check out the Forum FAQ by clicking this link. You have to register before you can post: click the REGISTER link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. View our Forum Privacy Policy.
  • Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!

VBA Function

Collapse
X
  •  
  • Filter
  • Time
  • Show
Clear All
new posts

    VBA Function

    OK I'm stumped on this.

    2 PC's supposedly the same build.

    Running a spreadsheet. Spreadsheet 1 has a vba function (public) to work out the number of working days when given a date. Spreadsheet 2 has a link to spreadsheet 1 (path included) which cannot find the workingdays function. If I open Spreadsheet 1 along with 2 it resolves the function.

    However, one PC this works fine on, the other is giving the problem outlined above.

    What am I missing? - I didn't write the code and wouldn't have done it in this way, but it is a pain that it only works on one of the PC's
    Rule Number 1 - Assuming that you have a valid contract in place always try to get your poo onto your timesheet, provided that the timesheet is valid for your current contract and covers the period of time that you are billing for.

    I preferred version 1!

    #2
    There should be WORKDAY function in Analysis Tool Pak (plug ins).

    Comment


      #3
      I know, but for some readson they decided to write their own. I'm guessing that they didn't know it was there.
      Rule Number 1 - Assuming that you have a valid contract in place always try to get your poo onto your timesheet, provided that the timesheet is valid for your current contract and covers the period of time that you are billing for.

      I preferred version 1!

      Comment


        #4
        Well, maybe its something simple like path on 2nd PC does not exist?

        Comment


          #5
          Sounds like the function is in the second spreadsheet, which means you need to load it up first. Move the function to the Personal Macro Workbook on the machine instead.
          What happens in General, stays in General.
          You know what they say about assumptions!

          Comment


            #6
            I have managed to track it to an account issue. My account it does not work with. However, a colleague can run the process using his account on my PC. His drive mappings are the same as mine.`
            Rule Number 1 - Assuming that you have a valid contract in place always try to get your poo onto your timesheet, provided that the timesheet is valid for your current contract and covers the period of time that you are billing for.

            I preferred version 1!

            Comment

            Working...
            X