Jump to content
cpradeep22

Lengthy URL doesnt copy from excel to a web page - (Moved)

Recommended Posts

Unable to copy a long URL from Excel to a webpage field though if i directly hard code and send it works perfectly

i used this excel command to read and it didnt work while the rest of the fields work perfectly

Local $Read4 = _Excel_RangeRead($oWorkbook, Default, "B33") ; URL of document from Excel

sleep (13000)

the URL in the excel cell B33 is - https://lms.xxxxxxx.net:443/VX-LMS-PROD/ViewDocExternally/ViewDocumentDetails.aspx?DevId=RGV2LTE4ODEucGRm-rImCg7x6Cks=&&Id=MTg4MQ==-ePsTeDP0ykU=&&UserId=30&&DocNo=UUFNLVBBTS0wMDEtMDAwMS4wNw==-

However if i paste directly using send command hard coded it works send ("https://lms.xxxxxxx.net:443/VX-LMS-PROD/ViewDocExternally/ViewDocumentDetails.aspx?DevId=RGV2LTE4ODEucGRm-rImCg7x6Cks=&&Id=MTg4MQ==-ePsTeDP0ykU=&&UserId=30&&DocNo=UUFNLVBBTS0wMDEtMDAwMS4wNw==-")

I also tried passing someother text instead of the URL and it works well.
 
Thank you and do suggest if there are other alternate means to get this done

Share this post


Link to post
Share on other sites

Hey,

Maybe you need to read text instead of value of range("B33")?

$iReturn parameter https://www.autoitscript.com/autoit3/docs/libfunctions/_Excel_RangeRead.htm

[optional] What to return from the specified cell:
    1 - Value (default)
    2 - Formula
    3 - The displayed text
    4 - Value2. The only difference between Value and Value2 is that the Value2 property doesn’t use the Currency and Date data types

Share this post


Link to post
Share on other sites

thank you for the support. 

Unfortunately it is lengthy and greater than 255charecters and couldnt restrict. As a workaround now i have moved this URL alone to notepad and parsing it and it worked. Thank you all once again

Share this post


Link to post
Share on other sites

Have you tried to set parameter $bForceFunc? If set to True it should solve your 255 character problem. 


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2020-10-10 - Version 1.5.2.1) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2020-12-15 - Version 1.6.3.1) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX_GUI (2020-06-27 - Version 1.3.2.0) - Download
Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
Task Scheduler (2019-12-03 - Version 1.5.1.0) - Download - General Help & Support - Wiki

Tutorials:
ADO - Wiki, WebDriver - Wiki

 

Share this post


Link to post
Share on other sites

More details regarding the Excel and Word UDF can be found in the Wiki.


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2020-10-10 - Version 1.5.2.1) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2020-12-15 - Version 1.6.3.1) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX_GUI (2020-06-27 - Version 1.3.2.0) - Download
Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
Task Scheduler (2019-12-03 - Version 1.5.1.0) - Download - General Help & Support - Wiki

Tutorials:
ADO - Wiki, WebDriver - Wiki

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...