Posts by mjschukas

    Re: Fill Form's Combobox With Filtered Range


    thank you...


    the user form works well after the first time i load and close the form...??


    the code i'm using follows:

    Code
    Worksheets("data_material").Range("a2") = "tree"
    ComboBox1.SetFocus


    and in the properties of the combobox on the userform, i have set the rowsource to the range name ("data_materal").


    ???


    thank you.

    Re: Compress Worksheet File...


    thank you for the thought and effort...


    i just tried, no error message, but i also don't get the file compressed (it compresses, but with nothing in it...?


    (here's what i changed--one line...:)
    from

    Code
    oApp.Namespace(FileNameZip).CopyHere oApp.Namespace(FolderName).items


    to

    Code
    FileCopy FileNameZip, DefPath & FolderName & FileName


    thank you...

    Re: Fill Form's Combobox With Filtered Range


    well, i am using a dynamic range name (thanks to ozgrid...)


    =OFFSET(data_material!$A$1,0,0,COUNTA(data_material!$A:$A),8)


    and the following code--the range name changes, but not the filling of the combobox...?

    Code
    Selection.AutoFilter 'turns off
    myfilter = "Shrub"
    Range("testmaterial").AutoFilter Field:=2, Criteria1:=myfilter
    UserForm3.ComboBox1.RowSource = "data_material!testmaterial"


    ???


    thank you...

    i have a range name (9 columns) and i filter for a certain type (Shrub) and i would like to only fill the combobox (on a form) with the filtered selection...?


    Code
    myfilter = "Shrub"
    Range("testmaterial").AutoFilter Field:=2, Criteria1:=myfilter
    ComboBox1.RowSource = testmaterial


    ???


    thank you...

    i'm using the following code to compress a worksheet, but i get an error message that i would like to surpress...



    ???


    thank you.

    Automating Data Filter Autofilter...


    i would like to automate the autofilter (from a form)...the following code works, but...it needs improvement...


    Code
    myfilter = Range("d2").Value
        Selection.Range("testmonth").Select
        Selection.AutoFilter Field:=1, Criteria1:=myfilter


    ???


    thank you.

    insert a word object, type... and resize...


    Code
    Dim objX As OLEObject
    Set objX = ActiveSheet.OLEObjects.Add(ClassType:="Word.Document.8", Link:=False, DisplayAsIcon:=False)
        objX.Border.Color = RGB(255, 255, 255)
    objX.Height = 200
    objX.Width = 600
    objX.Top = 300
    objX.Left = 100
    '-------make active
    objX.Activate
        Set objX = Nothing


    i would like to place the object in a worksheet and have all the rows of data move down below the word object (i.e., below the word object--i do this resizing manually now...)...?


    ???


    thank you...!

    autofitting on workbook opening...


    i'm using on workbook_open:

    Code
    columns("b:b").entirecolumn.autofit


    but underneath, i have a data query range that refreshes and best fits the columns accordingly...(over writing the autofit...)?


    ???


    thank you.

    Testing For First Letter Of Entry...


    within an if statement, i'm testing for the first letter of another cell
    with the function: left(e273,1)= "D"...


    this works well, but i only have a few letters to test for and i'd like to test for not "D", etc. (i.,e, what if the first letter is not D, then do...)...?


    ???


    thank you...

    Re: Improve Error Handling...


    here's my current attempt and "clean up"...

    Re: Insert Symbol ®


    thank you...


    i have hundreds of these Registered names to enter--the insert symbol works, but gets tedious...


    i was looking for a shortcut to add the ® at the end of the data entry in a given cell...


    ???


    thanks.

    Re: Insert Symbol ®


    sorry for any confusion...


    as i entry a new word (in a cell), sometimes, i want to add the "®" at the end (of the new word--now always the same word...)


    i seemingly can't run the macro from within the cell in edit mode...???


    thank you...

    i would like to automate the inserting of the symbol ®...


    i can do in a cell as the first entry, but i can't do at the end of a string's entry in a cell...?


    Code
    ActiveCell.FormulaR1C1 = "®"


    or

    Code
    ActiveCell.FormulaR1C1 = "Schukas®"


    ???


    thank you.