Automatic Index For Jpg Folder

Mar 28, 2007

I`m trying to create a macro that produces an index of jpgs contained in a folder.
I need also some properties of the file. With these I will create a new naming system and rename existing files. To do part of this I copied from here a macro and adapted it. Copied: i.e. I don`t know much!!!

Problem 1)
Initially it worked, then "Run-time error 53, file not found" started appearing without me being aware of making any changes to the code.

Problem 2)
I would like to capture some of the properties of the files (pics from digital camera). Which jpgs properties can I access to and how?
What about exif data?
Explorer shows 3000x2000 pixels. Can I get this too?

Sub Get_Folder_Contents()
Dim folderstring As String
Sheets("Sheet1").Select
folderstring = ThisWorkbook.Path
f = Dir(CStr(folderstring & "*.jpg"))
n = 2
Do While Len(f) > 0
Cells(n, 1) = folderstring
Cells(n, 2) = f
Dim fs, fl
Set fs = CreateObject("Scripting.FileSystemObject")................

View 3 Replies


ADVERTISEMENT

Create Automatic Link To Files In Same Folder

Apr 28, 2009

I have two files,

1. Form Templete & 2. Student Data Index. (Both files will be placed in same folder)

About Form Templete : This is a simple form, containing some fields. Fields which i require are Form No., Student's name & Standard.

About Student Data Index : This file is to maintain records.
Each time when I fill form for a new student i will copy paste the form templete file & rename it by form no. (Entered in the Form Templete file, Form No. field)

My question is : Is it possible that whenever i create a new file in the same folder with student's name the required fields in the Student data Index get filled automatically, apart from that the new file created get hyperlinked & when i click on form no. the form for that student gets open?

View 11 Replies View Related

Creating Automatic Customer Code By Index

Dec 12, 2009

i have one excel sheet (refer attach) i give some example 7 to 8 customers, but in sheet nos. Of customer name a to z suppose to 3000 customer list. Now i want to create automatic customer alfa- numaric code.

View 2 Replies View Related

Browse For Folder / Index Files And Subfolders?

May 12, 2014

I found some code that works well to index a folder and all sub-folders for file names.

The issue is that the folder used is coded in an excel spreadsheet (cell C7) in the below code and whether to look in sub-folders (cell C8 - True or False).

Code:
Sub ListFiles()
iRow = 11
Call ListMyFiles(Range("C7"), Range("C8"))

[Code]....

I have tried to incorporate the browse for folder and select if sub-folders are used, but it isn't working.

View 1 Replies View Related

Build Index From Multiple Files In Folder

Dec 3, 2007

I would like to build an index sheet from multiple sheets in a folder(directory).
Let's say I have a folder with sheetA.xls, sheetB.xls and sheetC.xls. I would like to automatically create an "index" sheet that lists the sheet name and info from cells B2 and cell C3 all on a single row. So my index sheet might look something like this:

sheetA Portland Oregon
sheetB Seattle Washington
sheetC Reno Nevada

View 8 Replies View Related

Lookup Folder From Cell Text Then Save Excel File In This Folder

May 14, 2014

I have alot of project folders on my harddrive.

All in format: I:/12345-costumer-projectname/

The five digits are unique for each project.

I make calculations for these projects using an excel file. In this excel I also type the projectnumber (cell J2)

Now i would like to make a button. When pressed, it checks the projectnumber cell J2, looksup the corresponding folder and saves the excelfile in PDF format in this folder.

I have found macro to find files in folders, but none which do the above.

View 4 Replies View Related

Excel 2003 :: Extract Variable Rows Of Cells From Files In A Folder To Existing File In Folder

Mar 15, 2013

I need a macro in a workbook to look at all the files in the same folder that have "*att*.xls" in the name and determine and copy from the range A15:W515 only the rows that have data in at least columns A, C and D. Each file will vary as to how many rows there will be and there are more than the files with "*att*.xls" in the folder. The data will be on the only worksheet in each file and the worksheet is named "G2WAttendee_xls" the data from all the files need to be copied to the file called "Consolidated webinar reports.xls" (I am using Excel 2003) and to a sheet called "Attendance Data" and added to the end of the last paste.

At the start of the macro the current file "Consolidated webinar report.xls" should be saved to a sub folder of the current directory and have the date saved added to the name. The sub folder is called "Completed reports". The data in the original file on worksheet "Attendance Data" should be deleted.

At the end of the process all the files that have had data copied from them should be moved to the sub folder "Attendance reports consolidated" (This could be done as each file is closed if that is easier).

I have headings in row 1 of the "Attendance Data" worksheet that match the headings in the various files in the folder (which will always be in row 14 of the individual "*att*.xls" files).

The folder with all the files and the "Consolidated webinar report.xls" file is at path "Z:P and S MEvaluationsWebinar series 2012-13TB".

View 9 Replies View Related

For All Workbooks In Folder - Copy Range To Different Workbook - Save To New Folder?

Apr 21, 2014

I have up to 50 workbooks in one folder with data in a specific range. I also have one workbook which includes additional data, including conditional formatting and dropdowns. I need to copy the desired range from the first workbook in the source folder to the second workbook, then save the latter to my destination folder, using the same name as the first. I need to repeat this process for all workbooks in the source folder.

View 2 Replies View Related

VBA Code To Find A Folder Name Within Parent Folder That Contains Defined Text

Jul 23, 2014

I have an Excel VBA Macro for creating/logging drawing numbers. Each drawing belongs to a job number. Each job number has a folder name containing the job number followed by a description (ie 999999 - bracket assembly) for storing drawing pdf's. The job number is only known as a 6 figure number in the drawing creation process BUT for the PDF saving process it is a string value...as my example above

I have to change my process by pre-creating the Job Number folder, then have the macro look for the appropriate folder by searching the parent folder for a sub folder containing the job number (always the first 6 figures).

I want to insert in my macro some code that searches...

The parent folder for a folder containing the job number. The macro value for the parent folder is P:engineeringdrawings (this never changes). the macro value for the job number is iOpenair (it's an entry that is entered as start the macro). Imagine the value for the job number is "999999"...so the search would be for "999999*.*" The code needs to search the parent folder, find the folder name that begins with a six digit number. Capture the complete name of the folder and store that name as a Dim value that I can call up elsewhere in my macro.

View 9 Replies View Related

Change (Browse For Folder) To Automatically Locate Sub Folder

Jul 23, 2012

I am creating a document for work that automatically generates hyperlinks to pdf files in a given sub folder. Currently I have a section of code that opens a window to choose the folder location.

Code:
'Prompt user to select a directory
Do
Problem = False
Set ShellApp = CreateObject("Shell.Application"). _
Browseforfolder(0, "Please choose a folder", 0, "c:\")

On Error Resume Next

[Code] ........

What I actually want is to not have the window open, but excel automatically choose the sub folder location.

The directory looks like this
Z:ClientProjectDRAWINGS-2 RECORD COPIESPDF

The xlsm file is stored in the DRAWINGS folder, and I need it to point to the PDF folder.

View 9 Replies View Related

Image Folder - Save 500 Images In Another Folder?

Jul 18, 2014

I have a list of items in an excel sheet... 500 of them... and there are images for them in an other folder... The problem is those images are in 1000's and I only need those 500 images.. Images are saved as "SKU.jpg eg NS2354.jpg and we have an SKU column in excel as well .. SKU and their images have same name...

Is there any solution to pick up only those 500 images from those thousands of images?

Is it possible to save those 500 images in an other folder?

View 2 Replies View Related

Macro To Locate Folder In A Folder And Save

Apr 13, 2009

looking for some code to save to a destination

destination address is
C:Documents and SettingsstDesktopOJF

now the problem is OJF has folders named 1 to 500

so if cell d5 = 487 it will need to look in the above desination and then open the folder and save it there.

View 10 Replies View Related

Loop Through A Folder And Save In Different Folder

Apr 26, 2014

I would like to create a code that will open all workbooks in folder "A" one at a time and then close the work book after another code is executed. So one workbook will open and while the workbook is open, I will call another code to format the active workbook and then the active workbook will be saved in folder "B" and closed and go to the next workbook in folder "A" to start all over. The folders are saved on the desktop.

View 5 Replies View Related

Locate Folder From Part Of Folder Name

May 23, 2007

if it's possible to use XlDialogOpen to open up a folder that you only have part of the name.

For example, say you have the following folder paths:

C:Main FolderSubfolder1Smith,Billy 2413
C:Main FolderSubfolder1Brown,Charlie Ray 2416
C:Main FolderSubfolder1Bunny,B 3619
C:Main FolderSubfolder1Fudd,E-G 1864

What I'm hoping to do is just look for the 4 digit number on the end finding that folder name and opening it up. The name conventions before the 4-digit serial number are quite random. Sometimes it includes their full first name, other times it's just an initial for the first name and other times there are other characters included in the name. The one thing that is constant is the 4 digit serial number on the end.

how I could get the Open dialog box to pop up and have the chosen folder number open?

View 6 Replies View Related

VBA - Cut File From A Folder And Put Into Another Folder?

Oct 9, 2012

Is there a way I can from vba cut a file from a folder and put in to another folder? And also create a folder? If yes, how can I do this?

Is it better to use dir or scripting.filesystem object?and if there is an advantage to use one over the other.

View 2 Replies View Related

Formulas By Using VLOOKUP, INDEX, MATCH, INDEX&MATCH Separately

Oct 8, 2009

I have this table

.......A.....B.....C....D
1.....I......a.....d.....g

2.....II.....b.....e.....h

3.....III....c.....f......i

As you can see, the number I has a,d,and g, II has b,e,and h, and III has c, f, and i

I want to make formula that if I make the input g it would return I, f would return III, and c would return III, and so on

I want to make four formulas by using VLOOKUP, INDEX, MATCH, INDEX&MATCH separately.

View 9 Replies View Related

Automatic Sorting

May 11, 2007

I have a table which holds scores as well as other data for players. Is it possible to automatically sort a table based on their points score to see who is top of the league?

View 9 Replies View Related

Automatic Backup

Mar 19, 2009

I’m aware of the AutoRecovery, but I’m looking for an Autoback (Auto save) itself. Is there one in Excel? ( I'm using 2003)

View 2 Replies View Related

Automatic Filling

Feb 14, 2010

I’m not even sure I can do this- but- I want to be able to have a few columns, 3 of them I want to be Item #, Item, Cost.

Is there a way to put the Item # (Number) in, then have the other 2 automatically come up?

View 9 Replies View Related

Automatic Averages

Jul 13, 2007

I am inputing each day the total amount of sales. I am manually doing the averages for past 12 weeks on Monday sheet. I would like when I enter the amount for that week that the cells B84, C84, E84, F84 are automatically updated for the past 12 weeks. I have tried a few different approaches but I keep getting #ref or circular reference

View 10 Replies View Related

Automatic Numbering In VBA Etc

Dec 18, 2007

I'm trying to create a bug reporting tool (with a bunch of text boxes and drop down lists) and have the following problems...

1. I would like to get a unique number inserted automatically in a textbox (it's supposed to be the bugs id (1001). How do I do this? And when I click OK after inserting all info I want this number to become +1 so the next defect can be added immediately.

2. Why are my drop down lists empty as default and their values only appear if I enter a value. Why aren't the lists displayed when i just click on them?

3. I have a multipel row text box. How do I get the text to jump to the next row automatically instead of using crtl + enter?

View 12 Replies View Related

Create Automatic Sum

Mar 10, 2008

supposing i have column A which is vehicle number
and column b is fuel quantity

how to make in c automatic sum by vehicle number as i may have many entried in column A

example

vehno1 20
vehno1 21
vehno2 25.5
vehno2 40
vehno3 50

View 11 Replies View Related

Automatic Concatenate

Jul 9, 2009

A1 contains "=2+3+4" which shows 8 as a result. I would like to add a word "Lbs" with it so it would display "8 Lbs" on the same cell. If I entered =1+2+3 on cell A6000, it should give me "6 Lbs".

View 7 Replies View Related

How To Hide A Row Automatic

Dec 7, 2011

I have a list of names in A:A how can I hide the rows that will start with the name (John)

A B
1 Tina 12345
2 Tina 5468
3 John 5566
4 Peter 444885
5 Tina 44653

so that way all I see is

A
1 Tina
2 Tina
5 Tina

View 3 Replies View Related

Automatic Input A Value?

Dec 19, 2011

formula for input values.I need to put in table_1 every to each fourth row each first row from table_2.

For example:

in table_1 A1 input A1 from table_2
in table_1 A5 input A2 from table_2
in table_1 A9 input A3 from table_2
in table_1 A13 input A4 from table_2
And so on.

View 6 Replies View Related

How To Add Automatic Next Cell Value

Apr 5, 2012

I have data in table-1, in current shape

Table-1
B C D E F
Adda Zakeera 1239987801310037
Ahmed Pur East 5559998803310042
Ahmed Pur East-2 8888874805510041
Arifwala 3545555805510045
Bahawalnagar 3336666802610046
Bahawalnagar-2 1257777806610038
Bahawalpur 2206666804410044
Bhakkar 2223333805610042

I want to arrange my data like Table-2. I have tried vlookup() formula, it worked but every time I puldown the formula I have to manually increase cell # (e.g) In the row of Adda Zakeera, I have 4 values. When I use vlookup() and drag it downward the values should be shown as in Table-2 under Adda Zakeera.

=VLOOKUP($D$2, Sheet1!$B$4:$AF$90,2,0)

Table-2
D E F G H I J
Ahmed Pur EastAhmed Pur East-2 Adda ZakeeraBahawalnagarBahawalnagar-2BahawalpurBahawalpur-2
555 888 123 333 12548 2201#N/A
555 888 9987 333 77777 66666#N/A

View 1 Replies View Related

How To Get Automatic Date By VBA

Jun 24, 2014

I'm working on Excel sheet which cover period of time, I specify the period on the top, (cell E4= FROM : cell G4= TO) then I have to fill column (B) with the days name, and fill column (C) with the starting date from beginning till the end date.

i.e.:

E4= 24/06/2014 G4= 23/07/2014
B9= Tuesday C9= 24/06/2014
B10= Wednesday C10= 25/06/2014

I'm getting this work by a VBA code, and if it's possible to have the days names in Arabic language, and set the print area from (A1) till the (next) row after the last day in the column i.e cell (G39)

View 6 Replies View Related

Automatic Printing To A PDF

Dec 8, 2004

how to print automatically from Excel to a PDF file. After a couple of days of searching and tweaking, I've got what I think is a fairly good solution for automating your printing of worksheets to PDF files.

This solution requires the use of PDF995. This is a free utility available at www.PDF995.com. This is a print driver that allows you to print to a PDF file. The file is compatible with Adobe and can be read with the Adobe reader like any other PDF. The free version does pop-up some advertising with each print, but the automation works with around the pop-ups. I believe the full license version is about $10 and doesn't produce the pop-ups.

The challenge in automating a PDF process is that the PDF driver will prompt the user for a filename. This is ok if you are printing just one sheet, but if you need to automate the production of several PDFs, you need to be able to specify the name of the file in the code. The subroutine SheetToPDF presented below allows you to specify a single worksheet and the full filename for the PDF. I've included all the code and external declarations needed. The two subs at the bottom give examples of how to call SheetToPDF with the passed parameters.

'Needed to Read INI file settings
Declare Function GetPrivateProfileString Lib "kernel32" Alias _
"GetPrivateProfileStringA" (ByVal lpApplicationName As String, _
ByVal lpKeyName As Any, ByVal lpDefault As String, _
ByVal lpReturnedString As String, ByVal nSize As Long, _
ByVal lpFileName As String) As Long

'Needed to Write INI file settings
Declare Function WritePrivateProfileString Lib "kernel32" Alias _
"WritePrivateProfileStringA" (ByVal lpApplicationName As String, _
ByVal lpKeyName As Any, ByVal lpString As Any, _...........................

View 9 Replies View Related

Automatic Row Coloring

Nov 9, 2006

Is it possible to set a formula or something up so that if a row contains certain information, then the row will turn a certain color? For instance, if cell B2 contain the number "3" and cell B5 contains the number "5", then row B will turn yellow. Then if cell C2 contains the number "4" and cell C5 contains the number "7", row C will turn blue. This is just an example. In this example, I'd like a formula all the way down column's 2 and 5, but only the rows would change color (not columns) according to their information.

View 9 Replies View Related

Automatic Tab Naming

Feb 8, 2007

regarding this article:
[url]

Is there a way to name a tab with some combination of 2 or more cells?

A1="first"
B1="last"

so, the tab name would be "firstlast".

also, can a space be inserted?...i.e. A1&" "&B2

View 9 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved