+ Reply to Thread
Results 1 to 5 of 5

VBA AutoUpdate?

  1. #1
    Forum Contributor
    Join Date
    01-20-2014
    Location
    Greece
    MS-Off Ver
    20 yr. old Excel 2002!
    Posts
    710

    VBA AutoUpdate?

    Is there a way for the code to be auto updated much like a formula does when inserting rows and columns?

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,523

    Re: VBA AutoUpdate?

    Short story: no.

    Long story: create (Dynamic) Named Ranges for the cells and ranges that you need to refer to and then use those (D)NRs rather than hard coding references like Range("B1").Value; use, for example, Range("nrCompany")
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Contributor
    Join Date
    01-20-2014
    Location
    Greece
    MS-Off Ver
    20 yr. old Excel 2002!
    Posts
    710

    Re: VBA AutoUpdate?

    Good tip!
    And if a NR is say, A1:B10 and you need to paste to B1 you use an Offset?

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,523

    Re: VBA AutoUpdate?

    Well, basically, you need to be able to NOT refer to a hard coded range if that range is likely to change/be moved.

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,523

    Re: VBA AutoUpdate?

    Thanks for the rep.

+ 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. AutoUpdate Picklist
    By swalsh^s96 in forum Excel General
    Replies: 3
    Last Post: 04-14-2015, 02:44 PM
  2. Keeping Master List updated and in Alphabetical order.
    By redge31 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-22-2014, 05:58 PM
  3. How to autoupdate your graph
    By swmurray in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-27-2011, 02:53 PM
  4. Excel 2007 : Autoupdate rows in one tab to another
    By Riosmitham in forum Excel General
    Replies: 0
    Last Post: 01-07-2011, 08:13 AM
  5. Autoupdate Chart
    By Dylan&Hayden in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 06-03-2009, 09:34 PM
  6. Autoupdate?
    By powerwindow in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-09-2009, 06:50 PM
  7. Autoupdate not working
    By deanelle in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-14-2009, 05:06 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