Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
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. |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
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. |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
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). |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Code to copy the formulae of one cell to all the cell in the rangewith the specific cell and columnnumber changing Options | Excel Discussion (Misc queries) | |||
Code to copy the formulae of one cell to all the cell in the rangewith the specific cell and columnnumber changing | Excel Discussion (Misc queries) | |||
Populate a cell if values in cell 1 and cell 2 match cell 3 and 4 | Excel Worksheet Functions | |||
NEED VBA TO SELECT A CELL; NOTE THE CELL VALUE;COPYADJ CELL;FIND CELL VALUE IN A RANGE AND SO ON | Excel Programming | |||
How to create/run "cell A equals Cell B put Cell C info in Cell D | Excel Discussion (Misc queries) |