Posts by shloksurya

    Hi I want to enter some data into webpage text box, the view source code is as below
    basically i am trying to automate website through vba
    i tried below


    <span class="leftbox3"><input type="text" name="cardNumber" maxlength="19" size="20" value=""
    ----------------------------------------------------------------------------------------------------------------------
    ie.document.getElementsByClassName("leftbox3")(0).value = "123"
    IE.Document.getElementsByName("cardNumber")(0).Value = "123"


    No Luck please help


    Regards,
    Thanks in advance,
    Please help
    &amp;amp;amp;quot;[email protected]&amp;amp;amp;quot;[/email]

    Re: Web Automation using VBA


    i figured it out thanks for you help now i want to click on save button below is the code i want it to work in excel vba


    HTML
    <button id="upd" class="save" onMouseDown="submitBtnAndDisable('true','MERCH_MAINTAIN_DETAILS','upd')" name="upd" type="button">Save</button>

    Hi,


    I have a website


    1] I need to enter the data into the website site fields through excel vba.
    2] i am stuck at combo box, there are few combo box which should pick the data from excel cell
    3] I am able to do the same with text boxes but i am not able figure out the combo box i have the code for combo box as below.



    But this does not work i have IE 11 version andexce2010


    Please help me with this thanks in advance.

    Re: Find the text in Columns(&quot;C:C&quot;) and compare the list in next sheet


    Re: Find the text in Columns(&quot;C:C&quot;) and compare the list in next sheet


    What is wrong in below code?


    if sheet (Items) contains "Egg"
    and Sheet2 also contains Egg
    then Sheet 3 must display some data
    But what here its happening is that there are more than 2 to 3 times the egg word, so it displays the data in sheet3 2 to 3 times I want it to display only once.








    Re: Find the text in Columns(&quot;C:C&quot;) and compare the list in next sheet


    FIND THE ATTACHMENT CODE IS WRITTEN IN SHEET1




    Re: Find the text in Columns(&quot;C:C&quot;) and compare the list in next sheet


    with all you respect & Smallman,


    He had provided me the code was a part and i did reply that which did not help my need, right now i have written the above which i posted few hrs earlier it gave me error Procedure too large then i wrote below code ...



    -----------------------------------------------------------------------------
    But still it doesnot run after the first case.



    Thanks for all your help and support.

    Re: Find the text in Columns(&quot;C:C&quot;) and compare the list in next sheet


    Hi myarshi29,


    Thanks for reply i had wrote below code, Please check the output.


    In Sheet1

    Code
    Private Sub Worksheet_Change(ByVal Target As Range)
    If Not Intersect(Target, Range("B1:B300")) Is Nothing Then
    Call CheckAvailability
    End If
    End Sub



    In Module Form



    ' Can any one help me to shorten this code.


    thanks
    Suryakant

    Re: Find the text in Columns(&quot;C:C&quot;) and compare the list in next sheet


    Hi Smallman, & Other Team Members,
    Please help, i will explain my problem again


    I have Sheet1 and Sheet2.


    1] I type "AAA" in column A1 of Sheet1.
    2] It should go and search the List which contains AAA in sheet 2 and copy the Adjucent column(B) next to the result found in below case if AAA is searched the result is "Veg"
    3] It would be great if it give message if its non veg.


    Thanks Please help


    Sheet1


    [TABLE="width: 500"]

    [tr]


    [td]

    A - Column

    [/td]


    [td]

    B - Column

    [/td]


    [/tr]


    [tr]


    [td]

    AAA

    [/td]


    [td]

    Veg

    [/td]


    [/tr]


    [tr]


    [td]

    CCC

    [/td]


    [td][/td]


    [/tr]


    [tr]


    [td]

    BBB

    [/td]


    [td][/td]


    [/tr]


    [tr]


    [td]

    DDD

    [/td]


    [td][/td]


    [/tr]


    [/TABLE]




    Sheet2
    [TABLE="width: 500"]

    [tr]


    [td]

    A - Column

    [/td]


    [td]

    B - Column

    [/td]


    [/tr]


    [tr]


    [td]

    AAA

    [/td]


    [td]

    Veg

    [/td]


    [/tr]


    [tr]


    [td]

    BBB

    [/td]


    [td]

    Non Veg

    [/td]


    [/tr]


    [tr]


    [td]

    CCC

    [/td]


    [td]

    Veg

    [/td]


    [/tr]


    [tr]


    [td]

    AAA

    [/td]


    [td]

    Non Veg

    [/td]


    [/tr]


    [tr]


    [td]

    BBB

    [/td]


    [td]

    Non Veg

    [/td]


    [/tr]


    [/TABLE]

    Re: Find the text in Columns(&quot;C:C&quot;) and compare the list in next sheet


    Hi Smallman,


    I am using something like below,



    Re: Find the text in Columns(&quot;C:C&quot;) and compare the list in next sheet


    Hi Smallman,


    2^15 --> used-in-lookup-to-find-last-cell-containing-a-specific-value
    ------------------------------------------------------------------


    Your Above code is great , just i need the out put that is Egg mod or steak mod result in Column J of Sheet Items.


    Thanks waiting for your Reply

    Re: Find the text in Columns(&quot;C:C&quot;) and compare the list in next sheet


    Hi AdrianB,
    Thanks for quick reply we are very close I need to find the below list in
    Set Rng = .Range("B" & i).Find(What:="Egg","Apple","GGG","HHH","Food"




    Also I am running code in getting error message -- Run time error Application-define or object-define error


    Private Sub Worksheet_Change(ByVal Target As Range)-----------------------------------> so that as soon as user enter any text like "Egg","Apple" and hits tab it should give message saying its Egg mode or saying veg mode if Yes then it should enter Veg Mod/Egg mod as below


    ---------------------------------------------------------------------------------------------------------------------------------------------------------
    let me explain you once again


    I have list consider "Egg","Eggs","AAA & Eggs","Meat","Apple","SoftDrinks","etc".


    if user enter any one of the above item in Sheet1.Column"B" then column "J" in sheet1 should have text "Egg Mode" in same row where he has entered Eggs.
    like


    Items ----- Description
    Eggs----------- Egg mod
    Egg------------ Egg mod
    AAA & Eggs --- Egg mod
    Meat ----------- Steak mod
    Apple ---------- Veg mod


    Thanks a lot for you quick reply I am waiting for this
    thanks
    AdrianB

    As soon as I type Eggs in column B2 and hit tab MsgBox("Do You want to Enter Egg Mode?", vbYesNo + vbQuestion) then it should check in sheet2 for Eggs same goes with B4,B5 and so on I can write any thing from the list it should compare in Sheet2 column A2if found then it should enter the text as non veg against the egg in column J it can be duplicate also in column B like eggs in B3 as well as eggs in B17Also attached the sheet name sample for reff.....thankyou,surya