+ Reply to Thread
Results 1 to 7 of 7

Updating code hassle - automate the process

  1. #1
    Registered User
    Join Date
    06-15-2015
    Location
    Seattle
    MS-Off Ver
    2013
    Posts
    62

    Updating code hassle - automate the process

    Please Login or Register  to view this content.
    Here is my current code but if I insert a new column its a hassle to make the same process again. Any suggestions?
    Last edited by saechaoc; 06-24-2015 at 03:45 PM.

  2. #2
    Valued Forum Contributor nigelbloomy's Avatar
    Join Date
    11-06-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    1,011

    Re: Updating code hassle - automate the process

    Does this make it easier?

    Please Login or Register  to view this content.
    Some people volunteer in soup kitchens or hospitals. I choose to make the world better by trying to help you with Excel. We're all learning.

    <---Click * Add Reputation for all helpful comments. It's like giving a smile.
    Forum Rules: How to mark your post [Solved] and have a happier, Excel enriched life.

  3. #3
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: Updating code hassle - automate the process

    You are referencing static column numbers. When you insert new columns they column numbers change but your static numbers in code do not. You need some type of dynamic column number. Without an example of your workbook it is hard to create a dynamic approach unless you want to just apply to all columns.

  4. #4
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,066

    Re: Updating code hassle - automate the process

    Try, here until column 8
    Please Login or Register  to view this content.
    - Battle without fear gives no glory - Just try

  5. #5
    Registered User
    Join Date
    06-15-2015
    Location
    Seattle
    MS-Off Ver
    2013
    Posts
    62

    Re: Updating code hassle - automate the process

    Quote Originally Posted by stnkynts View Post
    You are referencing static column numbers. When you insert new columns they column numbers change but your static numbers in code do not. You need some type of dynamic column number. Without an example of your workbook it is hard to create a dynamic approach unless you want to just apply to all columns.
    What he said ^^ I need it to be dynamic but the columns are going to be enclosed. Meaning they start at i = 2 and end at iCol - 7.

    icol being the range of columns - the outside columns (there are 7).

  6. #6
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,066

    Re: Updating code hassle - automate the process

    See
    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    06-15-2015
    Location
    Seattle
    MS-Off Ver
    2013
    Posts
    62

    Re: Updating code hassle - automate the process

    that is something similar to what I want. thanks for the help.

+ 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. How to automate all process?
    By janernevis in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-01-2010, 03:05 PM
  2. Automate process
    By kamalthakur in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-17-2010, 11:27 AM
  3. Automate a add-in process
    By The Excel Boy in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-23-2008, 01:26 AM
  4. automate process
    By Aurbo99 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 06-08-2007, 05:46 PM
  5. Automate process
    By martins in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 02-27-2007, 02:39 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