![]() |
Variable Question
Hi
If i have this With Worksheets("Ark1") Set cell = .Cells(Rows.Count, 1).End(xlUp) End With If Not IsEmpty(cell) Then Set cell = cell(2) cell.Value = antal What type is Cell as vaiable Regards alvin |
Variable Question
As you have it, cell is a range. HTH Otto
"alvin Kuiper" wrote in message ... Hi If i have this With Worksheets("Ark1") Set cell = .Cells(Rows.Count, 1).End(xlUp) End With If Not IsEmpty(cell) Then Set cell = cell(2) cell.Value = antal What type is Cell as vaiable Regards alvin |
Variable Question
Thanks
Alvin "Otto Moehrbach" wrote: As you have it, cell is a range. HTH Otto "alvin Kuiper" wrote in message ... Hi If i have this With Worksheets("Ark1") Set cell = .Cells(Rows.Count, 1).End(xlUp) End With If Not IsEmpty(cell) Then Set cell = cell(2) cell.Value = antal What type is Cell as vaiable Regards alvin |
Variable Question
You can easily find out. Step through the code, and after setting the value,
drag a copy of cell into the Watch window and it will tell you in there. -- HTH Bob Phillips (remove nothere from the email address if mailing direct) "alvin Kuiper" wrote in message ... Hi If i have this With Worksheets("Ark1") Set cell = .Cells(Rows.Count, 1).End(xlUp) End With If Not IsEmpty(cell) Then Set cell = cell(2) cell.Value = antal What type is Cell as vaiable Regards alvin |
Variable Question
Wow not bad at all
Thanks Alvin "Bob Phillips" wrote: You can easily find out. Step through the code, and after setting the value, drag a copy of cell into the Watch window and it will tell you in there. -- HTH Bob Phillips (remove nothere from the email address if mailing direct) "alvin Kuiper" wrote in message ... Hi If i have this With Worksheets("Ark1") Set cell = .Cells(Rows.Count, 1).End(xlUp) End With If Not IsEmpty(cell) Then Set cell = cell(2) cell.Value = antal What type is Cell as vaiable Regards alvin |
All times are GMT +1. The time now is 12:28 PM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com