Senin, 11 Februari 2013

[ExcelVBA] Filepath referencing a cell used to autoopen a file or *.xll file

 

This is the code I have in "ThisWorkbook"
sFileLocMarket is a named range in my workbook
I am unable to get the code to compile, I'm sure I am getting this wrong.

>>
Option Explicit
Const xllName = "schedulesV1.0.2.xll"
Dim filePath As String
filePath = Paths.Range(sFileLocMarket).Value
filePath = filePath & "\" & xllName


Private Sub Workbook_Open()

Application.RegisterXLL filePath

End Sub

>>

__._,_.___
Reply via web post Reply to sender Reply to group Start a New Topic Messages in this topic (1)
Recent Activity:
----------------------------------
Be sure to check out TechTrax Ezine for many, free Excel VBA articles! Go here: http://www.mousetrax.com/techtrax to enter the ezine, then search the ARCHIVES for EXCEL VBA.

----------------------------------
Visit our ExcelVBA group home page for more info and support files:
http://groups.yahoo.com/group/ExcelVBA

----------------------------------
More free tutorials and resources available at:
http://www.mousetrax.com

----------------------------------
.

__,_._,___

Tidak ada komentar:

Posting Komentar