+ Reply to Thread
Results 1 to 3 of 3

Write Indirect Function in VBA

  1. #1
    Forum Contributor
    Join Date
    06-30-2006
    Posts
    116

    Write Indirect Function in VBA

    Hello,

    I'm struggling a lot with the vba syntax for this function:
    '=(INDIRECT(A1&"!D10"))

    .Formula = "=(INDIRECT(A" & j & "" & "" & "!" & "D10))"
    where j = 1

    I can't get to properly write the &"!D10")) part of the function.

    Please advise
    Thanks

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Write Indirect Function in VBA

    What are you doing? Are you trying to write the formula to a cell?
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Write Indirect Function in VBA

    Try this:
    Please Login or Register  to view this content.
    Entia non sunt multiplicanda sine necessitate

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1