• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

COPY and PASTE script

zhaq0314

New Member
Hello,

I am new to VB script. I have not done much of it and I am trying to learn.

Here is what i need to do:

I need the script to search a keyword and copy the entire column to a new worksheet. I need it to do this for the full worksheet.

I tried doing the recorder to search and copy the column then paste it into new worksheet. But it only does once. I need it to search and find the entire worksheet for this.

Please help.

R,
Zeshan
 
Hi ,

Please upload your workbook with at least a few rows of sample data ; what is required is to know what the search keyword(s) will be , how many columns need to be searched , which column needs to be copied and which is the tab to which this column needs to be pasted.

Upload your workbook with the code you have already got using the macro recorder.

Narayan
 
Hy Narayan,

I am unable to do this for school data. Is it possible to get a generic script that searches entire worksheet for keyword and copies it to 2nd worksheet.

I can edit the words and worksheet name. also I could possibly edit the number of columns and rows to search as well.

Thanks
Zeshan
 
Hi ,

I am sorry , but it is time-consuming to test the code in the absence of data , and I am not interested to generate the data.

You can always replace confidential data with random data and upload at least a sample workbook.

Narayan
 
Back
Top