Get value in a cell
How can I get the value from one cell (row=1, column = 14)? I need the value
from this cell as the upper limit for a loop. I have the following code, but it is not working: cMaxRows = Worksheets("Complete").Cells(l, 14).Value I have the following error: Run-time error '1004': Application-defined or object-defined error. Can anyone help me with this? Thanks in advance. |
Get value in a cell
Change the "L" your Cells(l, 14) to 1 (one).
In article , Samantha wrote: How can I get the value from one cell (row=1, column = 14)? I need the value from this cell as the upper limit for a loop. I have the following code, but it is not working: cMaxRows = Worksheets("Complete").Cells(l, 14).Value I have the following error: Run-time error '1004': Application-defined or object-defined error. Can anyone help me with this? Thanks in advance. |
Get value in a cell
Incidently - that's exactly why you should have
Option Explicit at the top of every code module. In article , JE McGimpsey wrote: Change the "L" your Cells(l, 14) to 1 (one). |
All times are GMT +1. The time now is 09:00 AM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com