General information
Category:
COM/DCOM and OLE Automation
expression.Move(Before, After)
For unknown reason I was never able to use "after:" for Move, only "before:". It accepts only one parameter and treats it as "before:".
>Hello,
>
>I'm trying to automate the creation of a workbook by inserting specific sheets from different workbooks. There is a problem in the syntax of my move which I can't seem to pinpoint.
>
>
>My code:
>myExcel.Application.Workbooks(2).Sheets(1).Move ;
> After:=myExcel.Application.Workbooks(1).Sheets(1)
>
>Thanks in advance!
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only