ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   What am I doing wrong here (https://www.excelbanter.com/excel-programming/384040-what-am-i-doing-wrong-here.html)

Barb Reinhardt

What am I doing wrong here
 
oWB is a workbook and ows is a worksheet

Debug.print Workbooks(oWB).Sheets(oWS).Range("CurrentMonth").C olumn

Thanks,
Barb Reinhardt

Tom Ogilvy

What am I doing wrong here
 
if you have
Dim oWS as Worksheet
and you have set it to someting then it would be:

debug.print oWS.Range("CurrentMonth").Column


--
Regards,
Tom Ogilvy

"Barb Reinhardt" wrote:

oWB is a workbook and ows is a worksheet

Debug.print Workbooks(oWB).Sheets(oWS).Range("CurrentMonth").C olumn

Thanks,
Barb Reinhardt


Tom Ogilvy

What am I doing wrong here
 
Just as a heads up for your other question, when you don't put anything in
the body of the message, it can't be replied to from some sites.

--
Regards,
Tom Ogilvy


"Barb Reinhardt" wrote:

oWB is a workbook and ows is a worksheet

Debug.print Workbooks(oWB).Sheets(oWS).Range("CurrentMonth").C olumn

Thanks,
Barb Reinhardt



All times are GMT +1. The time now is 07:02 PM.

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