+ Reply to Thread
Results 1 to 4 of 4

insert a column without changing the macro

  1. #1
    Registered User
    Join Date
    10-07-2013
    Location
    Qatar
    MS-Off Ver
    Excel 2007
    Posts
    2

    insert a column without changing the macro

    hey all,

    I was wondering if i can insert a column after writing the macro.
    I tried doing it, but of course, all the cells addresses changed and it was a mess.

    thank you in advance for your help.

    Ibrahim

  2. #2
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: insert a column without changing the macro

    You can insert columns when ever you want, but if you have a formula, the cell addresses will change, unless you have absolute reference.

  3. #3
    Registered User
    Join Date
    10-07-2013
    Location
    Qatar
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: insert a column without changing the macro

    thank you ab33 for your reply,

    yes i am using formulas via VBA.
    i need to know how to insert and keep the code as is. i absolutely don;t want to go through the code again and change every reference. this can be cruel

    Quote Originally Posted by AB33 View Post
    You can insert columns when ever you want, but if you have a formula, the cell addresses will change, unless you have absolute reference.

  4. #4
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: insert a column without changing the macro

    Could you please post your code then?

+ 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. Insert row macro at the end of a changing data set
    By jpmorgan123 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-04-2013, 01:47 PM
  2. [SOLVED] Stop cell reference changing when insert column
    By freud1 in forum Excel General
    Replies: 3
    Last Post: 07-27-2012, 10:44 AM
  3. Insert a column while not changing formula
    By kevironi in forum Excel General
    Replies: 4
    Last Post: 02-02-2011, 10:05 PM
  4. Changing formula in macro after row insert
    By ferro in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-30-2006, 01:53 AM
  5. insert column without changing references
    By mrsmac in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-10-2005, 02:06 PM

Tags for this Thread

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