How JustAnswer Works:

  • Ask an Expert
    Experts are full of valuable knowledge and are ready to help with any question. Credentials confirmed by a Fortune 500 verification firm.
  • Get a Professional Answer
    Via email, text message, or notification as you wait on our site.
    Ask follow up questions if you need to.
  • 100% Satisfaction Guarantee
    Rate the answer you receive.

Ask Richard Your Own Question

Richard
Richard, Software Specialist
Category: Microsoft Office
Satisfied Customers: 16838
Experience:  Over 15 year experience resolving Microsoft Office Issues
32989067
Type Your Microsoft Office Question Here...
Richard is online now
A new question is answered every 9 seconds

What I am trying to do is… If column I has an “X” I need

Resolved Question:

What I am trying to do is…

If column I has an “X” I need that entire row to move to a different worksheet (DrP)and be deleted from PBC Worksheet. When I record it, it will work but only for those specific rows. The rows change depending on the data in the work sheet

Any advice that you can give me I would really appreciate!
Submitted: 12 months ago.
Category: Microsoft Office
Expert:  Yegarboy replied 12 months ago.
Welcome To Just Answer!

Hey there :)

This will do what you want...




Sub CopyPaste()


r = 1

lastRow = Sheets("PBC").Range("I65536").End(xlUp).Row

For i = 1 To lastRow

If Sheets("PBC").Range("I" & i) = "x" Then

Sheets("PBC").Range("I" & i).EntireRow.Cut Sheets("DrP").Range("A" & r)

r = r + 1

End If

Next i


End Sub



You may have to make small changes but I believe it should be correct the first try :)

Please let me know..

Cheers
Customer: replied 12 months ago.

I am getting Run Time Error '9'
Subscript out of Range

Expert:  Yegarboy replied 12 months ago.
If you will upload your workbook to www.wikisend.com I will happily fix it for you :)


After upload copy the Download link and paste it here :)

Thanks
Customer: replied 12 months ago.

http://wikisend.com/download/296926/PEPSI VOLUME 1Q13.xlsx I copy a COF to Worksheet tab if there is an X in Column 'I' I would like the data to move to DrPepper Worksheet and be deleted from Worksheet tab Thank You!

Expert:  Yegarboy replied 12 months ago.
Thanks,

I have your file and am fixing it now :)
Expert:  Yegarboy replied 12 months ago.
For some reason your file keeps crashing on me. I was unable to repair it. I am going to have to pass this question to other Experts. Good luck :)


Please don't reply back until your new expert joins you.

P.S my code works fine but your file is corrupted.
Expert:  Richard replied 12 months ago.
Thank you for your question, my name is Richard.

Can you upload another copy of the file incase please

- Click the following link: http://www.wikisend.com
- Upload the file to that website
- Once it is uploaded, the resulting page will display a "File ID" number.
- Please, give me that "File ID Number"

Thank you
Customer: replied 12 months ago.


File ID Number 48966 http://wikisend.com/download/489916/PEPSI VOLUME 1Q13.xlsx

Expert:  Richard replied 12 months ago.
Thank you, XXXXX XXXXX done

Go to www.wikisend.com

File ID # XXXXX

The Macro is called JA

If you have any problems, or would like any additional information or assistance, please do not hesitate to let me know.

And if you can take a second to rate my service, that would be greatly appreciated.

Thank you
Customer: replied 12 months ago.

I hate to bother you again but, the macro is moving all Rows from 'data sheet' with X in column I to the Dr Pepper sheet. What I need it to do is... when I paste a certain COF in the 'worksheet tab' for those rows on the 'worksheet tab' with X in column I to move to DrPepper sheet. Thank you so much for your help

Expert:  Richard replied 12 months ago.
A customer is never a bother, so please tell me whatever it is to get to the results you require.

This has been done and you can download it under File ID 270278

Let me know if you have any difficulties please

Thank you
Customer: replied 12 months ago.

I'm still having trouble. For example, when I filter data tab and select COF 1014 and paste that info in worksheet tab. I run the macro and the only thing that happens is that my hearder (Row2) moves to Dr Pepper sheet

Expert:  Richard replied 12 months ago.
Do the steps up to just before running the Macro

then let me look at the sheet

- Click the following link: http://www.wikisend.com
- Upload the file to that website
- Once it is uploaded, the resulting page will display a "File ID" number.
- Please, give me that "File ID Number"
Customer: replied 12 months ago.


File ID 704942

Expert:  Richard replied 12 months ago.
The Macro had been removed in your version

Download File ID#486596

And run the macro please

Let me know if you have any difficulties please

Customer: replied 12 months ago.


Almost...I ran Macro on worksheet tab it moved 4 of the eight rows that were to be moved to Dr Pepper tab. I saved and uploaded fileID 217362

Expert:  Richard replied 12 months ago.
ok, when we changed sheets, a Bug was introduced.

This is fixed

File ID #261514

My Apologies.

Richard, Software Specialist
Category: Microsoft Office
Satisfied Customers: 16838
Experience: Over 15 year experience resolving Microsoft Office Issues
Richard and 3 other Microsoft Office Specialists are ready to help you
Customer: replied 12 months ago.


Perfect! THANK YOU!

JustAnswer in the News:

 
 
 
Ask-a-doc Web sites: If you've got a quick question, you can try to get an answer from sites that say they have various specialists on hand to give quick answers... Justanswer.com.
JustAnswer.com...has seen a spike since October in legal questions from readers about layoffs, unemployment and severance.
Web sites like justanswer.com/legal
...leave nothing to chance.
Traffic on JustAnswer rose 14 percent...and had nearly 400,000 page views in 30 days...inquiries related to stress, high blood pressure, drinking and heart pain jumped 33 percent.
Tory Johnson, GMA Workplace Contributor, discusses work-from-home jobs, such as JustAnswer in which verified Experts answer people’s questions.
I will tell you that...the things you have to go through to be an Expert are quite rigorous.
 
 
 

What Customers are Saying:

 
 
 
  • My Expert answered my question promptly and he resolved the issue totally. This is a great service. I am so glad I found it I will definitely use the service again if needed. One Happy Customer New York
< Last | Next >
  • My Expert answered my question promptly and he resolved the issue totally. This is a great service. I am so glad I found it I will definitely use the service again if needed. One Happy Customer New York
  • Wonderful service, prompt, efficient, and accurate. Couldn't have asked for more. I cannot thank you enough for your help. Mary C. Freshfield, Liverpool, UK
  • This expert is wonderful. They truly know what they are talking about, and they actually care about you. They really helped put my nerves at ease. Thank you so much!!!! Alex Los Angeles, CA
  • Thank you for all your help. It is nice to know that this service is here for people like myself, who need answers fast and are not sure who to consult. GP Hesperia, CA
  • I couldn't be more satisfied! This is the site I will always come to when I need a second opinion. Justin Kernersville, NC
  • Just let me say that this encounter has been entirely professional and most helpful. I liked that I could ask additional questions and get answered in a very short turn around. Esther Woodstock, NY
  • Thank you so much for taking your time and knowledge to support my concerns. Not only did you answer my questions, you even took it a step further with replying with more pertinent information I needed to know. Robin Elkton, Maryland
 
 
 

Meet The Experts:

 
 
 
  • jstinehelfer

    Information Systems Manager

    Satisfied Customers:

    36
    A+ Comptia Certified computer repair
< Last | Next >
  • http://ww2.justanswer.com/uploads/JS/jstinehelfer/2012-6-6_215146_Pictureofme1.64x64.png jstinehelfer's Avatar

    jstinehelfer

    Information Systems Manager

    Satisfied Customers:

    36
    A+ Comptia Certified computer repair
  • http://ww2.justanswer.com/uploads/JA/JasonJames122/2011-12-16_135647_jasonjamesheadshotweb.64x64.jpg JasonJames122's Avatar

    JasonJames122

    Computer Enthusiast

    Satisfied Customers:

    0
    I manage all information systems (network of Windows PC's and servers with Microsoft Office products) for a small business
  • http://ww2.justanswer.com/uploads/JE/jessmagz/2012-6-6_18129_jm.64x64.jpg Jess M.'s Avatar

    Jess M.

    Computer Support Specialist

    Satisfied Customers:

    301
    Computer Software Specialist for more than 10 years
  • http://ww2.justanswer.com/uploads/CH/chutz747/2011-11-6_14231_me.64x64.jpg The-PC-Guy's Avatar

    The-PC-Guy

    Computer Manager

    Satisfied Customers:

    274
    20 years experience providing remote computer support
  • http://ww2.justanswer.com/uploads/SP/spherrod/2012-6-6_174244_1000852.64x64.JPG Steve Herrod's Avatar

    Steve Herrod

    Computer Support Specialist

    Satisfied Customers:

    125
    Trained in Microsoft Office from 2000 through to latest version 2010.
  • http://ww2.justanswer.com/uploads/SE/Seashore2011/2011-12-6_33418_111205223015.64x64.jpg Chris L.'s Avatar

    Chris L.

    Support Specialist

    Satisfied Customers:

    124
    Certified Expert with over 10 years experience.
  • http://ww2.justanswer.com/uploads/KR/krkljatorm/2012-6-24_153417_ITMiro.64x64.jpg IT Miro's Avatar

    IT Miro

    Computer Scientist

    Satisfied Customers:

    97
    Bachelor's Degree in Information Technology, Microsoft Certified Professional
 
 
 

Related Microsoft Office Questions