Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 390
Default VBE file open coding

I am trying to write a vbe macro to look in cell J11 for a directory path,
then goto a file name found in cell J40.
I have this so far:

Open Filename
"C:\" & Range("j11").Value _
& "\" & Range("j39").Value & ".xls"

I am sure the bottom 2 line are ok, it is the first one that ia a problem.
Please can someone help with this nice easy one.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 184
Default VBE file open coding

Hi, give this a try:
Workbooks.Open Filename:="C:\" & Range("j11").Value _
& "\" & Range("j39").Value & ".xls"

HTH--Lonnie M.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 390
Default VBE file open coding



"Lonnie M." wrote:

Hi, give this a try:
Workbooks.Open Filename:="C:\" & Range("j11").Value _
& "\" & Range("j39").Value & ".xls"

HTH--Lonnie M.

Top guy - thanks buddy.




Reply
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
How to confirm the open dialogue box by using macro coding? Eric Excel Worksheet Functions 3 June 13th 07 12:54 PM
How to close a excel file using Macro coding? Eric Excel Worksheet Functions 5 June 11th 07 03:02 PM
How to close a excel file using Macro coding? Eric Excel Discussion (Misc queries) 1 June 11th 07 08:49 AM
Hard-Coding a File Location ibeetb Excel Programming 1 April 15th 04 06:46 PM
Need some help with in coding!!!! text file importing SUDHENDRA Excel Programming 4 December 7th 03 02:15 PM


All times are GMT +1. The time now is 03:30 PM.

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

About Us

"It's about Microsoft Excel"