+ Reply to Thread
Results 1 to 12 of 12

Copy data from sheet to another sheet in specific way ( modify )

  1. #1
    Forum Contributor
    Join Date
    10-23-2015
    Location
    egypt
    MS-Off Ver
    2010
    Posts
    256

    Copy data from sheet to another sheet in specific way ( modify )

    Greetings to all the gentlemen experts
    I have the following wonderful for Mr. Karedog ... it is very fascinating code

    But there is a problem with the application of the code by example
    Where the problem lies in the presence heads of merged cells
    sheet columns of data that are relevant to the indispensable workbook

    I also need to transfer data in the same formats and functions
    to the sheet "The final result"

    Please, I want
    Make the adjustments at the code to tackle the problem of merged cells
    and Well as the transfer data in the same formats and functions
    Thank you for all the provide assistance
    Yours respect and appreciation from me
    Last edited by salmasaied; 08-27-2016 at 09:46 PM.

  2. #2
    Forum Guru karedog's Avatar
    Join Date
    10-03-2014
    Location
    Indonesia
    MS-Off Ver
    2003
    Posts
    2,971

    Re: Copy data from sheet to another sheet in specific way ( modify )

    Please Login or Register  to view this content.
    1. I care dog
    2. I am a loop maniac
    3. Forum rules link : Click here
    3.33. Don't forget to mark the thread as solved, this is important

  3. #3
    Forum Contributor
    Join Date
    10-23-2015
    Location
    egypt
    MS-Off Ver
    2010
    Posts
    256

    Re: Copy data from sheet to another sheet in specific way ( modify )

    Dear sir karedog
    Thank you very much, you are worthy of trust and respect
    Concerning the repetitive loops
    they represent a significant impediment to the speedy implementation of the code
    Especially with the many, which sometimes reach 50,000 to statement data
    Please
    Will, I hope, in modifying another using arrays
    I appreciate your valuable time
    Greetings to you
    Last edited by salmasaied; 08-12-2016 at 10:53 PM.

  4. #4
    Forum Guru karedog's Avatar
    Join Date
    10-03-2014
    Location
    Indonesia
    MS-Off Ver
    2003
    Posts
    2,971

    Re: Copy data from sheet to another sheet in specific way ( modify )

    No other way. You said :

    Quote Originally Posted by salmasaied View Post
    Make the adjustments at the code to tackle the problem of merged cells
    and Well as the transfer data in the same formats and functions
    Array can only get cell's value/formula, so the formatting can't be received using array.
    The only way to copy the formatting is using range.copy method, and as the consequence, this will be slower than array method.

  5. #5
    Forum Contributor
    Join Date
    10-23-2015
    Location
    egypt
    MS-Off Ver
    2010
    Posts
    256

    Re: Copy data from sheet to another sheet in specific way ( modify )

    Dear sir karedog
    Thank you very much
    Greetings to you

  6. #6
    Forum Guru karedog's Avatar
    Join Date
    10-03-2014
    Location
    Indonesia
    MS-Off Ver
    2003
    Posts
    2,971

    Re: Copy data from sheet to another sheet in specific way ( modify )

    You are welcome, greetings.

  7. #7
    Forum Contributor
    Join Date
    10-23-2015
    Location
    egypt
    MS-Off Ver
    2010
    Posts
    256

    Re: Copy data from sheet to another sheet in specific way ( modify )

    dear friend karedog
    You are welcome ...... Question please
    Because I want to is my understanding code
    Why are not taken to the work of code in the event of a merged cells
    The Data Sheet row No. 6 and 7 "column headers addresses"
    In the case of Clear rows 6 and 7
    You will notice that code works wonderful
    Is there a way to tackle code
    Greetings to you
    Attached Files Attached Files
    Last edited by salmasaied; 08-29-2016 at 11:32 PM.

  8. #8
    Forum Guru karedog's Avatar
    Join Date
    10-03-2014
    Location
    Indonesia
    MS-Off Ver
    2003
    Posts
    2,971

    Re: Copy data from sheet to another sheet in specific way ( modify )

    I don't understand. We don't deal with anything related to HTML here, there is no HTML code, which HTML code that you referred ?

    You can make the macro run faster by adding these 2 lines marked with red :
    Please Login or Register  to view this content.

  9. #9
    Forum Contributor
    Join Date
    10-23-2015
    Location
    egypt
    MS-Off Ver
    2010
    Posts
    256

    Re: Copy data from sheet to another sheet in specific way ( modify )

    dear friend karedog
    You are welcome
    I do not mean this code
    But this code
    Please Login or Register  to view this content.
    There is something I can not understand this code, although it simple
    But it carries with it a wonderful ideas
    HTML, this an inadvertent error
    please accept my apology
    Greetings
    Last edited by salmasaied; 08-29-2016 at 11:43 PM.

  10. #10
    Forum Guru karedog's Avatar
    Join Date
    10-03-2014
    Location
    Indonesia
    MS-Off Ver
    2003
    Posts
    2,971

    Re: Copy data from sheet to another sheet in specific way ( modify )

    Actually it is a simple loop :


    We take the current region of cell A8 (source data) values to an array (arr1) :
    Please Login or Register  to view this content.

    The target range will be bigger than the source data, because there are some blank rows to be inserted, this i variable is calculate the number of final rows of target range :
    Please Login or Register  to view this content.
    Because we have know how big the target range will be, take this target range formulas to an array (arr2) :
    Please Login or Register  to view this content.

    Now we do the looping, the p variable is indicating on which row of arr2, the writing will be performed.
    Please Login or Register  to view this content.

  11. #11
    Forum Contributor
    Join Date
    10-23-2015
    Location
    egypt
    MS-Off Ver
    2010
    Posts
    256

    Re: Copy data from sheet to another sheet in specific way ( modify )

    Thank you dear friend karedog
    Thus be of friendship
    Explain distinct from the a distinct personality
    That I could not reach to answer for myself
    I'll tell you, but I'll do
    Once again thank you very much
    You greetings
    Last edited by salmasaied; 08-30-2016 at 07:56 AM.

  12. #12
    Forum Guru karedog's Avatar
    Join Date
    10-03-2014
    Location
    Indonesia
    MS-Off Ver
    2003
    Posts
    2,971

    Re: Copy data from sheet to another sheet in specific way ( modify )

    You are welcome, glad I can help.


    Regards

+ 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. Replies: 1
    Last Post: 04-18-2016, 03:41 PM
  2. Replies: 0
    Last Post: 09-16-2015, 01:18 PM
  3. Auto copy specific data from sheet to antoher sheet under few condition
    By Shermaine2010 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-17-2014, 04:47 AM
  4. [SOLVED] Macro to copy date to specific sheet based on data from another sheet.
    By RichTea88 in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 08-09-2013, 11:28 AM
  5. copy data from multiple sheet to master sheet with specific columns only
    By sinha.riteshabap in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-31-2013, 06:59 AM
  6. [SOLVED] Copy and paste data from sheet 2 to sheet 1 based on specific criteria on sheet 1
    By VBADUD in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-05-2012, 04:18 AM
  7. How can I copy the data of sheet 1 to sheet 2 with modify?
    By accessman2 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-13-2005, 04:05 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