Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Hi Group, How do ID the directory that the active file is in with code? Thanks, David |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Hi Try this: CurrentPath = ActiveWorkbook.Path Regards, Per "David" skrev i meddelelsen ... Hi Group, How do ID the directory that the active file is in with code? Thanks, David |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Hello Per, I thought all I needed was what you provided to do what I wanted to do, which is to open all the files in the current directory. This is what I was hoping would work, but it is not: Sub OpenAllFiles() 'David Lanman 5/2/2009 Dim strFile Dim strFolder strFolder = ActiveWorkbook.Path strFolderSave = ActiveWorkbook.Path strFile = Dir(strFolder & "*.*", vbNormal) Do While strFile < "" MsgBox strFile Workbooks.Open Filename:= _ strFolder & strFile 'do something ActiveWorkbook.SaveAs Filename:= _ strFolderSave & "/" & strFile ActiveWorkbook.Close strFile = Dir Loop End Sub The strFile is empty. There is extra code, in that when I save it will be to the same directory. Thanks for your help, David "Per Jessen" wrote: Hi Try this: CurrentPath = ActiveWorkbook.Path Regards, Per "David" skrev i meddelelsen ... Hi Group, How do ID the directory that the active file is in with code? Thanks, David |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Figured it out. Thanks "Per Jessen" wrote: Hi Try this: CurrentPath = ActiveWorkbook.Path Regards, Per "David" skrev i meddelelsen ... Hi Group, How do ID the directory that the active file is in with code? Thanks, David |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Listing Active Directory groups that have directory access rights | Excel Programming | |||
Active directory users | Excel Programming | |||
active directory? | Excel Programming | |||
Active Directory | Excel Programming |