Need help on Macros

hitesh222002

New Member
Joined
Oct 20, 2020
Messages
2
Office Version
  1. 2007
Platform
  1. Windows
Hello there,

I've attached a macro file in this email. It is about automating sales report for 3 different weeks. The macro is supposed to run for 1st, 2nd and 3rd week. However, Iam unable to run the macro for 2nd and 3rd week.

I've recorded the macro for the 1st week. However, when I try to automate the same for 2nd and 3rd week, It shows runtime error '1004'. The debugger is showing the error as .Color = -16383844 highlighted in yellow in the VB page.

Do I need to make any changes in the code to make the macro run for 2nd and 3rd week.

Even the conditional formatting for 'Charged Off' is not reflecting for the 2nd and 3rd weeks.

Looking forward to hearing from you guys.
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
Iam unable to upload Macro enabled file using the 'Upload Image' tab. It is only accepting .jpg and few other extension. This is a macro excel file. Please guide me as to how can I upload the file
 
Upvote 0

Forum statistics

Threads
1,214,840
Messages
6,121,895
Members
449,058
Latest member
Guy Boot

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