+ Reply to Thread
Results 1 to 4 of 4

replace column values

  1. #1
    Registered User
    Join Date
    07-14-2011
    Location
    Argentina
    MS-Off Ver
    Excel 2003
    Posts
    13

    replace column values

    hello well i wanna do something like find and replace but i already know what i whant to replace all the columm from D1:D except blanks

    Please Login or Register  to view this content.
    so how do i make it work? i whant "sel" to be the selected column but i dont whant it to replace blank cells.

    thanks.
    Last edited by babar48; 07-15-2011 at 10:49 AM. Reason: poor english

  2. #2
    Forum Expert davegugg's Avatar
    Join Date
    12-18-2008
    Location
    WI, US
    MS-Off Ver
    2010
    Posts
    1,884

    Re: replace column values

    Please Login or Register  to view this content.
    Is your code running too slowly?
    Does your workbook or database have a bunch of duplicate pieces of data?
    Have a look at this article to learn the best ways to set up your projects.
    It will save both time and effort in the long run!


    Dave

  3. #3
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: replace column values

    hi, babar48, as per VB help:

    Replace Method

    Using this method doesn’t change either the selection or the active cell.

    expression.Replace(What, Replacement, LookAt, SearchOrder, MatchCase, MatchByte, SearchFormat, ReplaceFormat)

    expression Required. An expression that returns a Range object.

    What Required Variant. The string you want Microsoft Excel to search for.

    Replacement Required Variant. The replacement string.

    LookAt Optional Variant. Can be one of the following XlLookAt constants: xlWhole or xlPart.

    SearchOrder Optional Variant. Can be one of the following XlSearchOrder constants: xlByRows or xlByColumns.

    MatchCase Optional Variant. True to make the search case sensitive.

    MatchByte Optional Variant. You can use this argument only if you’ve selected or installed double-byte language support in Microsoft Excel. True to have double-byte characters match only double-byte characters. False to have double-byte characters match their single-byte equivalents.

    SearchFormat Optional Variant. The search format for the method.

    ReplaceFormat Optional Variant. The replace format for the method.

  4. #4
    Registered User
    Join Date
    07-14-2011
    Location
    Argentina
    MS-Off Ver
    Excel 2003
    Posts
    13

    Re: replace column values

    thanks guys, liked both answers 1 code an the other nice explanation.

+ 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