Results 1 to 14 of 14

VBA TRIM is won't TRIM active worksheet

Threaded View

Groovicles VBA TRIM is won't TRIM active... 06-06-2014, 08:50 AM
Norie Re: VBA TRIM is kicking my *** 06-06-2014, 08:52 AM
Groovicles Re: VBA TRIM is kicking my *** 06-06-2014, 09:01 AM
Richard Buttrey Re: VBA TRIM is kicking my *** 06-06-2014, 09:09 AM
Groovicles Re: VBA TRIM is kicking my *** 06-06-2014, 09:37 AM
Norie Re: VBA TRIM is kicking my *** 06-06-2014, 09:07 AM
Groovicles Re: VBA TRIM is kicking my *** 06-06-2014, 09:11 AM
ranman256 Re: VBA TRIM is kicking my *** 06-06-2014, 09:10 AM
Norie Re: VBA TRIM is kicking my *** 06-06-2014, 09:24 AM
zbor Re: VBA TRIM is kicking my *** 06-06-2014, 09:28 AM
Hawkeye16 Re: VBA TRIM is kicking my *** 06-06-2014, 09:29 AM
martindwilson Re: VBA TRIM is won't TRIM... 06-06-2014, 09:45 AM
Groovicles Re: VBA TRIM is won't TRIM... 06-06-2014, 09:52 AM
Norie Re: VBA TRIM is won't TRIM... 06-06-2014, 09:55 AM
  1. #1
    Forum Contributor
    Join Date
    07-29-2013
    Location
    Oshawa
    MS-Off Ver
    Excel 2010
    Posts
    660

    VBA TRIM is won't TRIM active worksheet

    Hi everyone,

    This must be the most annoying function VBA has. I just can't seem to get it to work. All I'm trying to do is create a macro to trim the active sheet:

    Sub Trim()
    Application.ScreenUpdating = False
        With ActiveSheet.Range("A1:J3000")
        On Error Resume Next
            .Value = Application.Trim(.Value)
        On Error GoTo 0
        End With
    Application.ScreenUpdating = True
    End Sub
    At one point I didn't get an error but TRIM didn't activate. Now I am getting an error on various points of the code. Help!!!

    Thanks everyone!
    Last edited by Groovicles; 06-06-2014 at 09:30 AM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Rogue #N/A appearing - kicking my butt
    By n3mcx1 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-05-2014, 04:16 PM
  2. Slow loading and kicking me out
    By Pepe Le Mokko in forum Suggestions for Improvement
    Replies: 8
    Last Post: 10-05-2013, 11:55 AM
  3. Kicking someone out of excel with VBA
    By danmarson in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-31-2013, 05:30 AM
  4. Formulaes kicking in when certain criteria is met
    By stephencheslett in forum Excel General
    Replies: 7
    Last Post: 09-30-2009, 10:25 AM
  5. [SOLVED] Kicking off macro if data in cell changes
    By dumb and frustrated in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-16-2006, 05:15 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