Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have created a macro code to formate my excel file below is the code
sub test() ChDir "C:\N" Workbooks.Open Filename:="C:\N\AU.xls" Rows("1:1").Select With Selection.Interior .ColorIndex = 6 .Pattern = xlSolid End With End sub The above code work only in file AU.xls, i would like to have a short macro code to open my other three files (BU.xls, DU.xls, EF.xls) and perform the same action to it. Is it possible to put the formate part in loop. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How to: Open closed workbook/Search data tables/Return data to open workbook | Excel Discussion (Misc queries) | |||
how do i open a data workbook when i open a timesheet workbook | Excel Discussion (Misc queries) | |||
Open a specific workbook...find value from other open workbook and then insert cells values in cell next to it. | Excel Programming | |||
excel 2003 saved file will not open without a blank workbook open | Excel Discussion (Misc queries) | |||
How do you program so that Workbook B cannot be open unless Workbook A is open? Plus I need to validation | Excel Programming |