Comments for Excel Macro Mastery https://excelmacromastery.com The Missing VBA Handbook Tue, 20 Feb 2018 03:04:27 +0000 hourly 1 https://wordpress.org/?v=4.9.4 Comment on VBA IF Statement – A Complete Guide by Naresh kumar https://excelmacromastery.com/vba-if/comment-page-1/#comment-24235 Tue, 20 Feb 2018 03:04:27 +0000 http://excelmacromastery.com/Blog/?p=1987#comment-24235 As i’m writing the VBA in Sheet1..

]]>
Comment on VBA IF Statement – A Complete Guide by Naresh kumar https://excelmacromastery.com/vba-if/comment-page-1/#comment-24234 Tue, 20 Feb 2018 03:02:57 +0000 http://excelmacromastery.com/Blog/?p=1987#comment-24234 Hello Paul,

I need a IF formula with the different sheets.
i.e. If sheet2 on B1 column has the amount of “100” then it is “TRUE” then
If it is false it is “False”.
Please give a formula for this on VBA.

Thanks & Regards,
Naresh.K

]]>
Comment on Excel VBA Find – A Complete Guide by Mahipal https://excelmacromastery.com/excel-vba-find/comment-page-2/#comment-24177 Sun, 18 Feb 2018 10:01:30 +0000 http://excelmacromastery.com/Blog/?p=1746#comment-24177 Hi Paul,
as you have mentioned that while finding just the cell format.
we can use “*”, this will ignore the values .
However i have tested the results and at times when the cell is blank and we need to search for the cell format ,say rgbred. then the following code will not give the desired results.

Application.FindFormat.Interior.Color = rgbRed
Set cell = Range(“A1:B6”).Find(“*”, SearchFormat:=True)
Debug.Print cell.Address

For correct usage we will have to uses “” instead of “*”

so the correct code would be

Application.FindFormat.Interior.Color = rgbRed
Set cell = Range(“A1:B6”).Find(“”, SearchFormat:=True)
Debug.Print cell.Address

Hope you will give it a thought.
Thanks

]]>