+ Reply to Thread
Results 1 to 2 of 2

Find and format text

Hybrid View

  1. #1
    Registered User
    Join Date
    01-09-2012
    Location
    here
    MS-Off Ver
    Excel 2003
    Posts
    68

    Find and format text

    I have macro that finds the words Total and Charges but i need help in adding the total to the bottom of each column using =SUM(). i also want to find the word Name and use counta() at the bottom to count the total.

    I recorded it and paste it underneath the thing is the amount of rows is different everyday.



    Sub Macro1()
        Cells.Find(What:="DATE", After:=Range("F1"), LookIn:=xlFormulas, _
            LookAt:=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, _
            MatchCase:=False, SearchFormat:=False).Activate
        ActiveCell.EntireColumn.NumberFormat = "mm/dd/yy;@"
        Cells.Find(What:="CHARGES", After:=Range("F1"), LookIn:=xlFormulas, _
            LookAt:=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, _
            MatchCase:=False, SearchFormat:=False).Activate
        ActiveCell.EntireColumn.NumberFormat = "_($* #,##0.00_);_($* (#,##0.00);_($* ""-""??_);_(@_)"
        Cells.Find(What:="TOTAL", After:=Range("F1"), LookIn:=xlFormulas, _
            LookAt:=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, _
            MatchCase:=False, SearchFormat:=False).Activate
        ActiveCell.EntireColumn.NumberFormat = "_($* #,##0.00_);_($* (#,##0.00);_($* ""-""??_);_(@_)"
    End Sub
    Last edited by daillest319; 01-12-2012 at 12:50 PM.

  2. #2
    Forum Contributor mccrimmon's Avatar
    Join Date
    02-19-2004
    Location
    Scotland
    MS-Off Ver
    2003
    Posts
    249

    Re: Find the word Total,Charges,Name and Date and format it

    If you post an example then I can take a look.

    Thanks
    McCrimmon

+ 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