Kitnba,<br><br>My understanding is that VBA can reference variables by name, but VFP can't so you have to list the variables. Try this:-<br><br>xThisSheet.vPageBreaks(1).DragOff(-4161,1)<br><br>Alternatively, you can define variables using VFP's preprocessor command #DEFINE.<br><br>You can get the values of Excel object variables by pressing Alt-F11 in Excel, which brings up VBA and then press F2 which brings up the Object Browser (or it does prior to Office 2000).<br><br>If you are doing a lot of automation of Office with VFP, then I can recommend a new book