Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Macro File path problem
I have a Marco that runs a series of VLookups from a button in the excel
sheet. The Macro is stored in the personal worksheet which is always hidden. The workbook is used as a template that is stored on the server where it is access by multiple users. My problem is that some how the macro is €ślosing€ť the path to the €śtable array€ť sheet that is stored in a separate worksheet on the server. When you hit the button for the Vlookup; a window for u to navigate to the file that contains the sheet for the €śtable array€ť values appears. This is very frustrating and perplexing to me. If anyone has any ides as to how I can solve this issue I would be very grateful. See my code below Sub Fdrivetrim2() ' ' Fdrivetrim2 Macro ' Macro recorded 03/4/2008 by Dwayne ' ' Range("J15").Select ActiveCell.FormulaR1C1 = _ "=VLOOKUP(RC[-7],[TRIMPRICES.xls]FUSING!R1C1:R8C3,3,FALSE)" Range("J17").Select ActiveCell.FormulaR1C1 = _ "=VLOOKUP(RC[-8],[TRIMPRICES.xls]ZIPPERS!R1C1:R37C2,2,FALSE)" Range("J19").Select ActiveCell.FormulaR1C1 = _ "=VLOOKUP(RC[-8],[TRIMPRICES.xls]ELASTIC!R1C1:R11C4,4,FALSE)" ActiveWindow.SmallScroll Down:=42 Range("M55").Select ActiveCell.FormulaR1C1 = _ "=VLOOKUP(RC[-5],[TRIMPRICES.xls]POLYBAGS!R1C1:R16C2,2,FALSE)" Range("M56").Select ActiveCell.FormulaR1C1 = _ "=VLOOKUP(RC[-5],[TRIMPRICES.xls]HANGERS!R1C1:R35C5,5,FALSE)" Range("M56").Select Range("J20").Select ActiveCell.FormulaR1C1 = _ "=VLOOKUP(RC[-7],[TRIMPRICES.xls]BUTTONS!R1C5:R53C6,2,FALSE)" End Sub |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Formula too long - new file path is shorter than old file path - Excel 2003 | Excel Worksheet Functions | |||
Problem with default file path | Excel Programming | |||
UNC Path length problem opening a file in excel 2002 or 2003 | Excel Discussion (Misc queries) | |||
Path\File name length problem Excel Crash on save as | Excel Discussion (Misc queries) | |||
File Path Problem | Excel Programming |