+ Reply to Thread
Results 1 to 3 of 3

Change Linked Formula Column to Next Column Through VBA

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    12-18-2019
    Location
    chennai
    MS-Off Ver
    excel 2010
    Posts
    141

    Post Change Linked Formula Column to Next Column Through VBA

    Hi

    I have formula linked in some excel workbook on Various Columns, i want to select those columns and want to change the next column of Formula through VBA.

    Like the below Formula linked with Column AC i want to change as "AD"

    C:\[Hello.xlsx]Test'!$AC$89*1000

    the below Formula linked with Column BC i want to change as "BD"

    C:\[Hello.xlsx]Test'!$BC$91*1000

    the below Formula linked with Column K i want to change as "L"

    C:\[Hello.xlsx]Test'!$K$915*1000

    Like this for selected columns. Please help

  2. #2
    Valued Forum Contributor
    Join Date
    08-03-2012
    Location
    Newcastle
    MS-Off Ver
    Excel 2007, 2010, 2013, 2016, Office 365
    Posts
    492

    Re: Change Linked Formula Column to Next Column Through VBA

    Hi

    You don't need to use vba to adjust your link formulas.
    1. Open the file with the link-formulas you want to adjust.
    2. open the file [Hello.xlsx]
    3. Switch to view the file [Hello.xlsx], and move to the sheet named Test
    4. Move the cellpointer to cell [A1] and Insert a new column
    5. Switch view to your file with the link formulas.
    6. You will see that the links have now been updated, so now save the file with these new updated link formulas.
    7. Now Close the file
    8. Close the [Hello.xlsx] file without saving (i.e. ignore the change you made when inserting the new column)

    zeddy

  3. #3
    Forum Contributor
    Join Date
    12-18-2019
    Location
    chennai
    MS-Off Ver
    excel 2010
    Posts
    141

    Re: Change Linked Formula Column to Next Column Through VBA

    Hi zzzeddy I consider your suggestion . But i have 4 to five workbook so expecting help from VBA code

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 5
    Last Post: 01-29-2017, 08:43 PM
  2. [SOLVED] Need a formula to change cell in column 2 based off of text in column 1
    By bevwalker in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-30-2014, 03:26 PM
  3. Move cells a formula is linked to when a new column is inserted
    By batchjb69 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-22-2014, 05:31 PM
  4. [SOLVED] Formula which allows for a change in Column B as a result of Column A
    By bubblesxox in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 07-22-2013, 11:56 AM
  5. Replies: 4
    Last Post: 09-05-2012, 01:50 PM
  6. Looking for a macro that copies a formula from column to column as I change the month
    By caliskier in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-18-2007, 03:32 PM
  7. Locking column entries to an adjacent linked column
    By Steeljaw in forum Excel General
    Replies: 1
    Last Post: 01-23-2006, 06:50 PM

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