+ Reply to Thread
Results 1 to 11 of 11

VBA code for copy data to another sheet, do amendment in that code

  1. #1
    Forum Contributor
    Join Date
    03-13-2013
    Location
    india
    MS-Off Ver
    excel 2010
    Posts
    427

    VBA code for copy data to another sheet, do amendment in that code

    In the attached file there is VBA code i want little modification in that code or provide me totaly different code
    first i want to tell you which task perform by this code it means use of that code is that code copies
    data of N column and Q column to after sheet which specific data copy by this code i apply yellow color to this data so you can
    easily understand data which is in yellow color i apply yellow color just for your understang purpose ,
    see data from cell N34 to N40 which had heading MRN.NO.it means N34 to N40 data between that cells is connected to that heading MRN.NO.
    also data of cell Q34 to Q40 connected to heading BAGS so it is block of data because there is no space in that data
    but you can see bellow that data , which is in green color which is in cell N42 and Q42 i want that do not copy that data because it is not connected
    to that bags heading or MRN.NO. heading there is space between that data so please do this little modification in that VBA code
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: VBA code for copy data to another sheet, do amendment in that code

    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    03-13-2013
    Location
    india
    MS-Off Ver
    excel 2010
    Posts
    427

    Re: VBA code for copy data to another sheet, do amendment in that code

    your code also copying data like "BILLPASS" and "TALE" which is in cell N42 and Q42 i do not want to copy that data infact your code is working good just do that little change,

    see before after sheet once again , file is attached
    Attached Files Attached Files
    Last edited by keshavtale; 05-03-2021 at 07:31 AM.

  4. #4
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: VBA code for copy data to another sheet, do amendment in that code

    Your presentation is confusing, I thought after sheet was what you want.
    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    03-13-2013
    Location
    india
    MS-Off Ver
    excel 2010
    Posts
    427

    Re: VBA code for copy data to another sheet, do amendment in that code

    Now it's becoms a perfect code, thanks

  6. #6
    Forum Contributor
    Join Date
    03-13-2013
    Location
    india
    MS-Off Ver
    excel 2010
    Posts
    427

    Re: VBA code for copy data to another sheet, do amendment in that code

    can you do one more change in that code see in to attached file cell Q10 value is zero then do not copy that data like that,
    see before after sheet
    Attached Files Attached Files

  7. #7
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: VBA code for copy data to another sheet, do amendment in that code

    Please Login or Register  to view this content.

  8. #8
    Forum Contributor
    Join Date
    03-13-2013
    Location
    india
    MS-Off Ver
    excel 2010
    Posts
    427

    Re: VBA code for copy data to another sheet, do amendment in that code

    thanks now my problem is perfectly solved

  9. #9
    Forum Contributor
    Join Date
    03-13-2013
    Location
    india
    MS-Off Ver
    excel 2010
    Posts
    427

    Re: VBA code for copy data to another sheet, do amendment in that code

    That code not run when any text exist between N column or Q column then that code error "Autofilter method of range class failed"
    you can see there is text in cell N95 the text ""BILLPASS" due to this text code not running and also i want that see in cell N98 , N99 and cell Q98, Q99
    there is data but do not copy that data because it had no heading like MRN NO. and BAGS
    check attachment
    Attached Files Attached Files

  10. #10
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: VBA code for copy data to another sheet, do amendment in that code

    What's all those garbage(numbers etc.) in col.N?
    Please Login or Register  to view this content.

  11. #11
    Forum Contributor
    Join Date
    03-13-2013
    Location
    india
    MS-Off Ver
    excel 2010
    Posts
    427

    Re: VBA code for copy data to another sheet, do amendment in that code

    thanks now my problem is perfectly solved

+ 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] Repeat cell value with said value and auto adjust data accordingly(need Amendment in code)
    By adeel1 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 10-06-2017, 03:31 AM
  2. [SOLVED] Amendment to Code
    By hammer2 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 03-05-2016, 09:06 PM
  3. Replies: 2
    Last Post: 12-17-2013, 11:51 AM
  4. VB code amendment help.
    By sem in forum Excel Programming / VBA / Macros
    Replies: 20
    Last Post: 04-26-2012, 07:23 AM
  5. I want the amendment to this code
    By hesham63 in forum Excel General
    Replies: 2
    Last Post: 08-05-2011, 06:41 PM
  6. Copy code amendment.
    By Flower R in forum Excel General
    Replies: 4
    Last Post: 12-10-2008, 09:08 PM
  7. if code amendment help
    By khalid79m in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-31-2008, 07:27 AM

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