+ Reply to Thread
Results 1 to 16 of 16

Vba macro code for removing cells and appearing it continously

  1. #1
    Forum Contributor
    Join Date
    07-23-2013
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    106

    Vba macro code for removing cells and appearing it continously

    Dear Sir /Madam,
    The sheet 1 (input file) is the given file. i need output like in the Sheet2(required output sheet). For easy understanding i had given colors for your kind reference. from that lease remove the cell apsim version cell and the headings from the second set onwards.

    in simple words I need output like in the second sheet. (hope I m not confusing)please do help me...

    please oblige and do the needful... PLEASE FIND THE ATTACHMENT...

    Thanks & Regards,
    Dharani.
    full files.xls

  2. #2
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: Vba macro code for removing cells and appearing it continously

    ----------- deleted
    Last edited by patel45; 09-25-2013 at 02:50 AM.
    If solved remember to mark Thread as solved

  3. #3
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: Vba macro code for removing cells and appearing it continously

    Please Login or Register  to view this content.

  4. #4
    Valued Forum Contributor
    Join Date
    06-17-2009
    Location
    Chennai,India
    MS-Off Ver
    Excel 2003,excel 2007
    Posts
    678

    Re: Vba macro code for removing cells and appearing it continously

    see attched file "Dharani ,,,,,". first and second sheets are yours. I have added a sheet called "result"
    my version is excel 2007(compatablity mode).I hope the macro will work in your excel 2003
    the mcro is in the module but also repeated here

    if there is problem in donwloading the file revert to the newsgsroup

    Please Login or Register  to view this content.
    Attached Files Attached Files
    I am not an expert. better solutions may be available
    [email protected]

  5. #5
    Forum Contributor
    Join Date
    07-23-2013
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    106

    Re: Vba macro code for removing cells and appearing it continously

    Quote Originally Posted by venkat1926 View Post
    see attched file "Dharani ,,,,,". first and second sheets are yours. I have added a sheet called "result"
    if there is problem in donwloading the file revert to the newsgsroup

    Please Login or Register  to view this content.
    Dear Venkat,
    Thank you for the amazing code... its working... My heartfelt thanks to you for you honest and quick effort you made... a small clarification is required.. this code is working only in your attached excel sheet. if I copy and paste the code in full files excel sheet, which I attached above with my question, it is not working... please reply...

    Awaiting for a positive reply..

    Thanks & Regards,
    Dharani.

  6. #6
    Forum Contributor
    Join Date
    07-23-2013
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    106

    Re: Vba macro code for removing cells and appearing it continously

    Quote Originally Posted by patel45 View Post
    Please Login or Register  to view this content.
    Dear Patel,
    My heartfelt Thanks for you for the honest and quick effort you made for my help... but Sir the code is not seems to be correct which means it is not giving the required output which I want... it is giving back the sheet 1 data only... I need output like which is in sheet 2.

    Please reply Sir....

    Awaiting for the positive response....

    Thanks & Regards,
    Dharani.

  7. #7
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: Vba macro code for removing cells and appearing it continously

    I'm sorry, but my code works on your attached file, it makes a copy of sheet1 then changes it, explain better please

  8. #8
    Forum Contributor
    Join Date
    07-23-2013
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    106

    Re: Vba macro code for removing cells and appearing it continously

    Quote Originally Posted by patel45 View Post
    I'm sorry, but my code works on your attached file, it makes a copy of sheet1 then changes it, explain better please
    Dear Patel,
    I m sorry actually it is giving the same input only in the next sheet for me and it is showing error as some 400. sir I m attaching you the excel file with your code and output for your kind reference and perusal. patel sir.xls

    Awaiting for a positive reply..
    Thanks & Regards,
    Dharani.

  9. #9
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Vba macro code for removing cells and appearing it continously

    The attach code works on your attached sample.
    Attached Files Attached Files

  10. #10
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: Vba macro code for removing cells and appearing it continously

    Quote Originally Posted by Dharani Suresh View Post
    Dear Patel,
    I m sorry actually it is giving the same input only in the next sheet for me and it is showing error as some 400. sir I m attaching you the excel file with your code and output for your kind reference and perusal.
    Please, remove all images and comments and try my code again

  11. #11
    Forum Contributor
    Join Date
    07-23-2013
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    106

    Re: Vba macro code for removing cells and appearing it continously

    Quote Originally Posted by AB33 View Post
    The attach code works on your attached sample.
    Dear AB33,
    Thank you for the honest and quick effort you made.... but see at the column DATES (c column) there are some mistakes. dates are wrongly appearing. if you rectify and give this, it would be highly helpful for me.

    Awaiting for a positive response...

    Thanks & Regards,
    Dharani.

  12. #12
    Forum Contributor
    Join Date
    07-23-2013
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    106

    Re: Vba macro code for removing cells and appearing it continously

    Quote Originally Posted by patel45 View Post
    Please, remove all images and comments and try my code again
    Dear Patel,
    I am really sorry to tell this.. for me its not working, maybe I m not clear to you.. That's ok Sir, leave it.I must not take your time much... maybe not this time, for my next question, I hope your contribution will be more useful and helpful.

    My heartfelt thanks to you..

    Regards,
    Dharani.

  13. #13
    Forum Contributor
    Join Date
    07-23-2013
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    106

    Re: Vba macro code for removing cells and appearing it continously

    Quote Originally Posted by Dharani Suresh View Post
    Dear Venkat,
    Thank you for the amazing code... its working... My heartfelt thanks to you for you honest and quick effort you made... a small clarification is required.. this code is working only in your attached excel sheet. if I copy and paste the code in full files excel sheet, which I attached above with my question, it is not working... please reply...

    Awaiting for a positive reply..

    Thanks & Regards,
    Dharani.
    Dear Venkat,
    Thank you for the amazing code... its working... My heartfelt thanks to you for you honest and quick effort you made... a small clarification is required.. this code is working only in your attached excel sheet. if I copy and paste the code in full files excel sheet, which I attached above with my question, it is not working... please reply...

    Awaiting for a positive reply..

    Thanks & Regards,
    Dharani.

  14. #14
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Vba macro code for removing cells and appearing it continously

    Dates are formatting issue and no error with the code.
    You can simply highlight the entire column C and format it as data. I have tried to include a line on the output code, but does not make any difference. If I include the formatting on the source sheet, it seems to work. See attached amended code.
    Attached Files Attached Files

  15. #15
    Forum Contributor
    Join Date
    07-23-2013
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    106

    Re: Vba macro code for removing cells and appearing it continously

    Quote Originally Posted by AB33 View Post
    Dates are formatting issue and no error with the code.
    You can simply highlight the entire column C and format it as data. I have tried to include a line on the output code, but does not make any difference. If I include the formatting on the source sheet, it seems to work. See attached amended code.
    Dear AB33,
    Thanks for the apt answer... thank you so much for spending your valuable time... the code is working.. its GREAT...
    But a small request .. can you attach me the code separately???? because I could not find the code in module.

    Thanks & Regards,
    Dharani.

  16. #16
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Vba macro code for removing cells and appearing it continously

    Dharani,
    If you had run the code on the actual sheet, you should have run it from the module as there is not button attached to it. On the attached post #14, there are only two modules. The code is in module 1. You have also recorded macro on module 2.

+ 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. [SOLVED] Vba macro code for generating years along the side of days and also by removing the months
    By Dharani Suresh in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 08-25-2013, 11:18 PM
  2. Macro to Copy down and insert line continously
    By exc1967 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-09-2012, 02:22 PM
  3. Removing Duplicated Cells Macro
    By jfish in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-01-2011, 04:35 PM
  4. Continously updated data from older files?
    By Slopples in forum Excel General
    Replies: 1
    Last Post: 04-01-2011, 02:05 PM
  5. Removing <end> from appearing in outlook contacts
    By JerrySampson in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-05-2006, 01:25 PM

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