Code: Select all
Let>k=1
// Separate the worksheet name from the path with a colon.
Let>ExcelFilePath=D:\Saves\Games\WoW\myWoW.xls:My Markets
Let>NameItem1=Abyss Crystal
Let>CellItem1=R2C3
GoSub>GetPrices
Concat>NameItem,k
Message>wtB %NameItem% %ExcelResult%g
// Get my prices from Excel which must already be open.
SRT>GetPrices
DDERequest>Excel,%ExcelFilePath%,Item%k%,ExcelResult,5
// ERROR CHECKING
IF>ExcelResult=DDE_TIMEOUT
MessageModal>DDEReq result = %ExcelResult%
Goto>MacroEnd
ENDIF
// Remove the "Return" that Excel typically appends to the data.
StringReplace>ExcelResult,CRLF,,ExcelResult
END>GetPrices
EDIT: Now the Watch List will not display no matter what I try. Sigh... Going to try the new version.
EDIT: 11.1.10e also crashes MS, but I love the new layout, text colors, loop markers, etc. At least Show Watch List works now.