+ Reply to Thread
Results 1 to 5 of 5

Automating an editing task

  1. #1
    Registered User
    Join Date
    03-26-2009
    Location
    Orlando, Florida
    MS-Off Ver
    Excel 2002
    Posts
    10

    Automating an editing task

    I prepare and maintain project budgeting spreadsheets. Every month I have to set the values in certain cells pack to zero. The spreadsheet consists of four or five worksheets with identical labels in Column A but different number inputs in Column B. Each month I have to go back and enter a zero in 40 to 50 cells.

    My question: Is there a way to automate this task?

    Thanks!

  2. #2
    Valued Forum Contributor mdbct's Avatar
    Join Date
    11-11-2005
    Location
    CT
    MS-Off Ver
    2003 & 2007
    Posts
    848

    Re: Automating an editing task

    There are many was to do this. The problem is which way is best for you?

    What determines which values in B should be set back to zero?
    Is it a one sheet task or are all of the sheet affected?

  3. #3
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: Automating an editing task

    If you post your file or indicate the locations of those 40 or 50 cells I'm sure someone will write some VBA to to do what you want but until then...
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  4. #4
    Registered User
    Join Date
    03-26-2009
    Location
    Orlando, Florida
    MS-Off Ver
    Excel 2002
    Posts
    10

    Re: Automating an editing task

    Quote Originally Posted by mdbct View Post
    There are many was to do this. The problem is which way is best for you?

    What determines which values in B should be set back to zero?
    Is it a one sheet task or are all of the sheet affected?
    Column A

    Budget Hours
    Hours Spent
    Hours Remaining


    These three rows are repeating down the column. Sometimes there are 40 - 50 sets of these lines. At the end of the month I need to enter a zero in all of the

    Hours Spent

    There is a worksheet label Week1, Week2, Week3, Week4, MTD. The MTD worksheet is simply a sum of the other worksheets, so I don't need to zero anything on that sheet, only the weekly sheets.

    I hope this makes my situation clear.

    Thanks!

  5. #5
    Valued Forum Contributor mdbct's Avatar
    Join Date
    11-11-2005
    Location
    CT
    MS-Off Ver
    2003 & 2007
    Posts
    848

    Re: Automating an editing task

    The following will loop through the sheets and change any value in the B column to 0 (zero) where the value in the a columns contains "Hours"

    Please Login or Register  to view this content.

+ 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