ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Excel 2007 application (https://www.excelbanter.com/excel-programming/421332-excel-2007-application.html)

Jorge Ribeiro

Excel 2007 application
 
Hello

I've a newbie question. I've an Excel 2007 application and want to send to
method
the current workbook as a parameter.
How can I accomplish this?!

I can't just do (Excel.Workbook)this in my workbook code because it generates
a compile error... Can you assist me here?!

Jorge

Barb Reinhardt

Excel 2007 application
 
Dim myWB as workbook

Set myWB = ActiveWorkbook
'or
Set myWB = ThisWorkbook

--
HTH,
Barb Reinhardt

If this post was helpful to you, please click YES below.



"Jorge Ribeiro" wrote:

Hello

I've a newbie question. I've an Excel 2007 application and want to send to
method
the current workbook as a parameter.
How can I accomplish this?!

I can't just do (Excel.Workbook)this in my workbook code because it generates
a compile error... Can you assist me here?!

Jorge



All times are GMT +1. The time now is 08:49 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com