• WSgvanhook

    WSgvanhook

    @wsgvanhook

    Viewing 15 replies - 16 through 30 (of 45 total)
    Author
    Replies
    • in reply to: Protecting Sheet (XL2000 SP3) #1129931

      I like this idea of a usage log and I am adapting your code to a workbook of my own. It is shared and I have always been curious to know when the other parties have been in the workbook. The problem I see with your current code is that if the user closes out of the spreadsheet without saving, then the username and date/time opened is not saved. Is there a way to save the log without forcing the Workbook_BeforeSave code to run?

    • in reply to: problems with subroutine (2007) #1124183

      Hans, As soon as you sent the answer I realized that my friend was still using 2003. I should have realized that was the problem but I didn’t check the file extension. Thank you again for all of your help. The new version of this subroutine that you suggest will allow it to work in both versions.

      Thanks

    • in reply to: If Statement Help (2007) #1122430

      Hans, Perfect as usual. I didn’t think of using the Max function when I was drawing this out.

    • in reply to: If Statement Help (2007) #1122424

      Hans,

      Try this one. I pasted the values where there were external links.
      thanks!

    • in reply to: If Statement Help (2007) #1122419

      Hans, My apologies. The workbook would not let me save the actual formula because of the error in it. The formula I included in the original post is the one giving the error. Even making the correction you suggested I still receive the error box. When I click OK the entire formula is highlighted in the formula bar.

      Maybe a better explanation of what I am attempting to do will help. I am calculating wage increases based on the score in column N. Certain tasks are not eligible for increase and are marked as Exempt in column T. If the task is eligible then the formula in T calculates the amount of increase based on the score in N and the scales which I did not include on the original attachment. I now need to see if the new wage (increase plus base) exceeds the maximum allowable wage for that task which is in column U. If the max wage is equaled or exceeded then column V should list the max wage else it should list the new calculated wage.

      Does that help?

    • in reply to: Macro help (2007) #1121209

      So regarding Hans post about the parantheses, is this the correct placement?

      If (Cells(n,21) = 9900 or Cells(n,21) = 9915) _
      And (Cells(n,25) = “CB” or Cells(n,25) = “MB”) Then
      Cells(n,1).EntreRow.Delete

    • in reply to: Macro help (2007) #1121195

      Hans, Perfect as always! Thank you to both you and Jerry!

    • in reply to: Macro help (2007) #1121191

      Hi Jerry,

      I have tried the code and it is not deleting any rows. I have attached a sample of the data and the macro as I typed it in. I do not see why it is not working. There are 10 rows in the sample data that meet the criteria for deletion.

    • in reply to: Subtotal Issues (2007) #1117324

      Thank you Hans,

      I have attached a different file that shows that the procedures below work correctly some of the time. If anyone else has any idea, please let me know.

    • in reply to: Protection and sub-totals (2007) #1111678

      Thanks! That’s what I get for straying from the Lounge!!!

    • in reply to: If Formula…help, please! (2000) #1111663

      Does this do what you want?
      =IF(E2=”X”,”No”,IF(F2=”X”,”NO”, IF(G2=”X”,”No”,”Yes”)))

    • in reply to: Protection and sub-totals (2007) #1111646

      Sorry for the delayed response but I got pulled to another project for a few days and I’m just now getting back to this one.

      Your code does most of what I need, but now I am finding that I need to test to see if protection is enabled before I apply the code. Here is what I am using:

      Dim wshtarget as Worksheet
      Set wshTarget= Worksheets (“View”)
      wshTarget.Activate
      If ActiveSheet.Protection= True Then
      with Worksheets(“View”)
      .Unprotect, Password:=”password”
      End With
      End If

      When I run this piece of code, I receive a Run-Time error ‘438’:
      Object doesn’t support this property or method.

      I have looked at the help files and can’t see where I am going wrong. The method I am using came from a Ozgrid Post
      http://www.ozgrid.com/forum/showthread/?t=67806%5B/url%5D

      Any help would be approciated!

    • in reply to: Moving a row based on the time (2007) #1102411

      Thank you Hans. This worked beautifully!

    • in reply to: Moving a row based on the time (2007) #1102370

      Hans,

      I uploaded the incorrect workbook the first time. There were some steps that needed to be taken first which allowed the constants to be correct. I have modified the workbook to show you what it should be at this point the code is looking at the time and moving the row. This is only one section of a much longer macro that does many other things to the spreadsheet.

      Thanks in advance!

    • in reply to: Moving a row based on the time (2007) #1102330

      Sorry about that. Clicked the wrong button and forgot to attach the file.

    Viewing 15 replies - 16 through 30 (of 45 total)