Results 1 to 2 of 2
  1. #1
    rnodern is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2013
    Location
    Australia
    Posts
    6

    VBA SharePoint manipulation, TextArea element issue

    Hi there,

    I am developing a piece of code that enters strings into a collection of elements on a Share Point form.

    All was going well until I hit a couple of <TextArea> elements and am having considerable trouble entering text into them.

    The first textarea was a name picker which performs a lookup to Active Directory.
    Click image for larger version. 

Name:	TextArea1.PNG 
Views:	10 
Size:	4.4 KB 
ID:	13254
    After much trial and error, I was able to write to this textarea input box by:
    Code:
    ...
    Set htDoc = ie.Document
    Set txtArea = htDoc.getElementById("uniqueID_UserField_downlevelTextBox")
        txtArea.previousSibling.innerText = "string I am sending" 
    ...
    The second text area is proving to be far more tricky. It looks like a rich text editor:
    Click image for larger version. 

Name:	TextArea2.PNG 
Views:	9 
Size:	11.7 KB 
ID:	13255

    The problem with text area elements, is that you can't just set a .Value. While any string that is sent to textarea.value is stored, it is not reflected on the page. And on form submit, it is as if no data was entered into the field. So far, no methods have been successful.

    Does anyone know how these "Rich Text" textarea elements in SharePoint work? It must store the text somewhere, but I haven't been able to figure it out.



    Any help would be greatly appreciated.

  2. #2
    newstar is offline Novice
    Windows Vista Access 2007
    Join Date
    Oct 2013
    Posts
    1
    deleted deleted
    Last edited by newstar; 10-20-2013 at 08:18 AM.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 0
    Last Post: 03-09-2012, 07:04 AM
  2. Access DATA Manipulation issue
    By humanmaycry in forum Access
    Replies: 2
    Last Post: 07-25-2011, 08:28 PM
  3. date manipulation
    By lpsd in forum Access
    Replies: 3
    Last Post: 12-23-2010, 12:06 PM
  4. Replies: 2
    Last Post: 08-18-2010, 02:09 PM
  5. Query manipulation using VBA
    By benattal in forum Programming
    Replies: 0
    Last Post: 12-31-2008, 09:12 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums