dcsimg

Search:

Type: Posts; User: Mango Eldar

Page 1 of 2 1 2

Search: Search took 0.15 seconds.

  1. Re: Filling a (complex) online form with content from a word doc.

    As I mentioned in post #33, I deleted the two message box lines which moved the line numbers.

    Maybe if you were looking at post #31 then you are looking at the wrong line? All the linse from #31...
  2. Re: Filling a (complex) online form with content from a word doc.

    As I mentioned in post #33 I was getting the same error on the same line.
  3. Re: Filling a (complex) online form with content from a word doc.

    Ok, so now we are trying to find out where this container is am I right? Do you have some kind of hypothesis? Since this is a very specific problem which doesnt necessarily have to be within the...
  4. Re: Filling a (complex) online form with content from a word doc.

    I wasnt sure if you meant to replace line 39 with your code or to add your code in addition to my previous attempt. I assumed you meant to replace it but let me know if you didnt. I removed the two...
  5. Re: Filling a (complex) online form with content from a word doc.

    Ok using the code below, I get 0 frames before, and 5 frames after. Maybe check I put your line in the right places.


    ' sets first paragraph as document
    myvar = ThisDocument.Paragraphs(1)

    '...
  6. Re: Filling a (complex) online form with content from a word doc.

    Agreed, but as far as I can tell the container is not an Iframe (I might be wrong though).

    Any ideas on what to try next?
  7. Re: Filling a (complex) online form with content from a word doc.

    If you are an amateur what does that make me...

    I was editing post 25 while you replied. I attached the full code there.
  8. Re: Filling a (complex) online form with content from a word doc.

    Ok, I have tried two different approaches, one unsuccessful, and the other one I think was succcessful.

    First I tried looking for differences in Internet Explorer, here is what I did. I opened...
  9. Re: Filling a (complex) online form with content from a word doc.

    :eek:

    Ah no! Thats really not the case!

    I also went through your previous advice of trying to find the Iframe parent, but as I mentioned in my previous post, I looked through the html code and...
  10. Re: Filling a (complex) online form with content from a word doc.

    Just had another thought.

    As I mentioned before, the macro currently successfully selects the textbox where I need to input variable mytxt, which means that Iframes or not, the cursor has arrived...
  11. Re: Filling a (complex) online form with content from a word doc.

    Ok, I have done a bit of research on Iframes and I am starting to think that the text box is not an Iframe.

    I did a search through the page for html Iframe tags and found some for the date box...
  12. Re: Filling a (complex) online form with content from a word doc.

    You know, one thing that just occured to me: As I mentioned before, when I select the textbox in chrome it pops up as a new window, this window has its own URL
    ...
  13. Re: Filling a (complex) online form with content from a word doc.

    Interesting, when I delete the duplicate line the macro stops selecting the textbox. If I delete the duplicate line and step through macro it successfully selects the textbox. In both cases,...
  14. Re: Filling a (complex) online form with content from a word doc.

    Tried this:

    ' sets first paragraph as document
    myvar = ThisDocument.Paragraphs(1)

    ' sets variable for paragraph 2 till the end of the document
    Set r = ThisDocument.Range ' set whole document...
  15. Re: Filling a (complex) online form with content from a word doc.

    Im going to remove line 17 (post #7) for now so I can focus on one problem at a time.

    Here is what I have now (code posted in full inc the code you helped me write from previous thread so the...
  16. Re: Filling a (complex) online form with content from a word doc.

    Hmmm.... strange... I wasnt sure where the problem was so I decided to step it through. Line 17 is bugging so I decided to comment it out and test again.

    When I step through (without line 17),...
  17. Re: Filling a (complex) online form with content from a word doc.

    Ok, here goes trial and error. I am adding this to the back of the code in the OP. Am getting a message saying 'object variable not set', what does this mean and how can I fix it?

    'wait for page...
  18. Re: Filling a (complex) online form with content from a word doc.

    Can you suggest how I might do that?
  19. Re: Filling a (complex) online form with content from a word doc.

    Its a bit complicated to explain but here is my best shot. The first form I fill out (so the one you helped me with in the previous page), is a form which creates an intranet page. One box defines...
  20. Re: Filling an online form with content from a word doc.

    Ah that explains it, thanks!



    Im not sure what you mean here. Lets say I want it to account for 8 spaces before the first line, I just wrote multiple lines lines which seems to work:


    If...
  21. Filling a (complex) online form with content from a word doc.

    I am trying to fill a complex online form with content from a word document.

    Here is a picture of what the form looks like and the parts the macro needs to interact with.
    ...
  22. Re: Filling an online form with content from a word doc.

    Ok, everything seems to work except for a small detail that I notice when I step through the code.

    I have



    1....
  23. Re: Filling an online form with content from a word doc.

    Ok, great.

    I also modified the code to actually take the first paragraph.

    Code now looks like this.



    Sub putfirstparagraph()
  24. Re: Filling an online form with content from a word doc.

    Hmmm.... thought there would be a more technical sounding name.

    Ok, so how do I get my macro to

    Turn "this is my test" in the third textbox to "this-is-my-test"
    Click the 'create button'.
  25. Re: Filling an online form with content from a word doc.

    Did some research. Found out that chrome has a feature which lets you inspect web elements.

    I did this for the create button and it gave me this bit of code:

    ...
  26. Re: Filling an online form with content from a word doc.

    Ok, just tested, code working, successfully pastes in first box.

    I looked for something that said 'inputname=' for the third box and found something. Put it in the code and tested it, its working...
  27. Re: Filling an online form with content from a word doc.

    Right... making progress!

    Here is the code im using.


    Sub putfirstparagraph()

    Set wb = CreateObject("internetexplorer.application")
    wb.navigate2...
  28. Re: Filling an online form with content from a word doc.

    Had to make another post to upload the picture. Had the picture as an attachment to the previous post but then removed it because I didnt want it to appear at the end of the post which ofcourse made...
  29. Re: Filling an online form with content from a word doc.

    Here is what the form looks like.

    http://www.vbforums.com/attachment.php?attachmentid=87920&stc=1&d=1330596505

    I need to first select the first box ('title:') and paste the first paragraph from...
  30. Re: Filling an online form with content from a word doc.

    Will test the code when I am at work, currently dont have access to intranet.



    I ran into this problem with the first thread I posted, the <form> and </form> are at the beginning and end of the...
  31. Re: Filling an online form with content from a word doc.

    Its fine, my code doesnt need to logon, I get logged into my intranet automatically when I login to my desktop.

    Assume that this is not a barrier. Obviously you wont be able to go to the link...
  32. Filling an online form with content from a word doc.

    I would like to write a Macro that does the following.

    1.) Takes the first paragraph from my word document

    2.) Opens internet explorer and goes to the following link:...
  33. Replies
    3
    Views
    1,574

    MsOf07 Re: Clearing text format in Rich Text Box.

    Has anyone made a thread describing how to do the opposite?

    I.e you have a word document with various rich text in it, I want to be able to convert that backwards into the html code. At the same...
  34. Replies
    1
    Views
    695

    Video tutorials for word automation

    Hey, I have been trying to get some advice on this forum for a project but I find myself constantly limited by a lack of understanding of the basics.

    Can anyone recommend a video tutorial series...
  35. Re: Pasting a word document to an intranet page

    1. Thanks
    2. How do I solve this? I want to write a macro and then give it to other people to use who have never used a macro (at least not knowingly). Can the module in which the macro is written...
  36. Re: Pasting a word document to an intranet page

    A couple of questions. I suspect they are quire basic.

    1. Is myvar just the name you gave the variable, can I use any name I want or will it only work with myvar.
    2. I want the macro to be...
  37. Re: Pasting a word document to an intranet page

    Also, thanks for your code on how to submit a form but before I can use that I need something more basic.

    I need some code for actually taking the text out of the word docuement.

    So the first...
  38. Re: Pasting a word document to an intranet page

    Ok first question first. How do I paste my code so that it looks all clean and with numbers like the one you pasted? The code I am looking at (which I see through view -> source in internet explorer)...
  39. Re: Pasting a word document to an intranet page

    I can see the source code but I am not sure what I am looking for. How can I find the back shop name of the box?
  40. Re: Pasting a word document to an intranet page

    Another small question. I did some cleaning up in my first post to have the pictures in the middle of the text rather than attached all at the end. Is there a way to hide the attachments right at the...
Results 1 to 40 of 47
Page 1 of 2 1 2



Featured


Click Here to Expand Forum to Full Width