Macro To Pull Out Data From Word File
Mar 4, 2007
I need to pull out data from a word file(can open in excel 2003) which has several different rows with data in a certain format each time.
I want to take the data from sheet #1 in the format
________
where the underline always equals an 8 digit number that directly follows that unique text(no spaces)
and pull out all the 8 digit numbers from the sheet and put them into sheet #2 that my macro creates.
Also the additional rub is that I need to pull only the unique 8 digit numbers as there will be several repeats.
View 9 Replies
ADVERTISEMENT
Nov 5, 2009
i need a macro that pull specific data from word to excel.
View 9 Replies
View Related
Jun 30, 2014
I would like to automate a word document that I have to fill out manually based on the info in a spreadsheet. I would like to be able to select a row that the data comes from as well. I have attached the spreadsheet and word document to this thread.
Attached Files:
localLappy.xlsx
Repair Summary.docx
View 2 Replies
View Related
Dec 8, 2008
Basically what I want to do is pull data from another file and have it copy it down about 10 lines onto another file. With a seperate sheet for each vehicle. For example:
File 1: Has 2 columns with data
Vehicle Number 1000 Vehicle Type Ford
1001 Chevy
1002 Dodge
File 2: Has a vehicle log sheet, in which i want it to take the data above and copy it down x amount of lines.
Vehicle sheet | Date issued | Hours used
Vehicle Number| (data from file one here) | Vehicle Type (data from other column in file one here)
And have it copy itself down from like A1 to whatever.
These also have to be on seperate sheets within the workspace, and each "tab" be named after the vehicle number,
View 9 Replies
View Related
Jun 29, 2007
What I am looking to do is create a Dos.bat file to be run in the middle of the night that opens Excel. From there I will need Excel to open a .txt file from a specific folder, format the file, then re-save as an .xls file.
Each of the .txt files in the specific folder is named like the following:
BCKLOG_062807
BCKLOG_062707
and a new file is being generated to the folder each night (with the new date in the filename).
Is there a way I can use the macro to loop through only the new files being placed in the folder, since the old files will already have their .xls counterpart saved ???
If this is not a clear enough description, please let me know and I will attempt to explain better.
View 3 Replies
View Related
Jun 12, 2014
I pull a report every month which has the same name - at the beginning - (i.e. Monthly File Report_06012014.xls but the date is different every month; where we keep a copy of them every month.
So I need a vba to pull the data from that specific file - since I'll have more files open, but wouldn't keep the date since it will be different every month - is there an & that goes at the end or somehting: Monthly File Report &....xlsm?!
View 4 Replies
View Related
Dec 25, 2009
i need away that will give me the way to pull data from specified place
in txt file to A1 cell in excel sheet3
View 9 Replies
View Related
Jun 15, 2006
I am trying to make Excel pull data out of a closed file based on a date range. The closed file is a log where people input data and enter the day they are doing it. I need to pull this data in my file and make it print into my worksheets so I can pass a report on to others with only the data they request from the log.
The range would be for 7 days and would have to be able to choose a few columns off this report.
View 9 Replies
View Related
Sep 9, 2013
I have a list of asset data (columns A:Z and over 20,000 rows).
I want a macro to find the word TAG in column F then cut off the entire row for all that meet the criteria and paste in another sheet. So I can see both sheets.
View 1 Replies
View Related
Feb 14, 2013
I'm trying to streamline some processes at work and have encountered a bit of an issue.
I have a source file containing a grid of data (9 columns) with a series of dates they relate to down the left side e.g. 13-Feb-2013. This data covers a whole year.
What I want to do is pull through data relating to a discrete month into a grid in a seperate workbook.
I have a feeling that date ranges and possibly some kind of lookup might be useful but am struggling to see how to pull it all together.
View 3 Replies
View Related
Aug 3, 2007
I want to use an excel formula to find the Nth instance of a string in any string. I realize that I could right a UDF for this but find that to be a poor solution.
View 2 Replies
View Related
Sep 9, 2007
Attached is a sample workbook where in cell 'C1' I want to extract from A1 just the supplier name and leave the supplier number behind. As the string length of the supplier changes,I cant use the left function that I would normally doI racked my brains on this and I'm sure I've seen it done before cant remember where.The string length of each cell is 21 digits with padded spaces to the right of the cell. If it helps the number of spaces in between the supplier and number changes each time.
View 9 Replies
View Related
Oct 18, 2004
I want to create a macro that will automatically pull data from the web by simply pressing a macro button. I assume that this would be an easy task if the data is from a website with a specific URL such as [URL]
However, there are times when someone must enter data into the web to pull a specific report that does not have a unique URL. Is there anyway to create data fields in excel that would allow an individual to type in specific information (name, report period, etc.), and then press a macro button that would go out to the web, enter the information automatically, and export it as an excel file. I realize that this is probably substatially more difficult than my first question.
View 9 Replies
View Related
Sep 23, 2009
The following sub will look in the file ("FY09 SOF"), in column "A", search for the strings that begin with "2109", "3009", or ends in "-1", and copy the entire row. It will then paste these in the file ("FY09 PR Log Blank").
I also need it to look in column "C" in the ("FY09 SOF") file and pull the entire row if it finds the word "Payroll".
For some reason it will pull everything needed except the "Payroll" rows. What am I doing wrong?
Sub get_data()
Dim wb As Workbook, wbDest As Workbook
Dim ws As Worksheet, wsDest As Worksheet
Dim lngCalc As Long
Dim FoundCells As Range
Dim FoundCell As Range
Set wb = Workbooks("FY09 SOF")
Set wbDest = Workbooks("FY09 PR Log Blank")
Set wsDest = wbDest.Worksheets("Paste all here, then sort")
With Application
.ScreenUpdating = False..........................
View 9 Replies
View Related
Nov 29, 2011
I Have a workbook which consists of 50 worksheets and i use Edit query window to pull the data from oracle on all these sheets. We run this once in a month. I have to go to every sheet and execute this code which is time consuming and i have to change the date value everytime. macro that can execute this process at once and we should give the date only once.I use OLEDB driver to connect to oracle.
Attached is the Command line code.
Select protocol, patient, Page, (date_indexed) Indexed,(first_entry_date) FirstPass,( second_entry_date) SecondPass,trim( modified_date) modified, trim(CRF_ERROR_COMMENT) Comments from JJA38377_96_crf where date_indexed>='1-May-11' and date_indexed
View 2 Replies
View Related
May 16, 2004
I need to pull a specific word from a string of text in a cell and have that word shown in an adjacant cell. For example A1 will contain the text "Smith Sun Alliance Pension Fund" I need B2 to show "Pension". I cannot use any filtering or text to columns as the word Pension can be anywhere within the text in A1 and I have thousands of entries. So I need a function.
View 9 Replies
View Related
Jul 10, 2014
I have a bunch of different worksheets that I need to pull a single cell from (lets say A1). On my summary sheet (first sheet) I have a list of all the worksheet names. Is there a macro that can pull data by referencing their names in the summary sheet.
Example: Column A has a list of all the worksheet names in my workbook. I want to extract cell A1 from each worksheet based off the name in Column A and be put into Column B. Otherwise, you would have to go through each tab and link it (I am working with 100+ tabs).
Column A Column B
PIN
CID
SIP
View 9 Replies
View Related
Jul 6, 2014
I'm trying to compile a spread sheet that will pull the play by play logs from the NHL website.
The logs are listed in order.
Game 1 is [URL]... Game 2 is [URL]... etc etc
I am trying to put them all on one spreadsheet. (or to do it in batches of 100, or 50 or whatever the size of the file allows)
View 1 Replies
View Related
Dec 13, 2013
What I want to do is pull data from columns A,B,C,D in 3 other closed workbooks (export.csv, export1.csv, & export2.csv) to my main workbook (Thunder.xlsm)and append that data in columns A-D on my main workbook. In addition I created a list of 10 names (but need to expand or delete from this list as personnel change) in Column O that I would like to filter the data in A-D. The names in the list must find the data I want to keep in column D, the rest I want to delete (not the entire row, just A-D for that particular row that does not match the criteria in column O, and shift those cells up).
I've attached a sample spreadsheet that will clarify what I am asking. I'm preferably asking for 2 macro's, one for the pull of data, and the other for the filtering.
Column A
Column B
Column C
Column D
[Code]....
View 1 Replies
View Related
May 2, 2008
I need a macro which collects data from two files and dumps it into a separate spreadsheet. I need it to prompt the user to select the two files, since the file names may change.
Once a user selects the files, the macro simply opens them, grabs the data (the data sits on a single sheet in each file) and pastes it into a file, and closes the 2 data files.
The Data sits in A7:N20 on both files.
View 14 Replies
View Related
Jul 11, 2014
Attached is a master metrics deck, where data needs to be refreshed every week, from two different workbooks.
The catch is, the two parent workbooks would be new versions every week (data would be same format, and style within), but file name would change each week, for eg: for 1st workbook, 'XXX_Weekly_Week24.xlsx' to 'XXX_Weekly_Week25.xlsx' and so on.
for 2nd workbook, 'YYY_Weekly_Week24.xlsx' to 'YYY_Weekly_Week25.xlsx' and so on.
In the master metrics deck, a consolidated vew of some of data from workbook 1 and workbook 2 is presented for each week.
This master file would remain same, and only be refreshed each week (preferably with a button on its sheet "REFRESH!!")
Next, need to manually change cells C2:G2 each week to reflect week titles correctly.
For e.g.: week6 would show week 1 through week 5, but during week7, it needs to show week 2 to week 6. Only last five weeks of data any given time.
The first datarows of each set are conditionally formatted (they are compared with other rows in the set and need to reflect danger values, good values etc) (I have done that already).
View 1 Replies
View Related
Apr 24, 2012
I have data in a single Excel worksheet, single tab, columns A:C.
I want to move that data into Word.
The format in Word:
Contents of A1
Contents of B1
Contents of C1
Blank Line
Contents of A2
Contents of B2
Contents of C2
Blank Line
etc, etc, etc, etc....for all rows in Excel.
View 9 Replies
View Related
Jun 24, 2006
I have a base excel file for summarizing some data, the problem is that the data comes from a different excel spreadsheet. What I want to do is make a function that pulls the data from another spreadsheet into my base file. It would be easy if it were just one excel sheet, but this job would require where the data is pulled from a data file which has many modified versions.
Can anyone tell me how to do this? The files with the data will be structured the exact same but with different data entered in. I just want a button so I can click the file I want the data from and have it show up on my summarizing base file.
View 9 Replies
View Related
Dec 18, 2012
I have a template file for ordering trafolyte and steel plates. I have added macros to this template file. The existing macros do the following (shortly described):
Macro 1: clears order
Macro 2: update order date + send a read only file to the supplier of plates + save a read only copy of the file into one of three folders acc to info in one of the cells.
It's the Macro 2 I want to edit.
I want to add a "function" which copy a selection of data.column A to N from row 12 to 548 but only the rows where there is a value in column A.
Row 1 to 11 includes standard order info and Macro buttons.
Row 11 includes the heading for order data.
For everytime someone click on the Macro 2 button in the template file, I want the selection to be paste into the first "available" row in a "Total list" file.
The "Total list" file may have to be open (or a function to open, paste selection and then close the "Total list" file may be added)
File and Folder info:
To simplify suggestions, the following file and path info can be used (I can change to the correct later):
Template file name: template_order.xlsm
Template file location: \servershared emplate
Total list file name: total_list.xlsx
Total list file location: \servershared otal
Selection info:
The template file exists of a "general order info area" A1:N10
The column heading for order data is located at A11:N11
The selection to be copied is A12:N550 - But only rows where column A includes data (not empty).
(If the spesific order consists of 14 plates than there will be item no 1-14 in column A and I then I want to copy A12:N25 (row 25 will be item 14).
When I try to use record macro it looks like it only records what's happening in the template file - It doesn't record the pasting in the total list.
View 1 Replies
View Related
Feb 21, 2014
I need to set up an automated process to open an existing .xls file, extract the data from specific cells located in that file and insert it into a totally different file that I have preformatted to accept this data.
Example scenario:
If I have "that_file.xls" and it is unopened, but it contains data in cells "A2 thru F2" that I need to extract... then I have "this_file.xls" , which is open, and set up with all my calculation cells and a specific layout (lets say it has cells "D8, E9, F10, G11, H12, and I13"). I want to be able to add a button to "this_file.xls" to run a macro that would open a file search window where I can select "that_file.xls", and then it will automatically extract the data from "that_file.xls" into "this_file.xls" as follows:
A2 to D8
B2 to E9
C2 to F10
D2 to G11
E2 to H12
F2 to I13
View 4 Replies
View Related
Jan 25, 2010
Currently I am going back and forth between an excel document and a word document cutting and pasting values from the excel spreadsheet into tables in word. The task is a regular occurance therefore I wish to create a Macro that can automate this procedure. Both the excel and word documents are fixed templates therefore once a Macro is created it can be applied to all future work of similar nature.
Each table in the word document contains 6 rows of values in a single column. The excel data is arranged in a table that is 6 rows by x number of columns (how ever many sets of values there are for the particular job) therefore x determines how many tables must exist in the word document. I move between the excel and word document cutting and pasting each column into each table. This is not so time consuming if x=10 however on occasion x=100+ and it does take time.
View 8 Replies
View Related
Jun 20, 2013
Basically I have manually generated word documents based on a spreadsheet. Now, I need to countercheck the contents of the word documents with another spreadsheet i.e. make sure the courses in the word document for a particular student is same as that reflected on the spread sheet. Is it possible to write a macro for this? I'm a beginner and I'm waaay out of my depth. I have attached sample documents and spreadsheets.
The link to the documents are as follows: Macro to check data from Word documents against an excel spread sheet
View 2 Replies
View Related
May 8, 2014
I need in XL for a macro to run, open my word file, copy the entire thing and then paste it back in XL.
So leaving it general, Word.doc and Excel.xlsx
It's all because my company's POS system will only export to Word but everything we do is in XL.
View 6 Replies
View Related
Apr 26, 2013
I would Need a macro which would Search a Keyword in the excel sheet and copies and pates the data in Cell "A2". for Example "Market" and then after the search it copies 12 rows upwards and 10 columns from the Cell that the word "Market" is placed. And then it copies 12 rows downwards and 10 columns from the Cell that the word "Market" is placed.
I have tried recording the same but it does not work if the Word "Market" is placed in different cell value.
View 2 Replies
View Related
Jan 28, 2011
I have a macro set up in Excel that formats and deletes rows matching a citeria. Once the macro runs I then manually copy the data across into Word. I would like to automate this.
I would like the macro to copy over any cells containing data iinto a new word document. I also have standard text that I would like to include at the beginning and end of the word document. With the excel data being placed in the centre.
I have searched the web and tried a couple of macros with no luck. All the macros state "' requires a reference to the Word Object library: ' in the VBE select Tools, References and check the Microsoft Word X.X object library"
I am unsure how to reference this - but I have checked and found that the object library ticked is Microsoft Word 11.0 Object Library.
View 1 Replies
View Related