Home |
Search |
Today's Posts |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Application.Run ("Accounts 2010-11.xls!Vouchers")
Gord Dibben MS Excel MVP On Sat, 06 Mar 2010 16:59:39 +0000, Peter wrote: On 06/03/2010 15:30, Gary Keramidas wrote: post the code that causes the debug? do you explicitly use the filename in any of the macros? Gary, Here is a portion of the code, the penultimate line is highlighted when the macro runs. I copied the original file 'Accounting.xls' and renamed it 'Accounts 2010-11.xls'. Perhaps Excel is not intelligent enough to realise! : Sub report_VOUCHERS() ' ' report_VOUCHERS Macro ' Macro recorded 08/02/2010 by Peter Rawbone ' ' Cells.Select With Selection .VerticalAlignment = xlCenter .WrapText = False .Orientation = 0 .AddIndent = False .ShrinkToFit = False .ReadingOrder = xlContext .MergeCells = False End With With Selection.Font .Name = "Arial" .FontStyle = "Regular" .Size = 9 .Strikethrough = False .Superscript = False .Subscript = False .OutlineFont = False .Shadow = False .Underline = xlUnderlineStyleNone .ColorIndex = xlAutomatic End With Selection.Borders(xlDiagonalDown).LineStyle = xlNone Selection.Borders(xlDiagonalUp).LineStyle = xlNone Selection.Borders(xlEdgeLeft).LineStyle = xlNone Selection.Borders(xlEdgeTop).LineStyle = xlNone Selection.Borders(xlEdgeBottom).LineStyle = xlNone Selection.Borders(xlEdgeRight).LineStyle = xlNone Selection.Borders(xlInsideVertical).LineStyle = xlNone Selection.Borders(xlInsideHorizontal).LineStyle = xlNone Selection.ClearContents Selection.ColumnWidth = 8.43 Selection.RowHeight = 12.75 Range("A1").Select Application.Run "Accounts 2010-11.xls!Vouchers" Rows("1:1").Select Any advice greatly appreciated Peter |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Copying Multiple files in one file Macro - Liz | New Users to Excel | |||
macro for copying file | Excel Discussion (Misc queries) | |||
problem copying excel wroksheets | Excel Discussion (Misc queries) | |||
Problem Editing Macro in Shared Excel File | Excel Discussion (Misc queries) | |||
Problem Editing Macro in Shared Excel File | Excel Discussion (Misc queries) |