Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 41
Default use of indirect function in vba

indirect function is not one of the worksheet functions available in vba.
but
the code
Range("E8").Select

ActiveCell.FormulaR1C1 = "=INDIRECT(R[-7]C[-4])"
Range("E8").Select
(this is based on a macro created on going through the steps)
works . But

activecell=indirect(range("a1")) does not work
nor
activecell=application.indirect(range("a1"))
nor
activecell.formula="application.indirect(range("a1 ")"

any comments or any of my codes wrong. ??



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 74
Default use of indirect function in vba

Hi,

Try:

Sub myIndirect()
Range("E8").Select
ActiveCell.Value = Range(Range("A1").Value).Value
End Sub

Hoop this helps,


Executor

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 41
Default use of indirect function in vba

thank you. that helps.


"Executor" wrote in message
oups.com...
Hi,

Try:

Sub myIndirect()
Range("E8").Select
ActiveCell.Value = Range(Range("A1").Value).Value
End Sub

Hoop this helps,


Executor



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
Using INDIRECT Function and INDEX Function ChristopherG Excel Discussion (Misc queries) 1 June 10th 09 04:07 PM
Indirect function help please Guy[_2_] Excel Worksheet Functions 10 August 6th 07 11:06 AM
INDIRECT function inside AND function Biff Excel Worksheet Functions 3 September 23rd 06 07:20 PM
Function INDIRECT emilija Excel Worksheet Functions 6 April 28th 06 05:21 PM
Indirect Function and Sum gr Excel Worksheet Functions 2 February 2nd 05 04:16 PM


All times are GMT +1. The time now is 04:13 PM.

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"