• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

rows as dynamic incrementor

tomas

Active Member
Hello


I want to solve a part of formula. Basically in cells (b10:c16) there will be index formula, but first I need to solve offset part of formula where all this cells must refer to row 9 which will contain names of sheets.

I tried this code but dont know how to make range in rows function where one cell absolute refence and the other relative

Code:
Dim str As String

str = "=offset(" & Cells(10, 2).Address(False, False) & ",-(rows(" & Range(Cells(10, 2), Cells(10, 2)).Address & ",)),0)"

Anyways workbook contains worksheet formula which I need to transfer to VBA

thanks in advance
 

Attachments

  • Sešit3.xlsx
    8.6 KB · Views: 4
Hi !

Absolute and relative reference are well explained
in Range.Address VBA help and its sample …

See also its ReferenceStyle and RelativeTo parameters.
Setting to True its External parameter includes worksheet's name …
 
Back
Top