DonkeyOte
MrExcel MVP
- Joined
- Sep 6, 2002
- Messages
- 9,124
I am sure someone has probably explained this before but I have never been able to do the following.
I am running a spreadsheet that analyses actual versus budget positions in real time, part of this solution are automatic warning flag emails that get sent to various departments as and when adverse variances above 10% of budget arise. This is all fine and is coded etc... the problem I have is that when there's an adverse variance the VB creates a text string for the email along thses lines:
Nominal Code - Description of Code - Amount of Variance - "overspend" - in Q# (variable)
The problem is the Amount of Variance as I can not work out how to ensure that this values is returned in the format of #,##0.00
Anyone know how I can amend the below code to have this effect:
Range("P" & CROW) = Range("A" & CROW) & " - " & Range("B" & CROW) & " - " & -NCODE & " Overspend in Q" & Range("N1")
where -NCODE is equivalent to the value.
Thanks
Luke
I help you now you help me?
I am running a spreadsheet that analyses actual versus budget positions in real time, part of this solution are automatic warning flag emails that get sent to various departments as and when adverse variances above 10% of budget arise. This is all fine and is coded etc... the problem I have is that when there's an adverse variance the VB creates a text string for the email along thses lines:
Nominal Code - Description of Code - Amount of Variance - "overspend" - in Q# (variable)
The problem is the Amount of Variance as I can not work out how to ensure that this values is returned in the format of #,##0.00
Anyone know how I can amend the below code to have this effect:
Range("P" & CROW) = Range("A" & CROW) & " - " & Range("B" & CROW) & " - " & -NCODE & " Overspend in Q" & Range("N1")
where -NCODE is equivalent to the value.
Thanks
Luke
I help you now you help me?