Excel 2007 application

  • Thread starter Thread starter Jorge Ribeiro
  • Start date Start date
J

Jorge Ribeiro

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
 
Dim myWB as workbook

Set myWB = ActiveWorkbook
'or
Set myWB = ThisWorkbook
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top