+ Reply to Thread
Results 1 to 7 of 7

Macro to insert text into empty cells with a specified criteria

  1. #1
    Registered User
    Join Date
    08-21-2008
    Location
    Gibraltar
    MS-Off Ver
    Excel 2007
    Posts
    53

    Macro to insert text into empty cells with a specified criteria

    Hi,

    I'm trying to write a macro that will insert some text like * for example into two empty cells on the same row where on that same row in a different cell it says Client No.

    any help is much appreciated.

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Macro to insert text into empty cells with a specified criteria

    More details would help.
    Which column contains the text?
    Are there only 2 empty cells?
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Registered User
    Join Date
    08-21-2008
    Location
    Gibraltar
    MS-Off Ver
    Excel 2007
    Posts
    53

    Re: Macro to insert text into empty cells with a specified criteria

    Sorry Roy.
    I have approx 15000 rows of data.
    I need the macro to go through and insert an asterisk into columns F & G where ever Client No appears in Column A.

    thanks

  4. #4
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Macro to insert text into empty cells with a specified criteria

    If You are searching for the text "Client No", can you autofilter the data?

  5. #5
    Registered User
    Join Date
    08-21-2008
    Location
    Gibraltar
    MS-Off Ver
    Excel 2007
    Posts
    53

    Re: Macro to insert text into empty cells with a specified criteria

    Hi, yes i can but i just wanted to know if there was some way i could use a macro to automate it.

  6. #6
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Macro to insert text into empty cells with a specified criteria

    Record a macro whilst filtering, then the macro can be edited & used in future. Post the generated code for further help.

  7. #7
    Registered User
    Join Date
    08-21-2008
    Location
    Gibraltar
    MS-Off Ver
    Excel 2007
    Posts
    53

    Re: Macro to insert text into empty cells with a specified criteria

    this is a monthly task and the number of client no's differ from month to month so won't i have to edit the macro every month ?

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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