• WSMary K

    WSMary K

    @wsmary-k

    Viewing 13 replies - 1 through 13 (of 13 total)
    Author
    Replies
    • in reply to: Instruction (VB6) #732073

      Hi Hans

      Thanks for your reply. The search on this site is much better than the MSDN Library CD I have.

      thankyou
      Mary

    • in reply to: Instruction (VB6) #732074

      Hi Hans

      Thanks for your reply. The search on this site is much better than the MSDN Library CD I have.

      thankyou
      Mary

    • in reply to: OT:Crystal Reports #707323

      Hi Laura

      I don’t know if this will help you. It is in VB6 but should be adaptable to VBA in Excel if it won’t work as is.

      Private Function GetLastName(CCUSNM as string)
      ‘Get last name from CCUSNM
      Dim intCommaPosition As Integer

      ‘Find the comma
      intCommaPosition = InStr(1, CCUSNM, “,”)
      ‘Take left characters up to comma
      GetLastName = Left(CCUSNM, intCommaPosition – 1)
      End Function

      Private Function GetFirstName(CCUSNM as string)
      ‘Get first name from CCUSNM
      Dim intLength As Integer
      Dim intCommaPosition As Integer

      ‘Find the comma
      intCommaPosition = InStr(1, CCUSNM, “,”)
      ‘Length of first name is length of full name – up to comma plus one for space
      intLength = Len(CCUSNM) – (intCommaPosition + 1)
      ‘First name is to the right of the comma
      GetFirstName = Right(CCUSNM, intLength)
      End Function

      Good Luck

      Mary

    • in reply to: OT:Crystal Reports #707324

      Hi Laura

      I don’t know if this will help you. It is in VB6 but should be adaptable to VBA in Excel if it won’t work as is.

      Private Function GetLastName(CCUSNM as string)
      ‘Get last name from CCUSNM
      Dim intCommaPosition As Integer

      ‘Find the comma
      intCommaPosition = InStr(1, CCUSNM, “,”)
      ‘Take left characters up to comma
      GetLastName = Left(CCUSNM, intCommaPosition – 1)
      End Function

      Private Function GetFirstName(CCUSNM as string)
      ‘Get first name from CCUSNM
      Dim intLength As Integer
      Dim intCommaPosition As Integer

      ‘Find the comma
      intCommaPosition = InStr(1, CCUSNM, “,”)
      ‘Length of first name is length of full name – up to comma plus one for space
      intLength = Len(CCUSNM) – (intCommaPosition + 1)
      ‘First name is to the right of the comma
      GetFirstName = Right(CCUSNM, intLength)
      End Function

      Good Luck

      Mary

    • in reply to: Datagrid (Excel VBA) #693581

      Thanks Rory

      That works.

      Mary

    • in reply to: Excel Database update (Excel2000/vba) #681605

      Caught it . Thanks

      Mary

    • in reply to: Excel Database update (Excel2000/vba) #681602

      Just what I needed. Thanks a lot. clapping

    • in reply to: Print Worksheets (VBA Excel) #630613

      It Works! clapping Thanks

      Mary smile

    • in reply to: Print Worksheets (VBA Excel) #630603

      Bryon

      Almost but not quite.

      It is now printing the checkbox window first then the selected sheet.

      Mary

    • in reply to: Print Worksheets (VBA Excel) #630599

      Hi Rob,

      I tried your changes and found that only sheet 3 will print regardless of what is checked.

      Mary

    • in reply to: Print Worksheets (VBA Excel) #630595

      Here is a text file of the above code.

    • in reply to: ByVal (VBA/Excel 2000) #618858

      Hey, it worked!
      clapping
      Thanks

    • in reply to: ByVal (VBA/Excel 2000) #618855

      Hi Jefferson

      Thanks very much for the quick reply. I’ll give it a try.

      Mary

    Viewing 13 replies - 1 through 13 (of 13 total)