pinkpanther6666
Board Regular
- Joined
- Feb 13, 2008
- Messages
- 194
- Office Version
- 365
- Platform
- Windows
Good Evening All,
Im trying to write some vba where i have to generate up to 30 reports from my spreadsheet
But sometimes the value in Cell C5 is 0 and i dont want a report generating for that
the SaveReport Macro basically saves the report as a pdf
My VBA Code is as follows
For A = 1 To 30
If Range("C5").Value >= 1 Then Call SaveReport
Else Next A
What im trying to write is if the Value of C5 is Greater and Equal to 1 then call SaveReport and then Next A
Hope anyone can help
Many Thanks
Steve
Im trying to write some vba where i have to generate up to 30 reports from my spreadsheet
But sometimes the value in Cell C5 is 0 and i dont want a report generating for that
the SaveReport Macro basically saves the report as a pdf
My VBA Code is as follows
For A = 1 To 30
If Range("C5").Value >= 1 Then Call SaveReport
Else Next A
What im trying to write is if the Value of C5 is Greater and Equal to 1 then call SaveReport and then Next A
Hope anyone can help
Many Thanks
Steve