Extracting File Information

Jun 5, 2008

I have a macro that lists all documents in a selected folder and am looking to add the author/owner, created on date, last saved date as shown in the document properties.

The code I'm using is: ....

View 9 Replies


ADVERTISEMENT

Extracting Data From File In Directory And Extracting Filename

Mar 20, 2014

I have a directory folder with an active workbook and another workbook id like to copy data from. The Following macro opens up a file in the same directory, copies some data and pastes it in the active workbook. However with this code I have to specify the filename, 'Data.xlsm' in the example code. I would like it to copy data from the only other workbook in the current directory WITHOUT having to specify the name in the code, so just opening it up no matter what filename it has.

In addition I would like to extract the filename from the workbook im copying data from and paste it into the activewoorkbook in sheet 1 Cell A1. I had a look at getopenfilename function but cant seem to make it work for my purpose.

View 4 Replies View Related

Extracting Information From Cells?

Apr 23, 2014

I'm trying to extract information from a cell that I cut and paste from another source:

09/02/2014-12/11/2014 Lecture Tuesday, Thursday 08:00AM - 09:15AM, Nichols Engineering Hall, Room 441

Each cell is different in that it may be a different day or time:

09/02/2014-12/11/2014 Lecture Tuesday, Thursday 08:00AM - 09:15AM, Nichols Engineering Hall, Room 434

I want to make a formula that will extract the pertinent information (day of the week and time), and store it to another 2 cells, making a list as it "extracts":

Day
Time

Tuesday
8:00 - 9:15

Thursday
8:00 - 9:15

View 8 Replies View Related

Extracting Information From Cell

Jun 17, 2008

I receive a workbook on a monthly basis and it arrives in csv format. I need to format it and split it into several pages prior to sending to managers. I'm comfortable with the vba for formatting and splitting it into several pages but I have a problem with some cells that always have data in them in the same (incorrect) fashion.

how to go about fixing these cells and then I can get on with writing that into the macro.

Currently looks like:

A || B || C
No requested || No Supplied || Percentage
4 || 4100%
12 || 875%
6 || 350%

Should look like:

A || B || C
No requested || No Supplied || Percentage
4 || 4 || 100%
12 || 8 || 75%
6 || 3 || 50%

I was thinking of some kind of Left() formula to extract the leftmost character and place it into it's new cell BUT realise that sometimes I might need to extract 2 (or perhaps even more) characters.

View 14 Replies View Related

Extracting Information From A Cell

May 7, 2009

I'm trying to extract information from one specific cell, and place it into another. This other thread kind of does what I'm looking for. I wish to extract from the following; "20/04/2009 5:42:51 AM". Placing the date in one cell, and the time in another. All spacing within the quotation marks is respective of the cell. Obviously dates and times would vary.

View 4 Replies View Related

Extracting Certain Information From Cells

Jan 31, 2006

I am trying to extract only partial information from a cell that contains
mutliple entries without seperator. Ie I want to get 3rd reference from
cell containing abcde(I want to extract onto another sheet the "c" and only
the "c")

View 9 Replies View Related

Extracting Information From Email Receipt

Apr 29, 2014

I'm looking to find a way to extract an email address an a reference number from an email receipt that i have extracted to excel. The problem is when I paste the information its pastes onto multiple rows and not a single row.

I'm using this formula to extract the email address and can do something else to get the ref number out however the results are on multiple lines which is not good to me.

[Code] ......

I have attached a document to show you how the data extractS on (EXAMPLE TAB) The information I want to extract is the stuff in Red. I then want the results to look like the Results Tab in the example.

Example.csv‎

View 3 Replies View Related

Extracting And Comparing Information From Pivot Table?

Jan 14, 2014

I have some data that I have created a report from. However it doesn't show a "true" picture for the stat we want. I have a pivot table set up with data showing the hours worked for an individual. What I am wanting to do would be to cross reference the data but not sure how to compare data. I have provided some make shift data to see if it is even feasible. The end goal is to get a true picture of P.P.H The data we are able to get is in a horrible format. I would eventually like to automate this in VBA but will work on the later. I thought about doing a vlookup but the is no real matching data for all employees. Some of the names are wrong in one system and there is no matching emp ID.

View 3 Replies View Related

Extracting Information (post Codes From Whole Address)

Jun 16, 2009

I am not sure if this is possible but I am trying to extract information from a spreadsheet, the problem is that i need only the postcode but this is in a line with the rest of the address as follows:

123 street, town, AB1 2CD

Is this possible as i need to do this for 1000's so doing it individually will take forever!

View 10 Replies View Related

Extracting Information Within A Merged/combined Cell

Nov 4, 2009

I am doing an export of info from one system and running an excel spreadsheet to manipulate the data. The problem is..That the exported data sometimes will export info into combined cells. Look at attachment

This is what I need...

I need the ability to search all the info on the POC tab and pull it into the info tab, by searching on a system and returning the POC info..

I have tried the vslookup formula and it will return the first row not the second row which is where the info is that I need (shown Highlighted)
=VLOOKUP(A4,POC!A2:b50,2,FALSE)

View 14 Replies View Related

Extracting Data: Extract Information From A Given Set Of Cells

Dec 4, 2009

I am trying to write a formula which will extract information from a given set of cells. The information format is

XXXX-YYYYY-ZZZZ

What I need to do is pull out the information which precedes the second. so in the above the answer would be XXXX-YYYY. I was thinking of using a mid or left, right formula till I discovered that the # of characters for X, Y and Z can be any length ie they could be

X-YYYY-ZZZZ
XXXX-Y-
XX-YYYY-ZZZZZ

So the formula needs to find the second dash (-) and extract information prior to it.

View 2 Replies View Related

Automatically Extracting Information From A Cell In Different Spreadsheet

Aug 10, 2012

I use a spreadsheet (FY-2012) to track approx 700 work requests. I enter the work request number (name of the spreadsheet) in column A, which is hyperlinked to the actual work request spreadsheet. I would like to automatically fill in this cell with the information entered in cell J42 of the work request entered in column A. Cell A5 of the tracker "FY-2012" indicates Work Request "BB-12003". Cell D5 of the tracker "FY-2012" indicates the completion date. I would like to extract the completion date entered in cell "J42" of Work Request "BB-12003" and have it automatically fill in Cell D5 of the tracker "FY-2012".

View 1 Replies View Related

Extracting Store Locator Information From Websites

Feb 3, 2010

tools to extract store locator information from a company's website into excel?

For example: [url]

I am under an impression to loop the extracting process with all known US zipcodes and later remove duplicates. If looping is the way then how to pass on the zipcode to the store locator?

View 9 Replies View Related

Extracting Specific Information From Text String To Conform To Format To Upload Into QB

Mar 21, 2014

I have a string of information in an Excel download from PayPal that I need to upload into QB; but, the information needs to be in a different format. The string from the download is:

Property Address - 1116 South PaxonBorrower " Testa and Son Contractors,LLCLoan # - 1402088Acct Executive " Brandon Tully

But, I need it to be:

1402040;TPAPR;141 North Clinton Street, East Orange, NJ 07017;Leslie P Carter

Is there a formula that I can use to extract specific information from the original string into columns so I can then concatenate the columns into the information I need to upload? Or is there a better way to do this? The Property Address and Borrower Name are not static sizes so I can't use a formula that counts spaces.

View 3 Replies View Related

Excel 2010 :: Extracting Information From Multiple Form Control Dropdown Buttons

Aug 23, 2013

My problem is I cannot copy from a Form Control drop down box, and I need to do this for ~10 drop down boxes in about 200 xls files. The files follow a template so the drop down button Inputs are uniform. Here is some more detail:

I’m building an Access Database so that our data (currently in many, many Excel Spreadsheets) can be efficiently queried. The old system was that when asset data was collected, the data would be entered into an Excel spreadsheet, using a Template. So for example:

Project A1234

Name
Main Street Pipe
High Street Pipe

Ref No.
12345
12346

Installation date
22/08/13
19/07/12

X Coordinate
55667
99212

Y Coordinate
77889
12364

We have hundreds of these files, but I managed to get all the files in one folder and Paste and Transpose the data from the relevant Cell Ranges in each file (using a VB sub) into ONE summary sheet. Success; or so I thought.

Unfortunately for one generation of the template (people changed them slightly every year), the template had people enter information into Drop Down Menus. Not a problem when they’re associated with a cell, but these were free floating Form Controls.. so you can’t actually click and copy from them, or call them in VB as you would a specific cell.. afaik.

So my issue is how can I extract the data from those Form Buttons? I’ll try and provide as much info as I can:

Firstly I tried to find some sort of identifier for each Form Button. The dropdowns are called Combo Boxes, (Developer tab > Insert > Combo Box (Form Control) ), and when you select them (by right clicking) and hit the View Code button in Developer Tab > Controls the following shows up in VB.

Sub DropDown44_Change()

End Sub

I’m guessing that the number is related to the button so that’s one useful thing, an identifier of sorts. There’s no actual code there though really from what I can see.. My problem is I have no idea how to extract from DropDown44!

The range of values in the drop down comes from a separate sheet where there’s just a list of the values. There aren’t any cells linked to the drop downs though. If I enter a cell in (Right Click) Format Control > Cell link: then it prints the number (e.g. 4) of the value in the range. So if the drop down options are “Monday”, “Tuesday”, “Wednesday”, “Thursday” and “Thursday” is selected, the linked cell says: “4”.

They didn’t link a cell, then I could call that cell in a VB sub and the job would be done. Unfortunately they didn’t, so I tried Recording a Macro and selecting the drop down form control.. That didn’t really work, except if I right clicked it, I got some more info from the macro VB:

ActiveSheet.Shapes.Range(Array("Drop Down 19")).Select

So is my drop down an Array? My understanding of an Array is that it’s a list of arguments.. all I get there is the name of the button. I am not experienced in VB so this is as far as I’ve got. Perhaps I can get a sub to select the button using the above line, but I need the info from it, i.e. which value is currently selected in the Drop Down.

(Using Excel 2010 but the .xls files are from ~2005)

View 1 Replies View Related

Creating A Yearly Database File Using Information In Daily File

Feb 7, 2008

I would like to automatically update a 'yearly' database file with info from a file that is changed on a daily basis.

The daily file that i use has info like date, truck number, delivery stops, weight.

the database file has the similar headings.

at the end of each day this daily file is saved. I would like to have the info that is entered into the daily file automatically plugged into the yearly database file into the next available group of cells with respect to the salesperson.

This is kind of a generalization but i'm hoping to just get pointed in the right direction. If something like this involves vba then it will be beyond my ability and i'll have to do it manually, which is fine

View 9 Replies View Related

Extracting Information From A Workbook And Saving Into A Separate Workbook

Feb 21, 2014

i have a workbook blank template for my colleagues to fill in, they fill in this blank template and save it under the serial number of the item they are creating. However a lot of errors exist when they input the serial number inside the workbook where the serial number is a duplicate of a former serial number.

Anyhow i was wondering is there any way when they input the serial number into the worksheet that i could get it to save in a separate workbook and then have conditional formatting to check those serial numbers in the workbook to see if they match?

View 4 Replies View Related

Extracting The Extension Of A File

Dec 7, 2009

I have a list of file names in an excel sheet. The requirement is to find the extension of each file in the next column. For example
file name 123.456.789.jpg
extension jpg

file name 123.abcd.789.xlam
extension xlam

is there a worksheet function equal to InStrRev in vba?

View 6 Replies View Related

Extracting Data From Different File Using VBA

Jan 28, 2010

i have file A3R-(345).xls, B1Z-(235).xls etc files inside folder called MyFolder.

another master file Master.xls which will extract data from files inside folder MyFolder.

what i need is to put values from file names inside Master.xls. It will loop through all files inside that folder and extract the numbers between ().
So column A in Master file will have:
345
235
..

How to do this using VBA? (only Master File should have the VBA code)

View 9 Replies View Related

Extracting Value From External File

Jan 29, 2004

I have been trying something like this before, i could not get it fixed. Let's give it another go:

I have a number of files in a specific folder. I need to extract values from cell Sheet1!G42 out of [b]every file[b] in this folder. Problem that occurs, is that I do not know how many files are in this folder, neighter do I know what the filenames are. I need some magic to perform extraction of the desired values.

As for the files in the specified folder I have this VBA code, that suits my needs just fine:

Private Sub Workbook_Open()
Dim fileList() As String
Dim fName As String
Dim fPath As String
Dim I As Integer

This code will display all found files, including their path in column AD. (as plain text)
[b]Question that remains:[b] how am I to fix a formula In (column AE) that will extract the value found in Sheet1!G42 of each file? This must be very easy, but i cant get this to work.

View 9 Replies View Related

Extracting Data From A Txt File

Jul 31, 2006

I have a txt file which contains a large amount of data. I need to write some code to extract the data and convert it into a number of columns...

So, the txt file contains around 200 x the following: ...

View 4 Replies View Related

Extracting Month And Year From File?

Sep 12, 2013

I have the Month and Year in the name of the workbook for eg Sales July 2013.xlsm

I would like a macro to extraxt the month and year from the file name and put this in shewet2 in cell E1

View 4 Replies View Related

Extracting Data From File Names

Oct 4, 2013

We use a bunch of equipment at work that spits out a pdf file that is going to consist the results of a particular test.

Those files are named in a unique format. It looks a bit like this:-

EH_CM42_EB0C8105G00_CPS41D_F30C3105E00_2013_09_10_08_39_25.pdf

Out of this file name it consist of the serial number (F30C3105E00) of the equipment which is the first set off italics/bold and time(08_39) and date (2013_09_10) this test was performed.

So My question is there a way or a vbs macro or anything that will be extract these three different information and save them in three different cells on the spreadsheet. BTW Also I should mention that these files are going to be stored on a network drive

PS- The only way I have figured out to do this is to create a .bat file that runs the dir command and saves it to a text file.

View 5 Replies View Related

Extracting Text Fields From A Txt File

Jan 24, 2010

I have a file from PubMed with a bunch of citations in it, which often go above 10,000. There are fields that mean certain things and I would like to be able to import the text file into Excel and parse certain fields into columns.

The text file looks like this:

PMID- 19782657
OWN - NLM
STAT- In-Process
DA - 20091109
IS - 1872-6240 (Electronic)
VI - 1303 .......

View 9 Replies View Related

Extracting Sub-folder From File String

Apr 13, 2007

I've got a host of files within a host of directories, e.g:

c:ContractsJim BobJim Bob Site.xls
c:ContractsJane JonesJane Jones Place.xls
c:ContractsJeremy HillsHills House Lvl 1.xls

I'm working in VBA to try to extract the site name from the file string. Unfortunately there is no other reliable location where I can find an accurate name of the site, so it needs to be taken from the second subdirectory. So I'm using the following code to get the file location:

Sub FilePicker(fileToOpen As String)
ChDrive "C:"
ChDir "C:Contracts"
fileToOpen = Application. GetOpenFilename(FileFilter:="PPM Files (*.xls),_
*.xls", Title:="Select a PPM Scope File", MultiSelect:=False)
End Sub

This returns a string along the lines of "c:ContractsJeremy HillsHills House Lvl 1.xls". From this string, I need to isolate the string "Jeremy Hills".

View 3 Replies View Related

Extracting File Names Into A Master Worksheet

May 18, 2006

As above, how do i retrieve excel file names in a specific folder and place the names into a specific column?

Say there are 2 files named UAT1.xls and UAT2.xls and i have a master file to put all this data in.

View 5 Replies View Related

Adding Date Modified To PDF File Extracting Macro

Jul 3, 2014

Below Macro which I am using to extract .PDF files. Now, I also want to see the Date moified while extracting the .PDF files. Hence, adding date modified to this macro.

Sub get_pdf_name()
Dim FR As Long, sh As String, FPath As String, FName As String
sh = Sheets("Sheet2").Name
FR = Sheets(sh).Range("A" & Rows.Count).End(xlUp).Row + 1

[Code] .....

View 1 Replies View Related

Get The Information Of The File Comment.

Oct 16, 2007

I need a macro to get the info written in the Comment field (In the file properties field). Attached is a pic to explain a little better.

View 2 Replies View Related

Extracting / Importing Tables From Several Word Files To Excel File

Jul 17, 2013

I have several word Files which has standard letter format and contains some tables which needs to be extracted / imported to Excel sheet

The File name is "employee name" which also needs to be extracted , if possible in same excel file.

Attached is the sample of word file. There are 3 tables which needs to be extracted

I have several files and I want to avoid doing it manually.

View 2 Replies View Related

Transferring Information From A Seperate File.

Dec 15, 2009

I'll get straight to the point. I have a file with an (.ASC) extension that has information that I need in my workbook. The first problem is that in the .ASC file ...
a) there are french characters that don't translate into excel when I open it up
b) the date format is dd/mm/yy and excel doesn't seem to like this and only converts it as mm/dd/yy for those it can and the rest it leaves as text.

When I manual open the file problem b) disappears but if I use a macro problem b) pops up.

Right now I'm using this code to open the file

View 12 Replies View Related







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