Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
macros on charts that use fixed filenames
Hi
one problem i have with some of my macros which perform operations on charts is that they incorporate the name of the file in the code - if colleagues create their own versions of these files with different names the code needs altering but the macro cannot dynamically update i assume? is there way of instead of writing the filename in the code it can be referred to as "This workbook" or something like this - i tried but cant get the syntax right just by trial and error enlightenment from those talented and gifted out there would be appreciated please! TIA matt see code example below ------------------------------- ActiveSheet.Unprotect ActiveSheet.ChartObjects("Chart 1").Activate ActiveChart.SeriesCollection(2).Select With Selection.Border .ColorIndex = 3 .Weight = xlThick .LineStyle = xlContinuous End With With Selection .MarkerBackgroundColorIndex = xlNone .MarkerForegroundColorIndex = xlNone .MarkerStyle = xlNone .Smooth = False .MarkerSize = 3 .Shadow = False End With ActiveWindow.Visible = False Windows("HAN04.xls").Activate ---------------------------------- matt *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it! |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
macros on charts that use fixed filenames
The syntax is ThisWorkbook - Manges -- mangesh_yada ----------------------------------------------------------------------- mangesh_yadav's Profile: http://www.excelforum.com/member.php...fo&userid=1047 View this thread: http://www.excelforum.com/showthread.php?threadid=31866 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Charts: want to assign fixed color for each slice | Excel Discussion (Misc queries) | |||
Charts: want to assign fixed color for each slice | Charts and Charting in Excel | |||
Print Excel charts in Word 2003 with fixed size | Charts and Charting in Excel | |||
Linked excel charts, changing filenames generates exception | Excel Programming | |||
How not to fixed cell address in Macros | Excel Programming |