+ Reply to Thread
Results 1 to 2 of 2

Renaming variable cells using VBA

  1. #1
    Registered User
    Join Date
    05-24-2016
    Location
    Singapore
    MS-Off Ver
    2013
    Posts
    1

    Renaming variable cells using VBA

    Dear community,

    I am a beginner in VBA programming and I am grateful for any advice you can give me in order to solve the following problem:

    How can I rename a cell's content? The complication is that the word that I would like to rename exists twice in a given table.
    Let me give you an example:
    The word "Material" exists two times in a table. In order to use vlookup in a later processing stage, I would like to rename the first "Material" to "Material1" and the second "Material" to "Material2". "Material1" and "Material2" are not fixed to a certain cell. Indeed, the cells vary on a daily basis. I thought about renaming them on the basis of a particular cell range (let's say that "Material1" is definitely within the range of A200:A300 and "Material2" within the range of A500:A600").

    Any idea how I can achieve that result?

    Thanks for all your helpful comments!

  2. #2
    Forum Expert millz's Avatar
    Join Date
    08-14-2013
    Location
    Singapore
    MS-Off Ver
    Excel, Access 2016
    Posts
    1,694

    Re: Renaming variable cells using VBA

    Try running this on your worksheet:
    Please Login or Register  to view this content.
    This will search for all Material and add a running number to it.
    多么想要告诉你 我好喜欢你

+ 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: 3
    Last Post: 02-17-2015, 11:53 PM
  2. [SOLVED] Identifying and renaming the cells using first character
    By Varun13 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 06-09-2013, 01:05 AM
  3. [SOLVED] Renaming Cells depending on the Information in the Row
    By Irish RayRay in forum Excel General
    Replies: 10
    Last Post: 10-16-2012, 03:43 AM
  4. [SOLVED] Renaming cells
    By AlexESRI in forum Excel General
    Replies: 2
    Last Post: 06-12-2012, 06:04 AM
  5. Renaming dynamic cells in an active column
    By 0phd0 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-21-2008, 02:27 AM
  6. Renaming Cells
    By DPeter2101 in forum Excel General
    Replies: 5
    Last Post: 12-19-2005, 08:45 PM
  7. Renaming Cells linked to Pivot Tables
    By gsimmons2005 in forum Excel General
    Replies: 2
    Last Post: 09-13-2005, 10:51 AM

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