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: 415
Member Since:
December 20, 2019
December 20, 2019
Offline
Purfleet
England
Member
Members
Trusted Members
Trusted Members
Forum Posts: 415
Member Since:
December 20, 2019
December 20, 2019
Offline
Purfleet
England
Member
Members
Trusted Members
Trusted Members
Forum Posts: 415
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: Velouria, Charles Johnson, Riny van Eekelen
Guest(s) 9
Currently Browsing this Page:
1 Guest(s)
1 Guest(s)
Top Posters:
Catalin Bombea: 1939
SunnyKow: 1432
Anders Sehlstedt: 925
Purfleet: 415
Frans Visser: 349
Hans Hallebeek: 343
David_Ng: 312
lea cohen: 248
Jessica Stewart: 219
A.Maurizio: 216
Newest Members:
Hiroyuki Murai
Mark Allen
Yves Gagnon
PATRICK WALTER
Carley Brice
Ash Rahman
Christelle Lamprecht
Wei Kwok Tey
Partha Pratim Nandy
Inge Rousseau
Forum Stats:
Groups: 3
Forums: 25
Topics: 7087
Posts: 31062
Member Stats:
Guest Posters: 49
Members: 34503
Moderators: 2
Admins: 3
Administrators: Mynda Treacy, Philip Treacy, Jessica
Moderators: Velouria, Riny van Eekelen
© Simple:Press —