+ Reply to Thread
Results 1 to 7 of 7

Macro tweak to ignore header row. +macro to copy from one sheet to another

  1. #1
    Forum Contributor
    Join Date
    01-29-2011
    Location
    Bristol, England
    MS-Off Ver
    Excel 2003
    Posts
    471

    Macro tweak to ignore header row. +macro to copy from one sheet to another

    Hi


    Can somebody tweak the macro called “convert” which is in module 4 to ignore the header row of sheet called “2011” and only copy over everything from row 2 downwards to the results sheet? The problem is there is a bug as it is for the time being. Sometimes it takes the header text to results sheet and sometimes it won't take the header text to results sheet. It's usually when I have run the macro “test” which in module 3 more than once and then running macro “convert” in module 4. It then produces a result without header text. So maybe it's easier to ignore that header row and not to bring that header row to results screen at all. Now comes the second part. Can you create me a macro that clears everything on sheet “2011” row 2 downwards, then takes everything (from row 1 to downwards) from sheet “Results” and places them to back to sheet “2011” row 2 downwards. So the header row that is still intact and is nicely there.

    Anyone can help but I think watersev might help me out as he is familiar with these macros in question.


    Cheers
    Attached Files Attached Files
    Last edited by rain4u; 04-16-2011 at 01:30 PM. Reason: Changed title perfix, and title text

  2. #2
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: Need help with macro. Ignore header row. +macro to copy from one sheet to another

    hi, rain4u, re header, please check attachment, try to reproduce header error, the error should always be there
    Attached Files Attached Files

  3. #3
    Forum Contributor
    Join Date
    01-29-2011
    Location
    Bristol, England
    MS-Off Ver
    Excel 2003
    Posts
    471

    Re: Need help with macro. Ignore header row. +macro to copy from one sheet to another

    error reproduced. If you run macro "convert" it wont copy over the header row.
    Attached Files Attached Files

  4. #4
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Need help with macro. Ignore header row. +macro to copy from one sheet to another

    Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution. Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.
    To change a Title on your post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  5. #5
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: Need help with macro. Ignore header row. +macro to copy from one sheet to another

    check attachment
    Attached Files Attached Files

  6. #6
    Forum Contributor
    Join Date
    01-29-2011
    Location
    Bristol, England
    MS-Off Ver
    Excel 2003
    Posts
    471

    Re: Macro tweak to ignore header row. +macro to copy from one sheet to another

    Thank you watersev. It removed that header problem.



    PS! I have changed the title text though I'm not sure if it complies.
    Cheers

  7. #7
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: Macro tweak to ignore header row. +macro to copy from one sheet to another

    u r welcome. Can u please try alternative faster version of the same "convert" code. The new code name is "convert_short"
    Attached Files Attached Files

+ 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