[AccessD] Automation of Excel through Access Problem

Gustav Brock gustav at cactus.dk
Tue Jun 15 10:46:11 CDT 2004


Hi jeffrey

You may need to "activate" the worksheet:

> 331       .Worksheets("AccountList").Activate

> 340       Range("A1:I1").Select


And why not use With/End_With a bit more:

  With .Worksheets("AccountList")
    With .PageSetup
      ...
    End With
    .Select
    ...
  End With
  
/gustav




More information about the AccessD mailing list