Date Import From A Source Spreadsheet

Dec 5, 2008

1) Import from a source spreadsheet
2) Copy and re-arrange fields to a new sheet to be imported by a GIS program (MapInfo).

My issue is with the date fields in the source spreadsheet. I copy these into new columns and explicityl via VBA set the NumberFormat of these cells to be date fields ( ie. .NumberFormat = "DDMMYYYY"). On checking the cells the formatting appears to have been applied to my new spreadsheet. However when I open this spreadsheet (new one I create) MapInfo won't recognises these date fields as dates. It seems them as character strings. If I start with a blank sheet and type dates in and autofill and then open in MapInfo it has no problem recognising these fields as Date and imports correctly.

It seems that the source I am copying from has some hidden formatting or something that is overwriting my typed formatting. Any one had a similar experience or have any ideas about this.

View 7 Replies


ADVERTISEMENT

Using XLSM Spreadsheet As Mail Merge Data Source?

May 13, 2014

I have a database that uses a few basic macros that I would like to use as part of a mail merge ---> Form Letter. Word does not seem to support the use though of xlsm files as a data source though.

Full disclosure - I am using a mail merge form letter to automate the creating of a report that has a LOT of place holders. I 100% realize that there are ways to do this within Excel that would be much cleaner and much easier, but truthfully, I DO NOT have the skills to write the code for it. (The macro I am using was wrote by a wonderful member of these forums. (Snakehips))

Do I have any work arounds to the xlsm / mail merge debacle? Is there a method that I could do that doesn't require years of VBA experience?

View 2 Replies View Related

Import Spreadsheet From One Workbook To Another

Jan 16, 2010

I have 2 separate Excel 2007 workbooks and I’m trying to import a complete spreadsheet named Client Info with all its properties from one workbook to another.

View 2 Replies View Related

Excel 2007 :: Textbox Control Source Linked To Cell In Spreadsheet?

Oct 10, 2013

I have a userform with a textbox and would like the user to type inside the textbox which in turn send the text typed to a cell on my spread sheet say sheet 1 cell ref A1. I am writing the following into the control source Sheet1!A1 but the control source does not except this. I am using excel 2007 .

View 2 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 ASCII File Into Excel Spreadsheet?

Apr 20, 2014

I want to write code so that at the push of a button you can browse and find an ascii file. Select it. and then it will go into the sheet of a excel file that you chose in the code.

View 2 Replies View Related

Import Multiple Text Files Into Spreadsheet?

Dec 22, 2011

I have about 10k poorly formatted txt files that I need to grab 4 items from each and put in a spreadsheet. How can this be done in Excel or should it be done in Access instead?

Here's a link to what each txt file looks like: MTRP88PF700721.txt

I only need the number next to Posting Journal on line 3 (12686 in this case), the 3 digit number next to Class Total on line 11 (101 in this case), the Extended Cost Final Total and the Extended Retail Final Total (23.77 and 39.30 in this case)

because one of my staff members is currently opening each txt file and typing these figures into a spreadsheet!

View 7 Replies View Related

Import 2 Sets Of Data Into One Spreadsheet (no Copy/paste)

Jul 9, 2013

I haven't work with Excel for a while. I have a "main" file, with info such as name, address, phone #, etc. and another file with additional info for each person required to, in the end, do a merge. How do i combine the 2 files so that the secondary info plugs in next to the last column in the same order as the "main" file.

View 1 Replies View Related

Import Received Sheet Of Data To Master Spreadsheet

Jul 12, 2013

Every week I receive a sheet of data that I need to import into my master spreadsheet. The problem is I have to adjust the data I receive to import it unless there's a better way of doing it. I'm trying to automate both the modification and the importing of this sheet. I've tried to create a macro to modify and import without any success.

To adjust the spreadsheet I receive I need to: delete or find a way to exclude the first 3 rows, the bottom row with data stating "complete" and columns C,D&E from being imported; change font, size, color, bold to match the main spreadsheet in addition to formatting; split data in column A and remove any special characters. Formatting is important because I have to be able to easily remove duplicates. Also, the number of rows in the sheet I receive changes weekly.

I've attached a workbook with sample data. The first sheet is representative of what my master looks like, the second is what I sent and the third what I've been modifying it to and then importing. As stated before, I'd like to have my master automatically update with the sheet I sent, but I'm at a loss having to reformat everything every week before importing. Having the sheet that's sent to me revised before I receive isn't an option. What's the best way to automate this?

SAMPLE1.xlsx

View 1 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 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

Import Content From Separate Excel Files To A Single Spreadsheet?

Feb 2, 2010

Hi everyone,

I've got several Excel files that need to be edited separately.
Once they have been edited, I need to paste the content of each file in a single separate Excel file.

Is there a way to retrieve the content from all the files in a folder, and merge it in a single file?

For example:

3 separate files > File1, File2, File3

Merged file, sheet1
File1
File2
File3

View 14 Replies View Related

Import List Of File Names From Folder Into Single Spreadsheet?

Nov 28, 2012

i'd like to be able to import a list of file names from a folder. sounds fairly straight forward to me, but example:

folder a has 10 files in it (let's say PDFs - numbered 1 through 10). I'd like to be able to open the spread sheet, and see the file names in column b. ideally, i'd also like subfolders to be listed, in the next column. but, let's start with just this.

View 2 Replies View Related

Updating Date In Spreadsheet To Table In SQL In UK Date Format

Mar 26, 2014

I have a couple of columns, once edited need to update a table in SQL. This is my code

[Code] .....

However it is not taking UK date formats, it is assuming it is an american format, I get conversion of varchar data type to datetime results in an out-of-range value. What should I add to change the format? The format is in UK on the spreadsheet seemingly....

View 11 Replies View Related

Excel 2007 :: Date Format While Copying Data From Another Source?

Jul 14, 2013

I have some data coming in from another source system which has the date format as "DD-MM-YYYY" but while pasting it to Excel (2007) sheet some date fields has just DD-MM-YY format which disrupts my macro. I did changing the language settings to "English(UK)" ,which i wanted, and changed the same in Excel options as well. But unfortunately it doesn't work.

View 3 Replies View Related

Changing Chart Source Data Based On Running Date

Apr 4, 2007

I currently have a simply bar chart that is based on a running 5 days figure so the X-axis is like 01-Mar 02-Mar 03-Mar ...

Y-Axis is the data that I am trying to present - Total $

The source of this data is simply two columns - Column A is the running date, Column B will be data.

Daily I need to only present 5 days historical data based on the latest date i.e. today and the past four days (the source data is updated daily).

Can a macro be used to auto update the bar charts based on today's date?

View 9 Replies View Related

To Import Several Files Depending On Date

Jun 1, 2009

I am trying to import a several files depending on date. The first part of the name of the files that I am importing are always the same, the end changes as the date changes.
I have a user form that comes up and I pick the dates that I am looking at.

What would be the code to import those depending on the date that I pick?

When my UF comes up, I pick whatever dates, I need to import all the files in between those dates.

View 11 Replies View Related

External Data In Spreadsheet Without Having To Import All The Data

Aug 6, 2009

I'm wondering if I can use external data in an excel spreadsheet without having to import all the data. I basically need a persistent connection with the external data and I want the excel spreadsheet to get the item descriptions by using the item number as the user types in the item number. Writing out the descriptions is killing me and I have all my products in an excel spreadsheet already. I really need someway to link two separate excel files together. One with data and one with user input that searches that data as I type in the item number.

View 2 Replies View Related

Excel 2007 :: Viewing SQL Statements Without Being Connected External Date Source

Jun 3, 2012

I now have XL 2007 but no longer work at the same place so do not have access to the external data source. I would like to view the SQL statements that I wrote back then but keep getting error that I am not connected to external data source and so cannot see my sql statements. I have MS Query 2007.

View 1 Replies View Related

Import Web Data Macro Using Today's Date In Url

Oct 29, 2009

I have recorded a macro to import web data, from a sporting site,
problem is URL is date and event specific.

View 10 Replies View Related

CSV Import Showing Times As Date & Time

Jul 17, 2007

I am trying to import a .csv file with several fields that are timestamps. I get the file in Excel, and do Format, Cell, date as mm/dd/yyyy hh:mm.

My results come back as 1/0/1900 12:37:22 AM
My raw .csv field looks like 37:22.4

how I lost my date? I did check my system clock just in case, and it appears to be accurate.

View 9 Replies View Related

Excel 2007 :: Source Date Sorting Into Format Used For Pivot Table / Chart?

Sep 24, 2011

I am stuck trying to sort data that looks like the following, into a format that I can use as source data for pivot tables/charts.

Excel2007ABCDEFGHIJK2MalayMalayMalayMalayMalayMalay
ChineseChinese3MaleFemaleFemaleMaleFemaleFemaleMaleMale
436-4536-4536-4525-3525-3525-3536-4536-455
DateArticleContentLapseCurrentCurrentCurrentLapseLapseCurrentCurrent612-SepRelieving 40 years - Oct 15, 1972
Thick Haze continues to blanket MalaysiaHistory42712-SepRelieving 40 years - May 5, 1972
All Sharifah wants is a pair of legsHistory1222812-SepA man and his agonyHistory3223912-SepA lesson on Sept 16History22Sheet2

I will need to group Data multiple ways. However, I cant work out a good way to sort it. Can I have a suggestion on layout that I will be able to arrange data appropriately.

View 2 Replies View Related

How To Import Multiple Text Files Based On Date

Feb 14, 2014

I am trying to an excel macro that will automatically import data from specific files. The basic information is this:

1. There is a MySQL script that runs every day and creates tab-delimited text file named as the date.Example:

OutputDIR
02-14-2014.txt
02-15-2014.txt
02-16-2014.txt

2. I need grab data from each of the files for a rolling 30 day period from the date specified in the sheet. The data needs to go onto the same sheet in Excel.Example: B2 on the "Settings" worksheet says 02-14-2014. So take data from 02-14-2014 minus 30 days (01-15-2014.txt) all the way up to today and consolidate it onto an existing worksheet called "Data."

3. If the date in cell B2 is changed, overwrite the data that was already retrieved and replace it with the new import from the new date.Example: B2 is changed to 01-31-2014. Now take data from 01-31-2014 minus 30 days and overwrite what was already imported in worksheet "Data."

View 5 Replies View Related

Import Sheets Where File Path Is Date Based

Jan 8, 2008

I have a script that generates various worksheets based on the day and puts these in folders based on the year/month/day. So a report run today would be in the F:200817 folder.

At the end of each month and then again at the end of the year I need to pull all the reports into a single workbook. The macro I have now allows you to select the folder you want to import the sheets from, but it doesn't recurse subdirectories, so I can only import sheets from a specific day into a workbook, but not from a month/year.

View 9 Replies View Related

Validation Source: Change The List Source

Apr 1, 2009

Not sure if this can be done, still a rookie at this stuff. Everything works but can something be wrote into code too change list source?

View 5 Replies View Related

Update Data By Ado - Change/delete Data And Then Run Macro For Update Data In Source Spreadsheet

Dec 6, 2006

I have one source spreadsheet, where are columns NAME, DATE. I read these data by ADO to other spreadsheet, where I can change/delete data and then run macro for update data in source spreadsheet. The problem: In source spreadsheet is column "NAME" and column "DATE", with values e.g. "Joseph"; 1.1.1980. I read this data to other spreadsheet, then I delete in it value 1.1.1980. When I run macro Update, it messages error.

Sub UpdateItem
...
.Fields.Item(1).value = activecell 'activecell value = "Joseph"
If Not isempty(activecell.offset(0,1)) Then
.Fields.Item(2).value = activecell.offset(0,1).value
Else
.Fields.Item(2).value = "" 'I tried Empty and 0 too but when I read data again then, it displays 0.1.1900, nothing works
End If
...
End Sub

It seems that in source spreadsheet has data in column "Date" format Date and when I try to update data in format String ("") in source spreadsheet by Update macro, it messages error. When I used

.Fields.Item(2).Value = Empty
' or
.Fields.Item(2).Value = 0

after rereading data it displays 0.1.1900 What I want to get is that if the cell with date (in other spreadsheet) is empty, the cell in column Date in source spreadsheet after updating will be blank (contains no values).

View 2 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

Different Date Formats On The Same Spreadsheet

Mar 13, 2007

I have data sent to me with different date formats on the same spreadsheet; I used Format - Cell and format date to this format: yyyy.mm.dd. However, only some of the data changed to this format and rest remain the same. I've tried many other ways, but didn't work.

View 14 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

How To Use Date Field Within Spreadsheet To Notify

Mar 10, 2014

I have created a spread sheet, which automatically calculates 90 days in advance.

I would like to know how do I get the spread sheet to notify me, when the computer date reach's the 90 days date.

I have no idea about macro's or anything like that....

I would like an email to be sent to a couple of people if that is possible, i have attached the basic spread sheet incase its required to be viewed.

Property disposal2.xlsx‎

View 2 Replies View Related







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