I made a macro that has activated the page for its SheetID
set var = ActiveDocument.Variables("vDetailSheet")
var.SetContent "MARGIN", true
here string "MARGIN" it's SheetID..
In your case enough only one string: ActiveDocument.Sheets("MARGIN").Activate
thnx for your macro! Used the string as mentioned: ActiveDocument.Sheets("MARGIN").Activate. And instead "MARGIN" I used the sheetid; SH02. But the macro doesn t work..... In the debug mode i get a message "Failed to get Disp ID of function". In test mode the macro works, but after closing the macro it fails .... Any Idea what goes wrong?