LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 20
Default Needing to select file path with Set command

I'm currently using this piece of code to define my last column.

Set LastColOpen = Worksheets("Dec").Cells(3, "IV").End(xlToLeft)

I need to expand this code to show that the Worksheet ("Dec") lives on
R:\Something\Something [test.xls])

Something like

Set LastColOpen = Worksheets
(R:\Something\Something[test.xls]).("Dec").Cells(3, "IV").End(xlToLeft)

Any suggetions?

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
File Path Too Long? Not Anymore! Check out Long Path Tool Max Loger Excel Discussion (Misc queries) 1 March 24th 17 07:59 AM
Embed PDF and select file name and path Jenny B. Excel Discussion (Misc queries) 2 June 5th 09 12:19 PM
Formula too long - new file path is shorter than old file path - Excel 2003 Greg J Excel Worksheet Functions 1 November 22nd 06 05:16 PM
relative path in shell command (excel) SpeeD Excel Programming 1 November 16th 05 05:29 PM
Path command Garry[_5_] Excel Programming 5 February 20th 04 01:59 PM


All times are GMT +1. The time now is 12:05 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"