Excel VBA and Macros with MrExcel livelessons

sugrue

New Member
Joined
Feb 7, 2008
Messages
25
I think there is an error in the code for Lesson 17 where the headings are being copied over. Instead of:
WSD.Range("A1:E5").Copy Destination:=WSR.Range("A3")
it would be:
WSD.Range("A1:E1").Copy Destination:=WSR.Range("A3") <-- change E5 to E1


The way it is (E5), you are wiping out the first few rows that were copied over.

Jack
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
Yes... that sounds right... Copy the headings from A1:E1 over to row 3 on the report. I wonder if that "5" was a leftover fragment of thinking "R1C1:R1C5"...

Thanks for this note.

Bill
 
Thanks Bill. I found another "gotcha" in lesson 20. The calculation:
WhatsLeft = ThisAmt - ServiceAmt

needs to be outside the If...End If. Otherwise, the commission is zero for invoices without Service agreements.

Jack
 

Forum statistics

Threads
1,222,725
Messages
6,167,859
Members
452,150
Latest member
jenningstrades

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