+ Reply to Thread
Results 1 to 3 of 3

Loop Through to replace all names on a worksheet

  1. #1
    Registered User
    Join Date
    12-04-2018
    Location
    Chicago
    MS-Off Ver
    2010
    Posts
    28

    Question Loop Through to replace all names on a worksheet

    Hello all,

    Working on creating a loop to change the names on all the vendors to a set name. In this worksheet there are over 15,000 rows and about 287 vendors. What I am trying to achieve is to have "All Imports" as the main sheet and create a Sheet2 within the workbook to be used as a array to loop through. I want to do it this way, rather than hard-code the names, as they can change and more added over time, this way anyone will be able to control the names portion of the macro.

    Any one have any ideas. Attached is a sample format
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    10-06-2008
    Location
    Canada
    MS-Off Ver
    2007 / 2013
    Posts
    5,527

    Re: Loop Through to replace all names on a worksheet

    Maybe
    Please Login or Register  to view this content.
    However, if looping is your preference (would be slower).
    Please Login or Register  to view this content.
    This should be a faster loop as it works in memory and puts it in place after.
    Please Login or Register  to view this content.
    Last edited by jolivanes; 04-15-2019 at 06:53 PM. Reason: more possibilities

  3. #3
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,239

    Re: Loop Through to replace all names on a worksheet

    Another option...
    Please Login or Register  to view this content.
    Good Luck
    I don't presume to know what I am doing, however, just like you, I too started somewhere...
    One-day, One-problem at a time!!!
    If you feel I have helped, please click on the star to left of post [Add Reputation]
    Also....add a comment if you like!!!!
    And remember...Mark Thread as Solved.
    Excel Forum Rocks!!!

+ 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. [SOLVED] Replace Name in Worksheet if Worksheet Names equals a certain Value
    By kingsdime29x in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-11-2018, 04:04 PM
  2. [SOLVED] Do Loop macro that names and saves worksheet as workbook based on cell value
    By happyfingers in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-08-2017, 09:55 AM
  3. [SOLVED] Loop through worksheet names and copy cell value
    By cajand in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-03-2014, 01:17 PM
  4. Replies: 2
    Last Post: 07-25-2012, 04:15 PM
  5. Loop through worksheet names using variables
    By altimababe in forum Excel General
    Replies: 10
    Last Post: 05-17-2012, 07:37 AM
  6. Replace text in worksheet names
    By ajtofelfa in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-10-2010, 02:49 AM
  7. Loop through Worksheet Names
    By nsorden in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 07-28-2009, 01:04 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