
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: 414
Member Since:
December 20, 2019
December 20, 2019


Purfleet
England
Member
Members

Trusted Members

Trusted Members

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


Purfleet
England
Member
Members

Trusted Members

Trusted Members

Forum Posts: 414
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: Susan VanRiper, Yiwen Zhou, QSolutions Group
Guest(s) 8
Currently Browsing this Page:
1 Guest(s)
1 Guest(s)
Top Posters:
SunnyKow: 1432
Anders Sehlstedt: 880
Purfleet: 414
Frans Visser: 346
David_Ng: 306
lea cohen: 237
Jessica Stewart: 219
A.Maurizio: 213
Aye Mu: 201
jaryszek: 183
Newest Members:
Herbie Key
Trevor Pindling
Stevan Kanjo
Erin Sheldon
Nikita Bhatia
Sheilah Taylor
Clare Webber
David Jenssen
Dominic Brosnahan
Young You
Forum Stats:
Groups: 3
Forums: 24
Topics: 6526
Posts: 28576
Member Stats:
Guest Posters: 49
Members: 32809
Moderators: 2
Admins: 4
Administrators: Mynda Treacy, Philip Treacy, Catalin Bombea, FT
Moderators: Velouria, Riny van Eekelen
© Simple:Press —
