copy past (condition) and send to outlook with timer set on daily

klechan

New Member
Joined
Sep 11, 2018
Messages
1
Hello,

I want to solve my issue at work via excel VBA

everyday at 15:45 PM

Open an excel file workbook in my c://path/name file say file name is Andrew_daily error

REFRESH the workbook Andrew_daily error to get the most updated information (it links up another excel data)

in the excel workbook ..Andrew_daily_error

in worsheet1...

What I want to do is ...for any value in column G, say from G1, going down, G2, G3 and loop to G20 ...if the value in G1 is greater than >= 10, copy A1:E1 and create a temp worksheet2 paste to the temp worksheet2 with value and original format then loop back to G2, by the say way for cell
G2 if value >=10, copy A2:E2 to worksheet2 ...till the looping is completed

There maybe only 10 rows (looping up to G10) or there maybe 20 rows (up to G20) depending on if there is any value in G or STOP looping once G value is N/A or space empty

copy all the value in worksheet2 and paste to Microsoft outlook..send to a*******@gmail.com with email heading "Error", cc b*****@gmail.com

then SEND the outlook (the timer is set to 15:45pm)

i want to set the timer 15:45pm

After sending out the email.....

go back to excel workbook (Andrew_daily error) and Rename temp worksheet2 TAB using date today (format like Month Day Year e.g 09102018)

Save the workbook Andrew_daily error

I hope I can set the timer at 15:45:00 pm to run this VBA macro everyday

I m really appreciated if someone here can help

Best

Andrew
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.

Forum statistics

Threads
1,223,911
Messages
6,175,325
Members
452,635
Latest member
laura12345

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top