if cells("a1").value = cells("b1").value then
cells("c1").value = "yes"
if cells("a1").value = cells("b1").value then
cells("c1").value = "yes"
No. Either:
or![]()
Please Login or Register to view this content.
or![]()
Please Login or Register to view this content.
![]()
Please Login or Register to view this content.
Please consider:
Thanking those who helped you. Click the star icon in the lower left part of the contributor's post and add Reputation.
Cleaning up when you're done. Mark your thread [SOLVED] if you received your answer.
Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code. Posting code without them makes your code hard to read and difficult to be copied for testing. Highlight your code and click the # at the top of your post window. For more information about these and other tags, found here
Also,
Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution. Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.
To change a Title on your post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.
Maybe a title such as "Correct method of using cells("a1").value in vba".
Last edited by arlu1201; 03-30-2012 at 12:25 PM.
If I have helped, Don't forget to add to my reputation (click on the star below the post)
Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
Use code tags when posting your VBA code: [code] Your code here [/code]
thanksi need is the time is suppose 15:30 in cell a1 , then yes will be in cell c in cases 3 minutes prior to the specified time in cell a1 and 3 minutes after the specified time in cell a1 , other than that NO in cel c
Kshitij_dch,
You need to comply with both rules 1 & 3. Just put code tags in your 1st post and edit the title. Then people will be able to help you faster.
Welcome to the Forum, unfortunately:
This is a duplicate post and as such does not comply with Rule 5 of our forum rules. This thread will now be closed, you may continue in your other thread.
http://www.excelforum.com/excel-prog...e-2-cells.html
Thread Closed.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks