-
Jun 20th, 2019, 01:23 PM
#1
Thread Starter
New Member
remove colours by vba based on conditions in excel
all files are located in desktop
vba is placed in seperate file
only 1 file is opened and that is vba code placed file so for this process we have to open the file as per condition and after the process completed all files should be saved and closed except vba placed file
If column R of 1.xls file is not in minus(-1,-0.5 or xyz any negative number) then see the column E data of 1.xls and open 2.xlsx and match column E of 1.xls with column A of 2.xlsx
and if it matches then look for any highlighted colour in that row and if any highlighted cell in that row is found then remove the highlighted colour and save the file and close all the file
So plz have a look and do needful
-
Jun 20th, 2019, 04:14 PM
#2
Re: remove colours by vba based on conditions in excel
are the coloured (highlighted) cells as result of conditional formatting?
you would need to post the 2 workbooks with some appropriate sample data
zip first and attach to post
i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next
dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part
come back and mark your original post as resolved if your problem is fixed
pete
-
Jun 20th, 2019, 05:32 PM
#3
Thread Starter
New Member
Re: remove colours by vba based on conditions in excel
i am unable to attach a zip file no issue plz provide the code as per the given condition i will check and i will let u know wheather it is working or not
-
Jun 20th, 2019, 05:48 PM
#4
Re: remove colours by vba based on conditions in excel
Your initial description of what you want is one lengthy run-on sentence that doesn't even make sense. I highly doubt anyone here will take the time to try to understand what exactly you want, let alone take the time to write the code for you just because you asked for it. This site isn't a bunch of pro bono contractors that take specs and churn out code.
-
Jun 21st, 2019, 01:13 AM
#5
Thread Starter
New Member
Re: remove colours by vba based on conditions in excel
https://mega.nz/#!3zB0mCZJ!bxrEi7BX2...4-F4aoB4g5rkso
https://mega.nz/#!m3BySAKL!ssIieoe9c...Xlbf7fThvpjccY
download both files from this link sir
yesterday i was trying to upload the file but it was not uploading so i am sharing the link
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|