+ Reply to Thread
Results 1 to 6 of 6

Need Additional Macro Code to clear out data from secondary Page after data has been chang

  1. #1
    Registered User
    Join Date
    03-13-2014
    Location
    Green Bay, WI
    MS-Off Ver
    Excel 2007
    Posts
    13

    Need Additional Macro Code to clear out data from secondary Page after data has been chang

    I received help from here a while back regarding macro code (PREVIOUS THREAD => macro if data in column a = set word to insert that column into sheet 2 or 3 based on word). I am having a problem now where if data is changed in the main spreadsheet the secondary spreadsheets are retaining that formula rather than clearing it from the previous secondary and putting it to a new secondary. Below is the code that is being used in the document.
    Please Login or Register  to view this content.
    Last edited by Leith Ross; 11-03-2014 at 06:17 PM. Reason: Added Code Tags

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Need Additional Macro Code to clear out data from secondary Page after data has been c

    Hello ExcelBeginner326,

    What changes have you made to the workbook?

    Did you change any names?

    Did you add or delete any sheets?

    Did you change any formulas?
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Registered User
    Join Date
    03-13-2014
    Location
    Green Bay, WI
    MS-Off Ver
    Excel 2007
    Posts
    13

    Re: Need Additional Macro Code to clear out data from secondary Page after data has been c

    Sorry, I copied from the wrong part form the old thread. Below is from the latest document that we have been using. I did also add conditional formatting so the % complete would color code based on what value is entered.

    It is a working task list, so as projects are completed, they are being deleted or replaced with new projects (sometimes by different departments - this is where the problem occurs), and new projects are being added to the end of the main spreadsheet. Thank you for looking into this and asking questions!
    Please Login or Register  to view this content.
    Last edited by Leith Ross; 11-04-2014 at 11:46 AM. Reason: Added Code Tags

  4. #4
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Need Additional Macro Code to clear out data from secondary Page after data has been c

    Hello ExcelBeginner326,

    The macro validates that a the team has a sheet createed and appends any new data to below any existing data on the sheet.

    There is no provision for inserting the formulas anywhere else on the sheet nor deleting the formula once a team has been removed.

    To help you with this problem, you would need to post your workbook. We need to see how the data is arranged, what formulas you are using, etc. Otherwise, we are just guessing at what you need.

    Please provide before and after examples of your data along with any notes you would like to include.

    If your workbook contains any sensitive information, please redact that information before you post.

    How To Post Your Workbook
    1. At the bottom right of the Reply window, Click the button Go Advanced
    2. At the top of the Your Message Window, in the first row of icons, Click the Paperclip icon.
    3. Click the Add Files button at the top right in the dialog box. This displays the File Manager dialog.
    4. Click the Select Files button at the bottom middle of the dialog.
    5. In the new window Find the file you want to upload, select it, and Click Open.
    6. You will now be back in the File Manager dialog. Click the bottom Middle button Upload File.
    7. Wait until the file has completely uploaded before you exit the File Manager dialog.

  5. #5
    Registered User
    Join Date
    03-13-2014
    Location
    Green Bay, WI
    MS-Off Ver
    Excel 2007
    Posts
    13

    Re: Need Additional Macro Code to clear out data from secondary Page after data has been c

    I have a before and after. In the after when Row 2 was changed to Safety and it still shows up in Accounting which it was previously. Also if possible on the secondary pages, I would like the columns to move up as things are changed to get rid of blank lines.

    Thank you again for your time!

  6. #6
    Registered User
    Join Date
    03-13-2014
    Location
    Green Bay, WI
    MS-Off Ver
    Excel 2007
    Posts
    13

    Re: Need Additional Macro Code to clear out data from secondary Page after data has been c

    Still in search of help please! Is this even possible?

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Macro to clear row data then shift remaining data up to empty rows.
    By clarmech in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-15-2014, 04:35 PM
  2. Found a code to merge two data sheets but I need additional help.
    By floydian in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-25-2013, 01:12 AM
  3. Replies: 1
    Last Post: 06-21-2013, 04:05 AM
  4. VB Code to Clear the data
    By rizmomin in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-09-2012, 03:37 PM
  5. Returning additional data from existing code
    By gss in forum Excel General
    Replies: 1
    Last Post: 04-05-2011, 09:11 AM

Tags for this Thread

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