Import Specific Cells

Nov 30, 2007

I need to create a file on another computer system that I can import into specific cells on specific sheets (to fill out a "form" required by a vendor). What instructions/macros can I add to the download file to specify the sheet/cell that a value should be loaded into?

View 2 Replies


ADVERTISEMENT

Import From CSV And Add Values In Specific Cells?

May 8, 2014

i have a question regarding the import of csv-files. I've seen lots of working import-functions/macros but none of them. So here are my questions:

1) is it possible to import data from a csv-file into specific cells in my worksheet? Let's assume i have a csv-file with 10 INT-Values and they all should be placed in different rows/colums with no regular pattern.

2) If the answer of "1)" equals "yes": how is it possible?

(i thought about importing the csv in an so called "helper-worksheet" and use formula/references inside the table, but to be honest: That's not the solution i like to have)

View 5 Replies View Related

Import Specific Cells From A User Chosen Spreadsheet

Nov 24, 2009

I need to import some spreadsheets that are sent to me into a master database spreadsheet. I have attached both below. The complaintstest.xls is the master database and the other is the sheet that will be imported. What I would like to happen is when the macro is run, the user will be able to select the sheet they would like to import through a dialog box. After the sheet is selected the macro will import the cells from the selected sheet into the master database in a particular order. In the master database example on row 2 I have listed the columns from the sheet to be imported in the corresponding column on the database sheet. This will macro will be run a couple of times a week so the macro will have to find the next empty row to start the import on.

View 14 Replies View Related

Import Specific Data From One Workbook Another?

Feb 18, 2014

I'm trying to import a range of cells from one workbook to another. I've got this far with it but am getting a Runtime Error '1004'.

Sub ImportData()
Application.ScreenUpdating = False
Set wb1 = ActiveWorkbook

[Code].....

View 3 Replies View Related

Import Specific Fields From Access (VBA)

Apr 1, 2009

I have working code to copy the matching records of an Access table into an Excel worksheet, but now I am trying to modify this code so that I can select a couple of specific fields from the table instead of just copying all of the fields (there are 15 fields in the table, but I only actually need 4 of them for this particular report).

Here is the code I am currently using to copy all of the fields over with the matching records:

Const myDB = "DSD Errors DB tester.mdb"
Private Sub CommandButton4_Click()
' Test Field Select button
Dim cnn As ADODB.Connection
Dim rst As ADODB.Recordset
Dim sSQL As String

sSQL = "SELECT * FROM DSD_Invoice_Requests WHERE `Paid?` IS NULL"

How can I modify this so that I put specific fields from the table into columns in Excel that will not line up with the layout of the table? For the sake of the example, let's say that I need fields 2, 4, 6, and 8 of the table to go into columns 1, 2, 3, and 4 in Excel.

View 9 Replies View Related

Import Specific Columns Paste Certain Row Into Another Spreadsheet

Aug 10, 2013

I can't figure out how to delete the attached files that are irrelevant and I can't figure out how to upload new ones. I also don't know how to word what I need to happen

I want the data from everything, starting from row 5 and going to row 100, and not include column B or E.

How do I grab just that data? I have different formulas in each document. This is for invoicing, so the columns with the $ numbers can't be changed and I haven't been able to figure out how to not overwrite them when importing another spreadsheet.

View 4 Replies View Related

Import From Specific Folder - Merge And Find

Apr 4, 2014

I have the attached xl. I want to make import from a specific folder other xl files and after that I want the sheet 1 to find if the values in column g and m (together in the same time) can find it in other xl files. If yes then this values in sheet 1 must turn to red. Can this done?

View 1 Replies View Related

Import Specific Rows From Text File

May 23, 2012

I have a .txt file (comma separated) that updates daily, which I need to import into Excel. The .txt file contains data from many years, but I only need the data from 2012. Is there a way to only import rows where the data in column "yearID" equals 2012? Since this is a daily operation, I'd rather not import all the rows and then sort/delete rows every time.

View 4 Replies View Related

Web Query - Import Just Specific Tables On Site?

Aug 17, 2013

I have a website (National Lacrosse League - 2013 Regular Season - Standings), that I want to pull information off and automatically into Excel.

I have been using web queries on other websites, and they have worked beautifully, however the tables that I want aren't recognised by the web query wizard (no yellow/black arrows). I can import the whole page through a query, however that's not really practical.

Is there a way I can import just specific tables on this site?? I'd like both the 'east' and 'west' tables.

View 8 Replies View Related

How To Import Specific Data From A Txt File Into Excel

May 17, 2009

importing some selective data from txt file to excel. Only the following rows I need to pull out from text file into the Excel i.e. Project row, installation row, and two rows immediately below the installation row. This is my logical procedure..

1. Macro look for the rows that contains the word "PROJECT"

2. Open an excel file

3. Pull the row from txt file to this new excel file.

4. Macro look for the rows that contains the word "INSTALLATION"

3. Pull that row with INSTALLATION AS WELL AS Two rows immediately below the INSTALLATION row.

View 9 Replies View Related

Import Text File From Specific Folder

Aug 26, 2008

I have an Excel workbook with 2 worksheets in it. One of the worksheets imports a txt file and then the other worksheet displays data that formulas I have written have collected.

I usually import the txt file by running through the many steps with the "import data" option. This is good but I want it to be faster.

I used the macro recorder and ended up with the following code

With ActiveSheet.QueryTables.Add(Connection:= _
"TEXT;\DesktopImport FolderTest.txt" _
, Destination:= Range("A1"))
.Name = "Test"
.FieldNames = True
.RowNumbers = False
.FillAdjacentFormulas = False
.PreserveFormatting = True
.RefreshOnFileOpen = False

View 5 Replies View Related

Query/Import Specific CSV File Into Worksheet

Apr 6, 2008

I have been using the attached to pull multiple csv files into seperate sheets. This takes all files from a user specified directory and dumps them into a workbook. I only need three specific files. How do I request specific files instead of a wild card.

View 3 Replies View Related

Import Specific Line From Multiple Text Files

Aug 13, 2008

I have many text files ~5000 and I am searching for a macro that can import multiple files and also search the text file only importing two specific rows (error files may will not have 42 rows) while listing the file name in an adjacent cell.

So in column A I would like the file name, in column B any data in line 42 of the text file and in column C any data in line 43 of the text file.

Here is an example of the data in rows 42 & 43:
11 Waratah Street Mona Vale(2103) - Australie
-33.68 (-33°40') | 151.30 (151°18')

So far I have found the code below that will import all text files into one sheet but it does not satisfy my requirements.

View 9 Replies View Related

Trying To Import Specific Data From A Separate Sheet To Add To An Existing Table

Apr 25, 2006

I'm trying to set up a macro which will import data from one worksheet to a master sheet. I need it to copy the information into specific columns but not overwrite any existing information which is already in the Master Sheet, but I don't even know where to begin.

Just so you're clear on exactly what it is I'm trying to do... I have a Master Sheet which lists all of our suppliers prices, margins etc etc... However, when we use a new supplier we send them a greatly condensed version of the Master Sheet - We call it the Supplier Sheet (no big surprises there)!

When the supplier sends it back to me I have to type it all out manually which is kinda time consuming. I'd really like to set up a "push button" system which allows me to simply drag the Supplier Sheet into the workbook, add the info into the Master Sheet, then be able to delete the now useless Supplier Sheet.

(I have attached a test copy of the file - all of the columns in blue are the ones which need the data adding to).

View 6 Replies View Related

Import A Text File From A Specific Folder Into A Sheet Without Split It To Columns

Sep 26, 2007

I have a variable list. Each column will be 250 digits and numbers of rows will be variable. I want a macro to import a text file from a specific folder into a sheet without split it to columns. So we will work only in column A

Then macro will find B1002 wording in A1. if it is exist, it will copy the next 36 digits after B1002 wording if not then it will search A2 row. The next step will be to search and find another wording "B1001" if it finds it will replace copied 36 digits text. If it can not find B1001 wording it will go to upper row and search B1001 wording here and paste the text. This will go on till row shows #END. This means it reached the end of the list. And then macro will save this file as text file to another folder.

So macro will go to beginning to open other file in the folder and this will go on till last file in the folder.

This is the logic of the macro. Here is the sample of what I want.

Original Data: ....

View 9 Replies View Related

Macro To Copy Specific Cells From Row From Source & Stop When Next Row Cell = Specific Value

Nov 7, 2008

I have a protected template and unprotected source worksheets - - - what I would like to happen is for the macro to start and if the source worksheet cell B3 equals "Report Total" then stop - otherwise copy template worksheet then copy 6 specific cells from the source to paste values to specific cells on the newly created worksheet (B_ to C7, D_ to I7, E_ to C9, F_ to K9, A_ to C11, M_ to K11 and then K13=F13-30)

After that then start all over again unless the next row’s cell (B4, B5, B6, . . .) is "Report Total" then stop - - - the row count could be from one to a couple hundred.

Here is what I have so far but I know that with each copy the name will change and as it goes down the source file each row will change and I also need help with that.

Sheets("ee template").Copy After:=Sheets(3)
ActiveSheet.Unprotect
Selection.ClearContents
Range("I7").Select
Selection.ClearContents
Range("C7").Select
Sheets("source").Select
ActiveCell.Offset(0, -11).Range("A1").Select

View 9 Replies View Related

Specific Cells Populate With Specific Numbers When A Value Within A Range Is Entered

Oct 9, 2009

Here is what i am trying to achieve. If the date 2/20/2010 is located at F53 & the cell next to it at H53 is populated with a number between 1 & 16, then i want the cell at J11 (42 rows further up) to auto populate with the number 1. When this occurs the cells beneath this, from J12 to J52 should also auto populate with the with consecutive numbers from 2 to 42. Would also like to see the cells with numbers 1 to 28, automatically format to orange & the cells containing numbers 29 to 42 automatically format to yellow. I plan to have this condition repeat several times later in the year, at dates that are to be decided. When these dates are decided i want to be able to enter a number from 1 to 16 & next to the date & all of the above automatically occurs.

View 14 Replies View Related

Import Certain Cells From A Workbook

Apr 25, 2007

I would require VB help as follows:

I will assume that I have a workbook called "Target.xls" and another workbook called "Source.xls"

1. "Target.xls" workbook has sheets called (S1),(S2),(S3) and (S4), in sheet (S1) there is a button called {Import Data}

2. "Source.xls" workbook has sheets called (S1),(S2),(S3) and (S4), those sheets are identical with the same sheets of the workbook "target.xls".

3. When you press the button {Import Data} in the "Target.xls" workbook the following actions shall happen:

1. A dialog box will open and ask you about the workbook which you want to import data from.

2. You will select a workbook from the list of the hard disk or any drive, supposing you selected "Source.xls" workbook

3. You will prompt a confirmation box to confirm the import action.

4. When you press OK then certain cells (same cells always, e.g. Range a1:c7) from the sheets called (S1),(S2),(S3) & (S4) from the workbook "Source.xls" will be copied (not linked) to the same cells in the workbook "Target.xls".

View 9 Replies View Related

Take Certain Cells From 1 Sheet And Import Them Into Template?

Jun 29, 2012

I would like to take certain cells from 1 sheet, and import them into a template to organize leads

Im importing information from a list of leads that have the following info:

NAME
STREET
CITY
STATE
ZIP
PHONE

TYPE
HOUSE VALUE

LOAN AMOUNT
LOAN DATE
CURRENT RATE
LTV
LENDER NAME

To a information block, where I can fit about 5 - 10 leads per printed sheet

NAME CURRENT RATE
ADDRESS CURRENT LOAN AMOUNT
PHONE CURRENT HOUSE VALUE

I know i need a template then import the data sheets to that template.. I do not know anything about making these templates. or how to import data from one sheet to another... I have looked and tried to find this info without asking, but have not had any luck...

View 2 Replies View Related

Import Access Table Into Different Cells

Mar 17, 2014

I have a table i'm importing from access. I'm wondering if there's a way to split the table so that it imports into separate locations. The following shows what I'm trying to do.

This is the data table. You'll note that under FlatOrTrim, I have 2 choices.

I'd like the ones in flat to populate one portion of the worksheet, and the ones in Trim to populate a different part of the worksheet. Like so: (Not all the data matches up perfectly, ignore that)...

View 2 Replies View Related

Import And Move Cells Automatically

Oct 23, 2008

Every day we receive a text report via email (only way it can be received), so we take this text report print it out and manually type it into an excell sheet.

I believe this is a waste of time. Is there any way I could take this info and automatically place in the the excell?? Until know I found a text to excell converter and was gonna create a macro to automatically convert this info into the excell report.

View 9 Replies View Related

Import Data From From Sheets/Cells

Oct 27, 2006

I have to make something what will import data from other documents.

I made a template report. Now I need a button or something what will open a file (a want to choose it) and import some cells from 5 sheets (not whole sheets) to the contfirmed cells in the template. All of the files are the same (i make inspections of some stuff) only data is different.

It will save a lot of time, cuz i have about 300 something documents from which i have to make the reports.

View 4 Replies View Related

Import Multiple Text Files & Copy Each Import

Jan 29, 2008

I'm attempting to import around 200 (and growing!) separate text files into Excel. I am using the formula below to import the text file and then using a separate macro to select the information I need, copy it into another spreadsheet, and then run the import macro again.

However, I have a problem in that my import macro gives me 'Run-time error '1004:

Application defined or user defined error''. At first this wasn't a problem as the information is pasted into the spreadsheet despite the error anyway. However, now that I am looping the macro it is obviously causing more problems as it prevents the loop. I would really appreciate it if anyone knows of a work-around or can spot an error in the coding to resolve this!

The code below shows is for the import macro only:

Sub ImportTextFile(FName As String, Sep As String)

Dim RowNdx As Long
Dim ColNdx As Integer
Dim TempVal As Variant
Dim WholeLine As String
Dim Pos As Integer
Dim NextPos As Integer
Dim SaveColNdx As Integer

View 8 Replies View Related

Import Cells Form One Workbook To Another Automatically

Aug 1, 2014

How can I import specific cells from say Workbook A and B to Workbook C automatically? For example. As I type in a cell in Workbook A then Workbook C reflects it straight away. Same as when I typ in Workbook B the C updates automatically. The end result will be that Workbook C automatically updates itself to show data from specific cells in Workbooks A &B.

View 1 Replies View Related

Import Data: Cannot Shift Nonblank Cells

Oct 31, 2006

I've got a problem with one of my macros. This code should import a text file. The name of the imported file is the same as the value of the cell that is active the moment the macro starts. The way I've written it, the code can't find the needed text file.

Sub addfile()
With ActiveSheet.QueryTables.Add(Connection:= _
"TEXT;E:aprojects" & ActiveCell.Value & ".txt", Destination:=Range(ActiveCell _
))
.Name = ActiveCell.Value
.FieldNames = True
.RowNumbers = False
.FillAdjacentFormulas = False
.PreserveFormatting = True
.RefreshOnFileOpen = True
.RefreshStyle = xlInsertDeleteCells
.SavePassword = False
.SaveData = True
.AdjustColumnWidth = False
.RefreshPeriod = 0.........................

View 5 Replies View Related

Highlight Specific Cells In Row If >1 Contains Specific

Apr 30, 2007

I'm trying to use a conditional format on a range of cells so that if there is more than 1 "A" contained in any given row, the cells containing the "A"s are highlighted (e.g. red)

I've tried:
=COUNTIF(B2:K4,"A")>1

but it doesnt work & now I'm stuck.

View 9 Replies View Related

Import CSV Every X Minutes Without Import Dialog Appearing

Apr 1, 2008

I have a simple macro importing a .csv data file to a worksheet every 30 minutes.

When the macro runs an Import Text File dialog box displays.

What do I need to do to have the macro run to completion without the dialog box interruption?

Sub RefreshHourlyData()

htime = Now + TimeValue("00:30:00")

Application .OnTime htime, "RefreshHourlyData"

Sheets("H1Updates").Select
Sheets("H1Updates").UsedRange.Select

Selection.QueryTable.Refresh BackgroundQuery:=False

Range("A1:A1").Select

End Sub

View 3 Replies View Related

Import Multiple TXT Files Content To Respective Cells In Spreadsheet VBA

Feb 13, 2014

In spreadsheet attached, column F is populated with file names. I need VB script to import content of each respective file into corresponding cell in column E.

I've got over 25k of records and the same amount of txt files that I need to insert into cells. I have found this script :

VB:
Sub MikeMaster()
Dim x As Integer
Dim temp
Dim i As Integer
Dim Drive As String

[Code] .....

But need to modify it to do something like this: read cell from column F (Text File) > find file with corresponding name in given folder > Insert content of that text file into corresponding cell in column E (Description) > go to next row and do the same.

View 9 Replies View Related

Lookup Range Of Cells And Populate Specific Cells Based On Matching Data?

May 23, 2014

I am trying to build a staff roster. The staff rotate over a 4 week cycle. the name of the staff member, and their shift needs to be looked up from the key then matched with the particular week. the name and shift then need to populate specific cells.

I have attached the worksheet so you can see what i am trying to achieve.

View 2 Replies View Related

Excel 2010 :: Color Fill A Range Of Cells If Specific Cells Not Blank

Feb 7, 2013

I am using Excel 2010 and basically i am trying to fill a range of cell with a green color if any value was enter in a specific cells. Example: I would like to fill range: A10:c13 with a green color (regardless of the cells content in this range) if a value was entered in cell C10 or C11 or C12 or C13.

I've tried conditional formatting but unfortunately I'll have to apply formatting for every cell and for a range of over hundred cells is not efficient.

View 7 Replies View Related







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