Two or more VBA in one worksheet

Jennifer Van

New Member
Joined
Apr 22, 2022
Messages
41
Office Version
  1. 2016
Platform
  1. Windows
I already have a VBA which copies a line from worksheet Loan Request Return to another worksheet called WaitList if cell Q says yes.

What I need now is if another cell "AB" says Yes, to copy the cell to another worksheet "Repairs Remove"

And if possible, columns K,L,M data (if data is in there) only be copied to a sheet called Equipment Library and not only to an empty cell, it goes to the cell which holds the same UID (UniqueID) which then shows that the equipment is on loan etc?

Thank you, I know this is a lot to ask
 
Hi
Set wsLRR = Sheets("Loan Request Return") - It is showing an error Runtime error '9' Subscript out of range
Can you help again sorry
Jen
 
Upvote 0

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
Hello Jennifer,

That error indicates that the worksheet can't be found and I'm assuming that this has appeared in your actual workbook. Check that the spelling, punctuation, spacing etc. is exactly the same as your tab name or simply re-write the tab name and ensure that the code entry is exactly the same as the re-written tab name.

Cheerio,
vcoolio.
 
Upvote 0
Hi
I couldn't see any difference but copied your code and paste into tab name and was totally blown away when it worked!!!! Thank you so much this is awesome - going to save so much
time and stop errors.

Are you able to assist with one more code?
Jen
 
Upvote 0
You're welcome Jennifer. I'm glad to have been able to assist.
Are you able to assist with one more code?
If it's related to this, then yes. Otherwise, you'll need to start a new thread.

Cheerio,
vcoolio.
 
Upvote 0

Forum statistics

Threads
1,224,836
Messages
6,181,252
Members
453,028
Latest member
letswriteafairytale

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top