+ Reply to Thread
Results 1 to 2 of 2

Edit reference in a formula using vba

Hybrid View

  1. #1
    Registered User
    Join Date
    01-23-2010
    Location
    india
    MS-Off Ver
    Excel 2003 and 2007
    Posts
    2

    Edit reference in a formula using vba

    Hi All,

    I want to do the following using vba and I am having a hard time to figure it out. Any help is highly appreciated.

    The following steps can be done directly in the excel.
    1. Enter a sample formula in cell "C1" i.e., "=A1+B1"
    2. On cell "C1", press F2 and select reference B1
    3. Press F5 and Goto dialog box is opened. You can see "B1" in the Reference textbox. Click OK.
    4. Now you can see that there is a marquee around cell B1 and using arrow keys you can move the marquee that changes the reference "B1" to a new value and hence changes the formula.

    My requirement is as follows:
    I have a userform (that has a treeview and a button) which displays all the references (ie., A1, B1) of the formula in the treeview. Now if I select B1 and click on the button. I want to go to a state as indicated in Point#4 as indicated above.

    Let me know if any other information is required.

    Thanks,
    yaghappak

  2. #2
    Registered User
    Join Date
    01-23-2010
    Location
    india
    MS-Off Ver
    Excel 2003 and 2007
    Posts
    2

    Re: Edit reference in a formula using vba

    Any inputs or any other way to achieve the same result?

    Thanks,
    yaghappak

+ 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