Posts by mrmmickle1

    Re: vlookup from filename


    What about using something like this:


    Code
    =IF(IF(ISERROR(FIND("456",A1,1)),"YES","NO")="NO","VLOOKUP GOES HERE","NO VLOOKUP NECESSARY 426 WAS NOT FOUND")

    Re: Userform - I need to get right checkbox and combo box in this work


    Quote

    Hello, i have a userform just with textbox and it works fine


    Now i need to get right with combobox and checkbox.


    You'll need to expand on what you mean. I've looked at your file and this does not make much sense to me. Can you please explain your issue in more detail?

    Re: Watch cell?


    Quote

    I need, every time when, for example, i run Sort Macro, inside that Sort macro to insert code "how long has it been from last entry in A1:A2"


    This is the line that defines the amount of time that has passed between now and the last time an entry has been made in A1 or A2:


    Code
    wsTwo.Range("B1") = Now() - ThisWorkbook.CustomDocumentProperties("PreviousTimeVal").Value

    Re: Watch cell?


    Maybe try this instead:


    Re: search string & delete entire rows; then reassign the task - Bulk ticket reassign


    Maybe try using something like this. It may be simpler for you to manipulate:


    Re: search string & delete entire rows; then reassign the task - Bulk ticket reassign


    Perhaps something like this will work for your needs:


    Re: Allow user to choose which text file to import


    You can use code like this to accomplish your goal:


    Code
    Dim fNameAndPath As Variant
        
        fNameAndPath = Application.GetOpenFilename(FileFilter:="Excel Files (*.TXT), *.TXT", Title:="Select File To Be Opened")
        If fNameAndPath = False Then Exit Sub
    
    
        ActiveWorkbook.Worksheets.Add
        With ActiveSheet.QueryTables.Add(Connection:= _
            "TEXT; " & fNameAndPath, Destination:=Range("$A$1"))

    Re: Delete rows with zero and #NUM!


    This should delete cells with 0 and with Errors in Column A:


    Re: Copy paste specific cells from one sheet to a "data dump" with a command button


    Hey Getshu,


    Welcome to the MessageBoard!


    Here is a shortened up version of the above code:


    For the most part you can work directly with objects rather than selecting them. YOu'll notice a lot of that code has been removed.

    Re: search string & delete entire rows; then reassign the task - Bulk ticket reassign


    If you want to reassign values like in your example:



    Use this:

    Re: search string & delete entire rows; then reassign the task - Bulk ticket reassign


    This code will quickly delete items that meet your criteria:



    I don't really understand what you mean in number 2....can you elaborate or show a before and after?

    Re: Error in finding a row number within a for loop


    you need to use syntax like this:


    Code
    Dim SrchVal              As Range
     Dim myRow              As Long
    
    
     Set  SrchVal = assetAllocate.Sheets("Asset_Allocation").Range(assetAllocate.Sheets("Asset_Allocation").Cells(1, 1), assetAllocate.Sheets("Asset_Allocation").Cells(numAssetAllocateRows, 1)).Find(PortName, , xlValues, xlPart, xlByRows, xlNext, False)
     myRow = SrchVal.Row

    Re: TOPLEFTCELL used to activate seperate sheet


    In this case let's use a named range...


    Name the cell that contains your team name: "ShtSelect"


    Your Code will now work using this syntax:


    Re: Watch cell?


    B.W.B.,


    Try this:


    1.format cell B1 dd-hh:mm
    2.Create a Custom Document Property named "PreviousTimeVal"
    Go To File > Properties (In BackStage View) > Advanced Properties > Custom > Create Your Property (Store as the Number Type you can type in a number like today's date 42532) > Add


    Now paste this code to your worksheet module: