ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Problems usinga a variable in a worksheet function? (https://www.excelbanter.com/excel-programming/316208-problems-usinga-variable-worksheet-function.html)

Kobayashi[_51_]

Problems usinga a variable in a worksheet function?
 

Tom,

Hopefully you're still around?

If so, then....

I have the declared and set the following variables and have tried
using them both withing the adjusted code without success?

Dim OCB As Workbook
Dim OCS As Worksheet

Set OCB = ActiveWorkbook
Set OCS = OCB.ActiveSheet

Any ideas?

Thanks,

Adrian


--
Kobayashi
------------------------------------------------------------------------
Kobayashi's Profile: http://www.excelforum.com/member.php...nfo&userid=871
View this thread: http://www.excelforum.com/showthread...hreadid=276260



All times are GMT +1. The time now is 11:54 PM.

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