Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Controlling Excel From Access
I have an Access app that creates a new worksheet in the workbook chosen by
the user via a dialog box. I would like the new worksheet to appear at the end of the existing collection of worksheets. Would anyone happen to know the syntax for getting a count of sheets in the current workbook and using that count to place the new sheet at the end? Many thanks. Keith. |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Controlling Excel From Access
xlApp is a reference to the currently opened Excel workbook and xlWS is the
reference to the new sheet you have added xlWS.Move After:=xlApp.Worksheets(xlApp.Worksheets.Count) "Keith Wilby" wrote: I have an Access app that creates a new worksheet in the workbook chosen by the user via a dialog box. I would like the new worksheet to appear at the end of the existing collection of worksheets. Would anyone happen to know the syntax for getting a count of sheets in the current workbook and using that count to place the new sheet at the end? Many thanks. Keith. |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Controlling Excel From Access
"Dennis" wrote in message
... xlApp is a reference to the currently opened Excel workbook and xlWS is the reference to the new sheet you have added xlWS.Move After:=xlApp.Worksheets(xlApp.Worksheets.Count) Dennis, thank you, just the job. Regards, Keith. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Controlling Access from Excel | Excel Programming | |||
getting extra excel instance when controlling from access VBA | Excel Programming | |||
Controlling Access with Excel VBA | Excel Programming | |||
Access 2002 VB Module controlling Excel 2002 spreadsheet -Run-time | Excel Programming | |||
Controlling Access from Excel | Excel Programming |