+ Reply to Thread
Results 1 to 9 of 9

code modification

  1. #1
    Forum Contributor
    Join Date
    06-06-2007
    Posts
    248

    code modification

    Dear sir,with best regards,i need your help by modify the code mentioned in attached file to work on main page without deleting any data from any sheets after transferring them .
    i have tried to do that but failed,if i want to delete thse data, i shall press the button ( clean) only.
    Your help is much appreciation.
    Attached Files Attached Files

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: code modification

    Hi,

    If I understand your request and you only want to clear the data on the main sheet then use

    Please Login or Register  to view this content.
    Rgds
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Forum Contributor
    Join Date
    06-06-2007
    Posts
    248

    Re: code modification

    Dear sir,with my thanks, i want to :
    1- transfer data from ( main ) sheet to (12) sheets by (trans.) button without clearing them.
    2- after transferring the data ,i want the code (to clear) the data mentioned in range (b5:i5000) only for all (12) sheets ,because i need to use the residual range for my statistics .
    my appreciation .

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: code modification

    Hi,

    This doesn't seem to make sense so obviously I'm missing something.

    If you transfer the relevant rows from your monthly data on your main sheet to one or other of the 12 monthly sheets in columns B:I, why would you then want to clear out the data in the sheets? If you do that your formulae in columns M & O will have no data to work with.

    Can we take a step back though. The essential task seems to be to produce an analysis by Agent by month of Sales values and numbers of Invoices. Why then don't you just filter the Main Sheet? Or if you want to see a permanent analysis just have a summary table to the right of the main data with Agents and Months as the row or column labels with Sales and Invoices as a sub labels. In fact a Pivot Table would seem the obvious solution and in the process give you a lot more flexibility.

    Regards

  5. #5
    Forum Contributor
    Join Date
    06-06-2007
    Posts
    248

    Re: code modification

    Dear sir,i dont want to clear out any data from main or 12 sheets,the code will do that after transferring,if you have a look at the sheet (1) ,i have some formulas in (m,o) columns,after transferring these formulas ( which i need them for my statistics) will delete.
    Dear sir,in simple words,i need some modification on the code to prevent any deleting for any cells in all sheets.
    Many thanks for help.

  6. #6
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: code modification

    Hi,
    The only code which deletes stuff is in the 'TransferData' sub. i.e.

    Please Login or Register  to view this content.
    Delete this section. The other code which deletes anything is the 'Clean' sub in Module 2. If you don't want this to run and delete data then don't run it.

    HTH

  7. #7
    Forum Contributor
    Join Date
    06-06-2007
    Posts
    248

    Re: code modification

    Dear sir,i have tried this way before,but the row(5) will move down after transfer the data for month (1).
    Thanks my sir for help.

  8. #8
    Forum Contributor
    Join Date
    06-06-2007
    Posts
    248

    Re: code modification

    Dear sir,with my regards,asking you kindly about the possibility to create a new code for transferring the data from main sheet to (12) sheets being the months, without any delete to any cell.
    Many thanks in advance.

  9. #9
    Forum Contributor
    Join Date
    06-06-2007
    Posts
    248

    Re: code modification

    Dear sir,with my apology,can i send my request to another forum to get the solution urgently.
    Many thanks for help.

+ 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