e.g. i name a cell "hello"
i would like to assign a vaule 2 to that cell, what will be the correct vba syntax to perform hello =2 ?
thanks![]()
e.g. i name a cell "hello"
i would like to assign a vaule 2 to that cell, what will be the correct vba syntax to perform hello =2 ?
thanks![]()
or![]()
Range("Hello").Value = 2
![]()
[Hello] = 2
Rule 1: Never merge cells
Rule 2: See rule 1
"Tomorrow I'm going to be famous. All I need is a tennis racket and a hat".
thanks a lot,
If i name instead multiple cells(range) as Hello,
Could I refer to each cell using [Hello](i) = i?
just like when we did range("Hello")(i) to refer to a certain cell in the range
Last edited by DonkeyOte; 01-07-2011 at 10:21 AM. Reason: removed unnecessary quote
Do you mean create a range that contains multiple cells, like a table?
Hope that helps.
RoyUK
--------
For Excel Tips & Solutions, free examples and tutorials why not check out my web site
Free DataBaseForm example
yeh, like naming range("a1","c6") as hello
Something like this will work in a table say A1:C6.
![]()
Range("hello").Cells(2, 2).Value = "Hello world"
If as I suspect you're referring exclusively to Evaluate then no, not with the shorthand notation assuming i is meant to reflect a variable.Originally Posted by yellowpower
If i is a constant:
![]()
[INDEX(Hello,2] = "apple"
My Recommended Reading:
Volatility
Sumproduct & Arrays
Pivot Intro
Email from XL - VBA & Outlook VBA
Function Dictionary & Function Translations
Dynamic Named Ranges
Great! thanks
You could however use:
![]()
Evaluate("Hello")(i) = i
Everyone who confuses correlation and causation ends up dead.
thats very helpful. tx!
If you are satisfied with the solution(s) provided, please mark your thread as Solved.
How to mark a thread Solved
Go to the first post
Click edit
Click Go Advanced
Just below the word Title you will see a dropdown with the word No prefix.
Change to Solved
Click Save
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks