Hitesh Shetty
Member
Members
Forum Posts: 7
Member Since:
December 30, 2020
December 30, 2020
Offline
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: 414
Member Since:
December 20, 2019
December 20, 2019
Offline
Purfleet
England
Member
Members
Trusted Members
Trusted Members
Forum Posts: 414
Member Since:
December 20, 2019
December 20, 2019
Offline
Purfleet
England
Member
Members
Trusted Members
Trusted Members
Forum Posts: 414
Member Since:
December 20, 2019
December 20, 2019
Offline
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: Thieu van Beek, Kathleen Silva, Alex Dawson
Guest(s) 10
Currently Browsing this Page:
1 Guest(s)
1 Guest(s)
Top Posters:
Catalin Bombea: 1917
SunnyKow: 1432
Anders Sehlstedt: 900
Purfleet: 414
Frans Visser: 346
David_Ng: 306
Hans Hallebeek: 290
lea cohen: 246
Jessica Stewart: 219
A.Maurizio: 216
Newest Members:
David M Connelly
Quick Analytics
Peter Craven
Thomas Huybs
Cassandra McGuire
Leo Bonaparte
Excel Learner
david gavi
Rick KISA
Jan Elenbaas
Forum Stats:
Groups: 3
Forums: 24
Topics: 6880
Posts: 30159
Member Stats:
Guest Posters: 49
Members: 33706
Moderators: 2
Admins: 3
Administrators: Mynda Treacy, Philip Treacy, Jessica
Moderators: Velouria, Riny van Eekelen
© Simple:Press —