ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   first row in array (https://www.excelbanter.com/excel-programming/356490-first-row-array.html)

[email protected][_2_]

first row in array
 
Hi, if name a1:a20 as 'myvalues' then in vba assign to an array
'myarray', how can I check 'myarray' to see if it contains any values
using vba. Or even check 'myvalues'. Either would do.
Regards Robert


Tom Ogilvy

first row in array
 
if isempty(range("MyValues")(1)) then

or

myArray = Range("MyValues").Value

if isempty(myarray(1,1)) then

--
Regards,
Tom Ogilvy


" wrote:

Hi, if name a1:a20 as 'myvalues' then in vba assign to an array
'myarray', how can I check 'myarray' to see if it contains any values
using vba. Or even check 'myvalues'. Either would do.
Regards Robert




All times are GMT +1. The time now is 01:31 PM.

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