Using VBA to copy excel cell information, paste to web form, then submit

lstros1

New Member
Joined
Apr 10, 2012
Messages
4
Unable to get this code to work and need help. The website is secure but will paste the source code. New to VBA. Have also included the code. Please help...

Code:
Option Explicit
'Requires Microsoft Internet Controls Reference Library
Dim WithEvents ie As InternetExplorer
Sub TUR()
Set ie = CreateObject("InternetExplorer.Application")
With ie
.Visible = True
.Navigate URL:="https://abe2-portal.amazon.com/gp/picking/config/processPaths.html?action=edit&processPathName=PPMultiLargePrem"
Do Until ie.ReadyState = READYSTATE_COMPLETE
DoEvents
Loop
Set mytextfield7 = .Document.all.Item("unitRateTarget")
mytextfield7.Value = Sheets("Ops Planner").Range("p21").Value
ie.Document.forms("form").Submit
End With
End Sub


Source:
HTML:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
 
<head>
****** http-equiv="Content-Type" content="text/html; charset=UTF-8">
 
****** HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE">
****** HTTP-EQUIV="PRAGMAS" CONTENT="NO-CACHE">
****** HTTP-EQUIV="Expires" CONTENT="-1">
<link rel="stylesheet" href="/gp/common/FCStyle.css" type="text/css" >
 
 
<link rel="stylesheet"
        type="text/css" href="/gp/common/stripe.css" >
******** type="text/javascript"
          src="https://internal-cdn.amazon.com/btk.amazon.com/ajax/libs/jquery/1.5.2/jquery.min.js">*********>
******** type="text/javascript"
        src="https://internal-cdn.amazon.com/is-it-down.amazon.com/javascripts/stripe.min.js">*********>
 
<title>
 
ABE2-Picking Configuration
</title>
 
 
 
 
</head>
 
<body>
 
 
 
 
 
 
 
<div id="top">
 
<div class="title" style="float: left;">
  <a href="/gp/common/Welcome.html" alt="links to main console welcome page">FC Console</a>
</div>
 
<table border="0" cellpadding="0" cellspacing="0" style="margin: 0; float: right">
<tr>
<td class="consoleinfo">ABE2</td>
<td class="consoleinfo">Tue Apr 10 09:35:03 2012</td>
<td class="userinfo">
Hello Lloyd Darius St. Rose <a href="https://w.amazon.com/?Kerberos_Sign_Out">(Sign Out)</a>
</td>
<td class="userinfo">Employee info:
<form action="https://fclm-portal.amazon.com/employee/timeDetails" method="GET" class="userinfo">
<input type="text" name="employeeId" size="9" maxlength="8" />
<input type="hidden" name="warehouseId" value="ABE2"/>
</form>
</td>
<td class="userinfo"><a href="http://abe2-portal.amazon.com/gp/picking/config/processPaths.html?ConsolePrintable=foo&action=edit&processPathName=PPMultiABMedium">Print</a></td>
</tr>
</table>
 
 
 
 
 
 
 
 
 
 
 
<ul class="nav root-unselected0">
            <li><a class="noborder" href="https://fcmenu.amazon.com/ABE2" target="_top">Web Menu</a></li>
            <li><a href="/gp/labor-management/Welcome.html" target="_top">Labor Mgmt</a></li>
            <li><a href="/gp/aquas/Welcome.html" target="_top">Aquas</a></li>
            <li><a href="/gp/inventory/Welcome.html" target="_top">Inventory</a></li>
            <li><a href="/gp/cycle-count/Welcome.html" target="_top">Cycle Count</a></li>
            <li><a href="/gp/receive/index.html" target="_top">Receive</a></li>
            <li><a href="/gp/fc-inbound-prep/research/Research.html" target="_top">Inbound Prep</a></li>
            <li><a href="/gp/fc-work-order/reporting/Welcome.html" target="_top">Work Order</a></li>
            <li><a href="/gp/manufacturing/Welcome.html" target="_top">Manufacturing</a></li>
            <li><a href="/gp/spaceman/console/summary.html" target="_top">Space Mgmt</a></li>
            <li><a href="/gp/non-sortable/Welcome.html" target="_top">Non-Sortable</a></li>
            <li><a href="/gp/transshipment/Welcome.html" target="_top">Transshipment</a></li>
            <li class="picking-color1" ><a href="/gp/picking/index.html" target="_top">Picking</a></li>
            <li><a href="/gp/sortation/Welcome.html" target="_top">Sortation</a></li>
            <li><a href="/gp/pack/Welcome.html" target="_top">Pack</a></li>
            <li><a href="/gp/ship/Welcome.html" target="_top">Ship</a></li>
            <li><a href="/gp/dock/Welcome.html" target="_top">Dock</a></li>
            <li><a href="/gp/customer-returns/Welcome.html" target="_top">C. Returns</a></li>
            <li><a href="/fc-cgi/planner/main.cgi" target="_top">V. Returns</a></li>
            <li><a href="/gp/physical-evaluation/Menu.html" target="_top">WarehouseDeals</a></li>
            <li><a href="/gp/fc-workflow/Welcome.html" target="_top">Workflow</a></li>
            <li><a  adminlink href="http://dc-web.amazon.com" target="_blank" target="_top">Admin</a></li>
            <li><a href="/gp/remote-it-sw/Welcome.html" target="_top">Remote IT</a></li>
            <li><a href="/gp/fc-application-services/Welcome.html" target="_top">Application Services</a></li>
</ul>
 
 
<div style="height: 2px;" class="nav picking-color1"></div>
 
<ul class="nav root-unselected1">
            <li><a class="noborder" href="/gp/picking/processpaths-new.html" target="_top">Process Paths</a></li>
            <li><a href="/gp/picking/pickareas-new.html" target="_top">Pick Areas C4</a></li>
            <li><a href="/gp/picking/pickareas-c29.html" target="_top">Pick Areas C29</a></li>
            <li><a href="/gp/picking/pickzones-new.html" target="_top">Pick Zones</a></li>
            <li><a href="/gp/picking/batches.html" target="_top">Batches</a></li>
            <li><a href="/gp/picking/workforce.html?expandSummary=0" target="_top">Workforce</a></li>
            <li><a href="/gp/picking/reports/index.html" target="_top">Reports</a></li>
            <li><a href="/gp/picking/tools/aps-research.html" target="_top">Self Service Tools</a></li>
            <li><a  target=_blank href="https://pickinghelp.amazon.com/GuideToAPS/index.html" target="_top">APS Guide</a></li>
            <li class="picking-color2" ><a  class=adminlink href="/gp/picking/config/index.html" target="_top">Configuration</a></li>
</ul>
 
 
<div style="height: 1px;" class="nav picking-color2"></div>
 
<ul class="nav root-unselected2">
            <li><a class="noborder" href="/gp/picking/config/CollatingConfig.html" target="_top">Collating</a></li>
            <li><a href="/gp/picking/config/categorization/active-categorization.html" target="_top">Categorization</a></li>
            <li><a href="/gp/picking/config/processpath-configuration/processpath-categories.html" target="_top">Process Path Config</a></li>
            <li><a href="/gp/picking/config/pickAreas.html" target="_top">Pick Area Properties</a></li>
            <li class="picking-color3" ><a href="/gp/picking/config/processPaths.html" target="_top">Process Path Properties</a></li>
            <li><a href="/gp/picking/config/pickerEligibilities.html" target="_top">Picker Eligibilities</a></li>
            <li><a href="/gp/picking/config/pickAreaClusters.html" target="_top">Cluster Properties</a></li>
            <li><a href="/gp/picking/config/pickerClusterEligibilities.html?mapType=AreaClusterEligibilityMap" target="_top">Cluster Eligibilities</a></li>
            <li><a href="/gp/picking/config/PickSchool.html" target="_top">Pick School</a></li>
</ul>
 
 
<div style="height: 1px;" class="nav picking-color3"></div>
 
 
 
 
</div>
 
 
<div id="maincontent">
 
 
<!--style type="text/css">
td {
    font-size: 80%;
}
</style-->
 
 
 
 
  
 
 
 
<h3>Process Path Properties</h3>
 
 
<FORM METHOD=POST ACTION="processPaths.html">
  <INPUT TYPE=HIDDEN NAME="action" VALUE="update">
  <INPUT TYPE=HIDDEN NAME="processPathName" VALUE="PPMultiABMedium">
 
<FONT SIZE=2><B>PPMultiABMedium (DefaultPicking, pkREBINLEV1)</B></FONT><P>
 
<TABLE BORDER=1 CELLSPACING=0 CELLPADDING=1>
  <TR>
    <TD><FONT SIZE=1 ALIGN=LEFT VALIGN=TOP><B>Status</B></FONT></TD>
    <TD><FONT SIZE=1 ALIGN=LEFT VALIGN=TOP><B>Demand Window</B></FONT></TD>
    <TD><FONT SIZE=1 ALIGN=LEFT VALIGN=TOP><B>Pick Rate Ave</B></FONT></TD>
    <TD><FONT SIZE=1 ALIGN=LEFT VALIGN=TOP><B>Process Pad</B></FONT></TD>
    <TD><FONT SIZE=1 ALIGN=LEFT VALIGN=TOP><B>Tote Limit</B></FONT></TD>
    <TD><FONT SIZE=1 ALIGN=LEFT VALIGN=TOP><B>Shipment Limit</B></FONT></TD>
    <TD><FONT SIZE=1 ALIGN=LEFT VALIGN=TOP><B>Batch Limit</B></FONT></TD>
    <TD><FONT SIZE=1 ALIGN=LEFT VALIGN=TOP><B>Target Unit Rate</B></FONT></TD>
    <TD><FONT SIZE=1 ALIGN=LEFT VALIGN=TOP><B>Min Premium Percent</B></FONT></TD>
    <TD><FONT SIZE=1 ALIGN=LEFT VALIGN=TOP><B>Min Priority</B></FONT></TD>
  </TR>
  <TR>
    <TD>
     <SELECT NAME="status">
       <OPTION VALUE="Active" SELECTED>Active</OPTION>
       <OPTION VALUE="Paused" >Paused</OPTION>
       <OPTION VALUE="Halt"> Halt </OPTION>
     </SELECT>
    </TD>
    <TD><INPUT TYPE=TEXT SIZE=8 NAME="demandCompletionWindow" 
        VALUE=00:00:00></TD>
    <TD><INPUT TYPE=TEXT SIZE=4 NAME="pickRateAverage" VALUE=120></TD>
    <TD><INPUT TYPE=TEXT SIZE=8 NAME="processingPad" VALUE=04:00:00></TD>
    <TD><INPUT TYPE=TEXT SIZE=4 NAME="containerQuantityLimit" 
        VALUE=0></TD>
    <TD><INPUT TYPE=TEXT SIZE=6 NAME="openDemandQuantityLimit" 
            DISABLED='true'
        VALUE=0></TD>
    <TD><INPUT TYPE=TEXT SIZE=6 NAME="openBatchQuantityLimit" 
        VALUE=6></TD>
    <TD><INPUT TYPE=TEXT SIZE=6 NAME="unitRateTarget" VALUE=1200></TD>
    <TD><INPUT TYPE=TEXT SIZE=8 NAME="minPremiumPercent" 
            DISABLED='true'
        VALUE=-1></TD>
    <TD>
      <select name = "minPriority">
        <option VALUE=0 SELECTED>0 - Min Priority</option>
        <option VALUE=1 >1 - Super Savers</option>
        <option VALUE=4 >4 - Normal/Std</option>
        <option VALUE=10 >10 - Premium</option>
        <option VALUE=15 >15 - Fast Track</option>
        <option VALUE=16 >16 - Same/Next</option>
      </select>
    </TD>
  </TR>
</TABLE>
 
<INPUT TYPE=SUBMIT VALUE="Submit Changes">
 
</FORM>
<BR>
 
 
 
<BR>
 
<FONT SIZE=2><B>Last 30 Changes to ProcessPathProperties</B></FONT>
<br/><a href="/gp/picking/reports/alarms-history.html?events=1&types=ConfigChange&apps=All">This has been replaced with the Critical Decision Log</a>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
</div>
 
 
 
 
<!-- whfh-hUVfxgYZlst4LmzhprYAutcgYH66NRuaPf7JAXsFd5A= rid-1WQ7QTTHY53249EPVB58 -->
 
</body>
 
<head>
****** HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE">
****** HTTP-EQUIV="PRAGMAS" CONTENT="NO-CACHE">
****** HTTP-EQUIV="Expires" CONTENT="-1">
</head>
</html>
 
 
 
 
 
 
 
 
******** type="text/javascript"> 
  // "Is It Down?" Stripe for FC PickE
  $(function() {
  isItDownStripe('FCPickExecution', 601, 1); // dispatcher
  isItDownStripe('FCPickExecution', 602, 1); // receiver broker
  isItDownStripe('FCPickExecution', 603, 1); // dispatcher broker
  });
*********>
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes

Forum statistics

Threads
1,214,948
Messages
6,122,420
Members
449,083
Latest member
Ava19

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top