Welcome to Dream.In.Code
Become a VB Expert!

Join 137,234 VB Programmers for FREE! Get instant access to thousands of VB experts, tutorials, code snippets, and more! There are 1,702 people online right now. Registration is fast and FREE... Join Now!




Get file name from excel sheet

 
Reply to this topicStart new topic

Get file name from excel sheet, Get file name from excel sheet

tex
26 Feb, 2007 - 12:34 PM
Post #1

New D.I.C Head
*

Joined: 26 Feb, 2007
Posts: 6


My Contributions
I'm a nebie to programing and love it!!!!!
But this is driving me crazy. I've looked all over the net for code like this and tried many home remedies. Can someone PLEASE HELP!!!!

Thanks Tex

I have been trying to make the file name come from cells in excel worksheets. such as C:\BM\active.cells (3, 1)\
C:\BM\sheet.cells (3, 1)\
I know this is wrong but No book or website has a cure it seems.

I need it to preform this way so i can change which workbook it looks up without changing it in VB code


Original
Application.ScreenUpdating = False
filnam$ = "C:\BM\Catalog\" + Mfg$
Workbooks.Open filnam$

Can this be done??????
User is offlineProfile CardPM
+Quote Post

ffrreeaakk
RE: Get File Name From Excel Sheet
26 Feb, 2007 - 12:48 PM
Post #2

New D.I.C Head
*

Joined: 26 Feb, 2007
Posts: 3


My Contributions
try
CODE
filename = "C:\BM\" & Cells(3, 1)

User is offlineProfile CardPM
+Quote Post

tex
RE: Get File Name From Excel Sheet
26 Feb, 2007 - 01:35 PM
Post #3

New D.I.C Head
*

Joined: 26 Feb, 2007
Posts: 6


My Contributions
QUOTE(ffrreeaakk @ 26 Feb, 2007 - 01:48 PM) *

try
CODE
filename = "C:\BM\" & Cells(3, 1)





Thanks I'll try it !!!


A buddy of mine emailed This To me and it works

Application.ScreenUpdating = False
filnam$ = "C:\BM\Catalog\" + company$ + Mfg$
Workbooks.Open filnam$

It looks up the name under the header

Thanks again for your help!!!!
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 12/4/08 03:52PM

Live VB Help!

VB Tutorials

Reference Sheets

VB Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month