Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #3  
Old 03-24-2021, 12:38 AM
doeclapton doeclapton is offline How to do row specific macro only if column criteria is met Windows 7 64bit How to do row specific macro only if column criteria is met Office 2010
Novice
How to do row specific macro only if column criteria is met
 
Join Date: Jul 2019
Posts: 8
doeclapton is on a distinguished road
Default

Quote:
Originally Posted by Guessed View Post
Typically when people put in requests like this without providing a realistic sample document, the initial solutions don't fit because of things that aren't said. If you provided a sample doc you would get a much better solution since we can test the macro without having to make assumptions.

The specific questions I would need answered first are:
  1. Do your tables contain any merged cells?
  2. Your text says add 'english' to column 3 but your screenshot shows it in column 10. Which is correct?
  3. Does the c./v. replacement happen anywhere in the row or only in a specific row?
  4. Does the c./v. replacement happen only when there is a space in front of the c.?
Apologies for not including my actual document. I was planning to use a simplified example just to get the fundamental template of the code by which I can modify myself. I've know attached the JQ Report which I am planning to use the macro on. Now to answer your question:

1. The doc contains only a single large table and has no merged cells.
2. The disparity in columns is simply because I was using a simplified example to avoid bothering other people with unnecessary data.
3. Yes, all these macros should only take effect ONLY IF the first condition (That "Q.J." string is detected on first column) is met and will only be applied to that particular row only.
4. Yes, the " c." should only be replaced if the initial condition is met (That "Q.J." string is detected on first column) and if the " c." is a separate entity with a space before it. For example, in the string "(CIUSSS MCQ) c. R.F."

To review, using my real world attached document's real column names:
I would like the macro to set an initial condition: in JQ column – search
"Q.J." and replace with "J.Q." and in that row's short case name column, change the "c." to "v." also, again in that row, insert the word “English” in the judge(s) field column.


I hope this answers your question. Apologies for taking your time. This is part of my work and I've already sorted out other macro functions which are outside of the original post. So these are the only ones I'm having trouble with. Thanks again.
Attached Files
File Type: doc JQ Report.doc (324.5 KB, 7 views)
Reply With Quote
 

Tags
table macro condition, word table macro



Similar Threads
Thread Thread Starter Forum Replies Last Post
Looking for a macro for word count in one specific column of table, only rows with white background mobj Word VBA 2 10-17-2019 03:09 AM
How can I return Vlookup only if Specific Criteria is met in 1 column of the Vlookup Array EcommDOC Excel 7 01-22-2018 11:00 AM
How to do row specific macro only if column criteria is met How can I save all attachments in a folder with specific criteria? terrymac Outlook 1 11-12-2015 06:55 AM
How to do row specific macro only if column criteria is met Excel VBA Macro - Deleting Specific Data based on criteria MD011 Excel Programming 3 12-10-2014 02:15 AM
How to do row specific macro only if column criteria is met Deleting rows with specific criteria joflow21 Excel 9 11-22-2013 12:10 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 10:57 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft