Results 1 to 3 of 3

Macro No Longer Working

Threaded View

  1. #1
    Registered User
    Join Date
    05-15-2014
    MS-Off Ver
    Excel 2003
    Posts
    2

    Macro No Longer Working

    Hello All,

    Long time lurk and reader first time poster.

    I have a macro I have been using for a long time in numerous workbooks that cleans text in cells after the information updates from a CRM system I use. The CRM system uses Microsoft SharePoint and applies identifies after names (,#3459 for example). Anyhow, I wrote this macro and it has always worked but now it decided otherwise. I have checked all security settings and options and everything seems fine and I turn to you.

    Please see below for my macro. I have checked the ranges in the macro and they are correct (Columns C:I). Any help is appreciated.
    Sub NameClean()
    '
    ' NameClean Macro
    '
    Application.ScreenUpdating = False
        ActiveWorkbook.RefreshAll
            
    Dim c As Range
    Columns("C:I").Select
    Set c = Selection.Find(What:=";#*;#", LookAt:=xlPart, _
        SearchOrder:=xlByRows, MatchCase:=True, SearchFormat:=False)
    If Not c Is Nothing Then
    Do
        c.Replace What:=";#*;#", Replacement:="; ", LookAt:=xlPart, _
            SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, _
            ReplaceFormat:=False
        c.Replace What:=";#*", Replacement:="", LookAt:=xlPart, SearchOrder _
            :=xlByRows, MatchCase:=False, SearchFormat:=False, ReplaceFormat:=False
    Set c = Selection.FindNext(c)
        Loop While Not c Is Nothing
    End If
        'ActiveWorkbook.Save
        Application.ScreenUpdating = True
        Range("A1").Activate
    End Sub
    Moderator's note: Please take the time to review our rules. There aren't many, and they are all important. Rule #3 requires code tags. I have added them for you this time because you are a new member. --6StringJazzer

    Thank you
    Last edited by 6StringJazzer; 04-27-2016 at 11:01 AM. Reason: code tags

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Worksheet change macro no longer working
    By burny888 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 02-11-2016, 08:38 AM
  2. Query on VBA macro no longer working
    By stephen.m.brown in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 11-25-2013, 12:12 PM
  3. [SOLVED] Macro no longer working?
    By Margate in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-04-2013, 02:26 PM
  4. Macro to create new sheets based on template no longer working
    By pauldaddyadams in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-16-2012, 03:51 PM
  5. Macro no longer working once sheet is protected
    By switchblade79 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-24-2012, 01:52 PM
  6. Macro no longer working - Don Guillett
    By tanyhart in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-11-2006, 01:10 PM
  7. [SOLVED] Help: Excel 4 macro suddenly no longer working
    By Keske Saram in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-03-2005, 10:05 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