Hi,
I have been reading the forums and I found it great! I have been running through a problem in my one of the report that I generate. I have more then 15 charts to create every week in one report and what I do is, create charts into each's Sheets Example: A data is in "data" sheet and then Create a chart for Boston city and choose a "Boston" named sheet to have chart over there and so on.. Then I go ahead and maximize the chart to fits into screen and adjust the fonts and so on. Since the data source range keeps changing every time thats how I do manually the charts BUT I tried to record macro to maximize the chart fits into screen and adjust fonts and then tried to run the same macro in another chart sheet but off course since the macro was recorded in sheet name "Boston" it gives me error and I dont know how and what should I put so it takes the sheet names automatic or at least I can click on every sheet and make it active and just press any key stroke that is assigned to macro so that can be done easily but again I tried giving some active.sheet name and stuff into chart name but its not working. In macro it gives chart number Example: "Chart 39" and so on?! I dont know where that numbers is coming from.
Any help?
I have been reading the forums and I found it great! I have been running through a problem in my one of the report that I generate. I have more then 15 charts to create every week in one report and what I do is, create charts into each's Sheets Example: A data is in "data" sheet and then Create a chart for Boston city and choose a "Boston" named sheet to have chart over there and so on.. Then I go ahead and maximize the chart to fits into screen and adjust the fonts and so on. Since the data source range keeps changing every time thats how I do manually the charts BUT I tried to record macro to maximize the chart fits into screen and adjust fonts and then tried to run the same macro in another chart sheet but off course since the macro was recorded in sheet name "Boston" it gives me error and I dont know how and what should I put so it takes the sheet names automatic or at least I can click on every sheet and make it active and just press any key stroke that is assigned to macro so that can be done easily but again I tried giving some active.sheet name and stuff into chart name but its not working. In macro it gives chart number Example: "Chart 39" and so on?! I dont know where that numbers is coming from.
Any help?