+ Reply to Thread
Results 1 to 2 of 2

Adding character to multiple active cells VBA

  1. #1
    Registered User
    Join Date
    04-03-2012
    Location
    Melbourne
    MS-Off Ver
    Excel 2003
    Posts
    6

    Adding character to multiple active cells VBA

    Hi All,

    I am having trouble getting a very simple task done in Excel.

    I have a massive amount of data (176,000 lines worth) and I need to add a "-" character to certain cells throughout the list. I can select (activate) the cells using filtering, but there is no way (that I have found) where I can add the character to all. I am unable to paste due to the filtering, and there are too many cells to do it one by one.

    I am thinking VBA might be the way to go.

    I am fairly new to VBA but I was thinking the code is something along the lines of,

    Active.Cells
    Add "-"

    Loop...

    *shrug*


    Your help is much appreciated.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,813

    Re: Adding character to multiple active cells VBA

    When you say "add" a minus sign, where ... start, middle, end? What determines which cells need updating? A sample workbook would be helpful.

    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


+ 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