Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default VBA does not recognize Excel worksheet function "indirect"

Which would be quite useful especially fo creating ccertain custom lookup
functions. This is the only function I have ever had a probelem with.....VBA
editor won't even capitalize the function name....

Any thoughts?

----------------
This post is a suggestion for Microsoft, and Microsoft responds to the
suggestions with the most votes. To vote for this suggestion, click the "I
Agree" button in the message pane. If you do not see the button, follow this
link to open the suggestion in the Microsoft Web-based Newsreader and then
click "I Agree" in the message pane.

http://www.microsoft.com/office/comm...el.programming
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 170
Default VBA does not recognize Excel worksheet function "indirect"

Not thoroughly tested but it seems that if A2 contains a reference to A1
then
Range(Range("A2"))
would return the value of A1 in VBA just like INDIRECT(A2) does when used as
a Worksheet formula.

HTH,
--
George Nicholson

Remove 'Junk' from return address.


"Todkerr" wrote in message
...
Which would be quite useful especially fo creating ccertain custom lookup
functions. This is the only function I have ever had a probelem
with.....VBA
editor won't even capitalize the function name....

Any thoughts?

----------------
This post is a suggestion for Microsoft, and Microsoft responds to the
suggestions with the most votes. To vote for this suggestion, click the "I
Agree" button in the message pane. If you do not see the button, follow
this
link to open the suggestion in the Microsoft Web-based Newsreader and then
click "I Agree" in the message pane.

http://www.microsoft.com/office/comm...el.programming



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default VBA does not recognize Excel worksheet function "indirect"

I don't think I've ever used =indirect() in code.

But I have used stuff like:

dim myRng as range
with activesheet
.range("a1").value = "c11:e99"
set myrng = .range(.range("a1").value)
end with

So myrng would point at c11:e99 of that activesheet.

Todkerr wrote:

Which would be quite useful especially fo creating ccertain custom lookup
functions. This is the only function I have ever had a probelem with.....VBA
editor won't even capitalize the function name....

Any thoughts?

----------------
This post is a suggestion for Microsoft, and Microsoft responds to the
suggestions with the most votes. To vote for this suggestion, click the "I
Agree" button in the message pane. If you do not see the button, follow this
link to open the suggestion in the Microsoft Web-based Newsreader and then
click "I Agree" in the message pane.

http://www.microsoft.com/office/comm...el.programming


--

Dave Peterson
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Yep thanks folks - that works perfectly.



This is useful for setting up a contiguous database that references the same
cell position on many different sheets - especially if you have MANY sheets.
Say like 100 coast models where the FY07 cost is in cell C10 on every
sheet....

Paste the sheet names in a column....then use a custom function to
concatenate the sheet name and the cell references. Make easy pivots out of
data on 100 tabs.

Thanks again.
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Turn off "CALCULATE" on bottom of Excel worksheet. near "Ready" chrispal86 Excel Discussion (Misc queries) 2 February 2nd 10 08:36 PM
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell Steve Kay Excel Discussion (Misc queries) 2 August 8th 08 01:54 AM
Excel "Worksheet Name" Building Function for Summary Sheet stevefromnaki Excel Discussion (Misc queries) 2 October 16th 07 05:16 PM
Excel 2003 does not recognize "no fill" from older Excel srnetworks Excel Worksheet Functions 0 May 30th 06 07:26 AM
Excel VBA, won't recognize "Word.Application" object Skyron Excel Programming 2 May 19th 04 08:48 PM


All times are GMT +1. The time now is 03:12 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"