Hi All
,
New to the forum, and very glad I found this community. I am interesting in learning VBA for self-educational/work purpose, and hope you guys can help me.
*I've attached the spreadsheet I am working on, and was wondering if there is a Macro for the following functions, in Order.
Sample2-REVISED.xls
#1) Need to format ALL cells, to row height 12.75 , zoom to 75% , and Adjust Columns to Autofit - So I wrote the below in VBA
#2) I need to delete all ROWS with Purchase Date 60 days from "today's date" so I wrote the below:
#3) I need to highlight entire row, with Paid = " Y" so I wrote the below. *Is there anyway to adjust this formula, so that it highlights the whole row, up until the last column with data? How about up until the last column with data + 1 more column? * THANK YOU.
*Inquiries where I need help*
-Need Macro/VBA to look in Client column, and highlight/bold the row that contains the word "LEO", so if you referring to the file attached, there is also KhanLeo and I would like to have that one picked up too.
-Need Macro/VBA, if first 2 character of the invoice starts with 99, delete the row.
-Need Macro/VBA, if the 6th character of the invoice starts with 9, delete the row.
-Need Macro/VBA to change column J "Days between Purchase Date/ Invoiced Date" to Numbers, as some of them are currently "Numbers Stored as Text"
-Is it also possible to create a Macro/VBA formula, to do the following:
*If client type is in the range of 52000 to 53999 AND has a discount code of FAM2 OR 805P AND Days between purchase date and invoice date is 7, then delete row, if not leave it alone and do nothing.
*If client type is in the range of 58000 to 58999 AND discount code cell is BLANK AND the Days between purchase date and invoice date is 90, then delete row, if not then leave it alone and do nothing.
*If client type is in the range of 58000 to 58999 AND has a discount code of FAM2 OR 805P AND Days between purchase date and invoice date is 30, then delete row, if not leave it alone and do nothing.
*I would like to have one big macro, instead of separate macros... is that possible?
*I will try to do the others myself, and will seek help if need. THANK YOU SO MUCH FOR ALL YOUR HELP.
Sample2-REVISED.xls
*MY CODE SO FAR*
Sample2-REVISED.xls
Bookmarks