Results 1 to 20 of 26

Thread: Calculating Working hours in a Week

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #20
    Hi Paul,

    Many thanks for your prompt response.

    I am getting "Method "Range' ofobject'_Global" failed" error when i add "range" ;

    Please could you have a look at attached sample file.

    regards

    Quote Originally Posted by Paul_Hossler
    try this, assuming that myLocation = a cell named 'myLocation'

    If myLocation = "WHUK" Then
        Set myHolidays = Range("Hols_WHIL")
    ElseIf myLocation = "WHPHL" Then
        Set myHolidays = Range("Hols_PH")
    End If
    Paul
    Attached Files Attached Files
    Last edited by Aussiebear; 06-29-2024 at 01:53 AM.

Posting Permissions

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