Trouble area:
ButtonSet: ;this is the trouble area
Excel_Ptr := ComObjActive("Excel.Application") ;sets currently active sheet
Row_Pointer = 2
Gui,Submit
GuiControl,,Subscriber_ID,% Excel_Ptr.Range("C" . Row_Pointer).Value
GuiControl,,Customer_Name,% Excel_Ptr.Range("D" . Row_Pointer).Value
GuiControl,,Account_Number,% Excel_Ptr.Range("F" . Row_Pointer).Value
GuiControl,,Return_Reason,% Excel_Ptr.Range("H" . Row_Pointer).Value
GuiControl,,Return_Amount,% Excel_Ptr.Range("I" . Row_Pointer).Value
GuiControl,,Debit_Excp,% Excel_Ptr.Range("J" . Row_Pointer).Value
GuiControl,,Action,% Excel_Ptr.Range("K" . Row_Pointer).Value
Gui,Show
ReturnFull script:
Gui,+AlwaysOnTop +ToolWindow -SysMenu
Gui,Add,Button,Section,Exit
Gui,Add,Button,R1 YS,Set
Gui,Add,Button,R1 YS,Back
Gui,Add,Edit,vSubscriber_ID ReadOnly R1 W100 YS,% Excel_Ptr.Range("C" . Row_Pointer).Value
Gui,Add,Edit,vCustomer_Name ReadOnly R1 W100 YS,% Excel_Ptr.Range("D" . Row_Pointer).Value
Gui,Add,Edit,vAccount_Number ReadOnly R1 W100 YS,% Excel_Ptr.Range("F" . Row_Pointer).Value
Gui,Add,Edit,vReturn_Reason ReadOnly R1 W30 YS,% Excel_Ptr.Range("H" . Row_Pointer).Value
Gui,Add,Edit,vReturn_Amount ReadOnly R1 W50 YS,% Excel_Ptr.Range("I" . Row_Pointer).Value
Gui,Add,Edit,vDebit_Excp ReadOnly CRed Uppercase R1 W25 YS,% Excel_Ptr.Range("J" . Row_Pointer).Value
Gui,Add,Edit,vAction ReadOnly R1 W25 Center YS,% Excel_Ptr.Range("K" . Row_Pointer).Value
Gui,Add,Button,R1 YS,EC
Gui,Add,Button,R1 YS,NS
;Gui,Add,Button,YS,Continue
;Gui,Add,DDL,vOther_Action gOther W65 YS,--Other--||DE|High$|Purged
Gui,Show
Return
;-------------Buttons
ButtonExit:
ExitApp
ButtonSet: ;this is the trouble area
Excel_Ptr := ComObjActive("Excel.Application") ;sets currently active sheet
Row_Pointer = 2
Gui,Submit
GuiControl,,Subscriber_ID,% Excel_Ptr.Range("C" . Row_Pointer).Value
GuiControl,,Customer_Name,% Excel_Ptr.Range("D" . Row_Pointer).Value
GuiControl,,Account_Number,% Excel_Ptr.Range("F" . Row_Pointer).Value
GuiControl,,Return_Reason,% Excel_Ptr.Range("H" . Row_Pointer).Value
GuiControl,,Return_Amount,% Excel_Ptr.Range("I" . Row_Pointer).Value
GuiControl,,Debit_Excp,% Excel_Ptr.Range("J" . Row_Pointer).Value
GuiControl,,Action,% Excel_Ptr.Range("K" . Row_Pointer).Value
Gui,Show
Return
ButtonBack:
Gui,Submit
GuiControl,,Row_Pointer,% Row_Pointer--
GuiControl,,Subscriber_ID,% Excel_Ptr.Range("C" . Row_Pointer).Value
GuiControl,,Customer_Name,% Excel_Ptr.Range("D" . Row_Pointer).Value
GuiControl,,Account_Number,% Excel_Ptr.Range("F" . Row_Pointer).Value
GuiControl,,Return_Reason,% Excel_Ptr.Range("H" . Row_Pointer).Value
GuiControl,,Return_Amount,% Excel_Ptr.Range("I" . Row_Pointer).Value
GuiControl,,Debit_Excp,% Excel_Ptr.Range("J" . Row_Pointer).Value
GuiControl,,Action,% Excel_Ptr.Range("K" . Row_Pointer).Value
Gui,Show
Return
ButtonEC:
Excel_Ptr.Range("K" . Row_Pointer).Value := "EC"
Gui,Submit
GuiControl,,Row_Pointer,% Row_Pointer++
GuiControl,,Subscriber_ID,% Excel_Ptr.Range("C" . Row_Pointer).Value
GuiControl,,Customer_Name,% Excel_Ptr.Range("D" . Row_Pointer).Value
GuiControl,,Account_Number,% Excel_Ptr.Range("F" . Row_Pointer).Value
GuiControl,,Return_Reason,% Excel_Ptr.Range("H" . Row_Pointer).Value
GuiControl,,Return_Amount,% Excel_Ptr.Range("I" . Row_Pointer).Value
GuiControl,,Debit_Excp,% Excel_Ptr.Range("J" . Row_Pointer).Value
GuiControl,,Action,% Excel_Ptr.Range("K" . Row_Pointer).Value
Gui,Show
Return
ButtonNS:
Excel_Ptr.Range("K" . Row_Pointer).Value := "NS"
Gui,Submit
GuiControl,,Row_Pointer,% Row_Pointer++
GuiControl,,Subscriber_ID,% Excel_Ptr.Range("C" . Row_Pointer).Value
GuiControl,,Customer_Name,% Excel_Ptr.Range("D" . Row_Pointer).Value
GuiControl,,Account_Number,% Excel_Ptr.Range("F" . Row_Pointer).Value
GuiControl,,Return_Reason,% Excel_Ptr.Range("H" . Row_Pointer).Value
GuiControl,,Return_Amount,% Excel_Ptr.Range("I" . Row_Pointer).Value
GuiControl,,Debit_Excp,% Excel_Ptr.Range("J" . Row_Pointer).Value
GuiControl,,Action,% Excel_Ptr.Range("K" . Row_Pointer).Value
Gui,Show
Return
Other:
ReturnThanks 



