+ Reply to Thread
Results 1 to 10 of 10

Auto copy pest data from sheet 1 to sheet 2

  1. #1
    Registered User
    Join Date
    11-28-2014
    Location
    india
    MS-Off Ver
    7
    Posts
    141

    Auto copy pest data from sheet 1 to sheet 2

    HI I need a help in coding

    I have a spreadsheet which linked with a web page through DATA menu from web
    So every time it gave me a new data or sometimes blank when it got refresh automatically.

    I want to copy the entire row if any line of “A” is start with the word “View” (if there is a data) and past it in sheet2, the problem what I am facing is
    every time when it got refresh if the web page is not having any data or updated with new data then my sheet 1 (where I link the web page) is coming as blank or only with new data ,but I want all the previous details also ,
    So is there any code by which I can immediately save all the rows which is beginning with the word “View “ in “A1” in the 2nd Sheet and 2nd time whenever there is any changes in 1st sheet it should captured automatically in the 2nd sheet along with the previous data.

    Regards
    Arindam
    Last edited by arindamsenaxa; 02-24-2015 at 03:13 AM.

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,481

    Re: Auto copy pest data from sheet 1 to sheet 2

    Attaching a sample workbook enables others to work on your problem:

    To attach a sample workbook. Make sure there is just enough data to make it clear what is needed. Include BEFORE/AFTER sheets if needed to show the process you're trying to complete or automate. Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic

  3. #3
    Registered User
    Join Date
    11-28-2014
    Location
    india
    MS-Off Ver
    7
    Posts
    141

    Re: Auto copy pest data from sheet 1 to sheet 2

    Hi
    I have attached the excel by editing my question .plz check sheet1 and sheet 2

    Sheet 1 -how I will get the data from the website
    Sheet 2-how I want it to be saved.

    only catch is
    it should be auto update whenever there is some data in sheet 1 which is starting with the word "View" the entire row should be update in the 2nd sheet
    if auto update is not possible at all then one click button is on in sheet1.

    Regards
    Arindam
    Last edited by arindamsenaxa; 02-24-2015 at 03:12 AM.

  4. #4
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,481

    Re: Auto copy pest data from sheet 1 to sheet 2

    According to your sample the only thing in column 1 is either Blank or View.

    This code will find the non-blank cells, and copy the rows to the next sheet.

    You need to `Cancel=true ` when using the DoubleClick event or you will end up in the edit box.

    Please Login or Register  to view this content.
    Last edited by davesexcel; 02-24-2015 at 07:36 AM.

  5. #5
    Registered User
    Join Date
    11-28-2014
    Location
    india
    MS-Off Ver
    7
    Posts
    141

    Re: Auto copy pest data from sheet 1 to sheet 2

    Hi Thanks for your response but is it not possible to copy only "View",becoz there might be possibilities
    where we have some other data in A:A which is not starting with "View" ,in that case I think it will not give me the accurate result as i need only the line which is starting with view.

    and request you to please attach the same excel file after putting the vb code.I think there is some system problem as your code is not working in my system.
    It will be a gr8 help

    Chrres
    Arindam

  6. #6
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,481

    Re: Auto copy pest data from sheet 1 to sheet 2

    Here you go, still a BeforeDoubleClick event

    Please Login or Register  to view this content.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    11-28-2014
    Location
    india
    MS-Off Ver
    7
    Posts
    141

    Re: Auto copy pest data from sheet 1 to sheet 2

    Hay thanks a ton Its working perfectly fine as i need to be..
    Cheers

    Arindam

  8. #8
    Forum Contributor
    Join Date
    01-19-2011
    Location
    Bucharest
    MS-Off Ver
    Excel 2016
    Posts
    133

    Re: Auto copy pest data from sheet 1 to sheet 2

    but for any value , to be replaced with "View" ?

  9. #9
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,481

    Re: Auto copy pest data from sheet 1 to sheet 2

    Quote Originally Posted by andrugrasu View Post
    but for any value , to be replaced with "View" ?
    To quote the unknown,,"Um..What?"

  10. #10
    Forum Contributor
    Join Date
    01-19-2011
    Location
    Bucharest
    MS-Off Ver
    Excel 2016
    Posts
    133

    Re: Auto copy pest data from sheet 1 to sheet 2

    I meant that the code presented in column A copy only if there is the word "View". Had another word, how should the modified code?

+ 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. 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
  2. Auto copy data from one sheet to active sheet
    By rmartin10 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-06-2013, 09:13 AM
  3. Replies: 3
    Last Post: 04-23-2013, 06:49 PM
  4. [SOLVED] macro to auto copy data from multiple sheet to one master sheet
    By roger556 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-30-2012, 01:52 AM
  5. Replies: 3
    Last Post: 06-23-2010, 04:05 PM

Tags for this Thread

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