Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I'm trying to access some named ranges from with a VBA function.
For Example, I've a column of Cells (A3:A12) name "DataIn" In my VBA Function GetData() I have Dim Cell as Range For each Cell in DataIn ' some Code Next Cell Well, this doesn't work. How can I address "DataIn?" Thank you... |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() For each Cell in Range("DataIn").cells the .cells bit might not be necessary -- p45cal *p45cal* ------------------------------------------------------------------------ p45cal's Profile: http://www.thecodecage.com/forumz/member.php?userid=558 View this thread: http://www.thecodecage.com/forumz/sh...d.php?t=157498 Microsoft Office Help |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Try
Dim Cell As Range For Each Cell In Range("DataIn") 'some code Next Cell If this post helps click Yes --------------- Jacob Skaria "Bruce A. Julseth" wrote: I'm trying to access some named ranges from with a VBA function. For Example, I've a column of Cells (A3:A12) name "DataIn" In my VBA Function GetData() I have Dim Cell as Range For each Cell in DataIn ' some Code Next Cell Well, this doesn't work. How can I address "DataIn?" Thank you... . |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() "Jacob Skaria" wrote in message ... Try Dim Cell As Range For Each Cell In Range("DataIn") 'some code Next Cell If this post helps click Yes --------------- Jacob Skaria "Bruce A. Julseth" wrote: I'm trying to access some named ranges from with a VBA function. For Example, I've a column of Cells (A3:A12) name "DataIn" In my VBA Function GetData() I have Dim Cell as Range For each Cell in DataIn ' some Code Next Cell Well, this doesn't work. How can I address "DataIn?" Thank you... . Yah, that was the problem. I "FORGOT" to wrap the Named Column in Quotes. Thanks.... |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
For Each Cell In Worksheets("Sheet1").Range("DataIn").Cells
....do something Next "Bruce A. Julseth" wrote in message ... I'm trying to access some named ranges from with a VBA function. For Example, I've a column of Cells (A3:A12) name "DataIn" In my VBA Function GetData() I have Dim Cell as Range For each Cell in DataIn ' some Code Next Cell Well, this doesn't work. How can I address "DataIn?" Thank you... |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Urgent... Getting error in accessing named ranges in excel 2007... | Excel Programming | |||
Named ranges scope / workbook/worksheet level named ranges- changeswith variable use... | Excel Programming | |||
Named Ranges - accessing a cell | Excel Discussion (Misc queries) | |||
Accessing named ranges in Excel from VBA | Excel Discussion (Misc queries) | |||
Accessing Named Ranges | Excel Programming |