
Hitesh Shetty
Member
Members

Forum Posts: 7
Member Since:
December 30, 2020
December 30, 2020

Hello Guys,
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 macros 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.

Purfleet
England
Member
Members

Trusted Members

Trusted Members

Forum Posts: 412
Member Since:
December 20, 2019
December 20, 2019


Purfleet
England
Member
Members

Trusted Members

Trusted Members

Forum Posts: 412
Member Since:
December 20, 2019
December 20, 2019


Purfleet
England
Member
Members

Trusted Members

Trusted Members

Forum Posts: 412
Member Since:
December 20, 2019
December 20, 2019

I fear that it would take quite a while to iron out all the parts that need correcting in your code.
the code inserts the same column each time its run, which i guess was not the intention? The contents of coilumn H are then deleted
Half way through the code Week_3 is being referenced, which means that code is acting on that worksheet only. After that you make cell K6 change to delinquent then changed to Charged off
The is also limited to rows up to 501.
If i was you i would forget about the formatting at the moment and just concentrate on getting the marco to do what it needs to then add the formatting after when you know it works.
Forum Timezone: Australia/Brisbane
Most Users Ever Online: 245
Currently Online:
Guest(s) 11
Currently Browsing this Page:
1 Guest(s)
1 Guest(s)
Top Posters:
SunnyKow: 1432
Anders Sehlstedt: 870
Purfleet: 412
Frans Visser: 346
David_Ng: 306
lea cohen: 219
A.Maurizio: 202
Jessica Stewart: 202
Aye Mu: 201
jaryszek: 183
Newest Members:
John Chisholm
vexokeb sdfg
John Jack
Malcolm Toy
Ray-Yu Yang
George Shihadeh
Naomi Rumble
Uwe von Gostomski
Jonathan Jones
drsven
Forum Stats:
Groups: 3
Forums: 24
Topics: 6210
Posts: 27236
Member Stats:
Guest Posters: 49
Members: 31888
Moderators: 3
Admins: 4
Administrators: Mynda Treacy, Philip Treacy, Catalin Bombea, FT
Moderators: MOTH Support, Velouria, Riny van Eekelen
© Simple:Press —
