Excel 2003 :: Saving Files Generated By External Application

Jul 23, 2013

I have the following code which edits an excel file and saves it in a different format, I think want the code to take this newly saved file and open it in an external application (Softplot) and then save it through this new application.

VB:
Sub FormatMacro1a(ws As Worksheet)
ws.Copy
Rows(1).Delete
Columns("D:E").Cut Destination:=Columns("J:K")
Columns("F:K").Cut Destination:=Columns("D:I")
Range("E1:E201").Value = "0"

[Code] .....

As it stands I have the file saving in a new format and I can open a specific file in softplot through VBA however where I am getting stuck is opening my newly saved file and then saving it.

I have tried the following :

VB:
Path = "C:Program FilesSoftPlot-8softplot.exe"
File = "ActiveWorkbook"

View 3 Replies


ADVERTISEMENT

Direct Writing To Excel Cell From External Application

Jul 20, 2012

How I can directly write info from an external application to an Excel sheet

Actually, I'm using a special dll collection to do it, but I would need to buy the 64 version soon. Problem is I use only one function of the entire collection so I want to look on how to create it my self. Basically, it took data from my charting software and write directly to my Excel Worksheet.Cell

View 3 Replies View Related

Excel 2003 :: Conditional Formatting Based On Application Of AutoFilter?

Dec 7, 2011

I was wondering if it is possible to have cells formatted based on the presence of an autofilter? I have a large worksheet, and to clean it up I would like to make the entire sheet (minus the category headers) invisible. Then, when the user applies a filter, the cells become visible.

View 1 Replies View Related

Opening External Files In Excel?

May 5, 2014

I have a drawing index in excel sheet as shown below "there are thousands rows but here is only an example":

FILEID
TITLE

brd213962-1-1.pdf
SPECIAL PIPE SUPPORT DRAWING

brd213962-2-1.pdf
SPECIAL PIPE SUPPORT DRAWING

brd213962-3-1.pdf
SPECIAL PIPE SUPPORT DRAWING

brd213962-4-1.pdf
SPECIAL PIPE SUPPORT DRAWING

brd213962-5-1.pdf
SPECIAL PIPE SUPPORT DRAWING

And in the same folder I have all the drawings in PDF format and all the drawing are exactly named as listed under FILEID column.

I just want to click the drawing number in the excel sheet and get the drawing opened automatically.

Currently what I am doing is searching the index for a particular drawing and then searching the folder for that drawing to open.

View 1 Replies View Related

Print External PDF Files From Excel Sheet

Aug 26, 2013

I have a list of file locations of .pdf files in column A of my spreadsheet. All the path and files have info on Sheet1.

i.e. Column A1 c: estpacking_1.pdf A2 c: estcountry_1.pdf

Can I use VBA to, when I run it, print all of the files in the list in column A1:D20?

View 1 Replies View Related

Excel 2003 :: Remove Macro Before Saving File

May 24, 2014

I have a excel 2003 template that loads a csv file and create a graph.What I am trying to do is remove the Workbook_open macro after it has been run so when they save the file it will not save the macro in the new file.

View 3 Replies View Related

Saving XLSM File From Excel 2010 To 2003?

Aug 1, 2013

I'm trying to save an Excel file to be opened on Excel 2003, but with some VBA formulas. What is the compatible format? 2003 doesn't open in .xlsm format.

View 1 Replies View Related

Excel 2010 :: Saving To TXT Files?

Nov 23, 2011

I'm saving information from excel 2010 in to a text file (txt), when doing this and opening up the txt file the below line is saving it with " at the start and at the end of the line.

:32A:110809GBP4,00

Is there any way when saving as a text file without the " pulling through at the start and at the end of the line?

View 2 Replies View Related

Saving Batch Files From Excel

Nov 22, 2013

I currently have 3 batch files that I would like to be able to update using VBA instead of manually adding the information to each one. My goal is to be able to use my excel file and when I add new lines I could then run the script to save and/or update each of the batch files. I would like to be able to add the new lines I added in excel to the end of the batch files. I use the batch files for automation purposes but I do not like the fact that I have to open each one and added the same lines three times. This is why I want to be able to update my excel file and then add those new lines to the batch file. An example of how to accomplish this task using VBA would be awesome.

View 2 Replies View Related

Display Last Modified Username In A Call (of Several External Excel Files Not The Current)

Mar 7, 2014

I am trying to put this in about 25 cells to point at 25 different files. Basically I am trying to keep an eye on when the files have been updated each morning so that I can then pull off some data from them and who saved it.

I solved the first part (see next post) but I still havent been able to get it a function pull off the username.

View 1 Replies View Related

Difference In File Size When Saving Excel Files?

Apr 11, 2013

I tried to use prtScrn button on the keyboard to capture the screen (excel UI) and then pasted it to excel then saved it. I tried to do the same thing on my friends machine and what surprises me is that the file size of two excel is different.

We use the same OS, excel version and the same machine specs.My saved excel file is around 7.91 mb in size while his is just around 235kb. Why is this like this?

Both pasted image have bmp as a format (default for excel when a you use print screen and directly paste it on excel.).

View 3 Replies View Related

Excel 2003 :: VBA To Unzip And Download Files

Nov 7, 2011

I have code with downloads files from our work intranet site. When the files download the are zipped up. Is there a code which will unzip and open these excel files?

I'm using Excel 2003.

View 2 Replies View Related

Excel 2003 :: Error Message When Trying To Open XLS Files?

Oct 20, 2013

I'm using 2003 (I know!) version & I can't open excel files directly by clicking on them. I get an "error in sending command" message. I can circumvent problem by opening Excel & then opening the relevant file, but this sometimes causes me problems.

View 4 Replies View Related

Dates Imported From An External Application In The Format

Aug 9, 2007

I have dates imported from an external application in the format:

71205

for december 5th 2007, for example

View 9 Replies View Related

Excel 2003 :: Printing Multiple Files With Explorer But Asks To Save Changes?

Dec 7, 2012

When selecting multiple excel files in explorer, you can right click and choose to print the selected documents. All documents gets opened and printed but the files stay open and you have to manually click on YES or NO to save the changes.

Is there a way not to see this window appear. So documents get opened and printed and closes itself without asking anything. Maybe it can be done with an option in the preferences. I'm not sure.

By the way the documents where created with excel vba just in case it's relevant. Also the version of Excel is an older version, I think it was Excel XP or 2002/2003.

View 1 Replies View Related

Excel 2003 :: Copy And Move Files To Create Backups For 7 Or 8 Years

Aug 30, 2012

Using Excel Office 2003.

I have been using VBA to copy and move files to create backups for 7 or 8 years now, and it works great. However, recently I have been working on a way to use SD cards for the backups and the FileCopy command is much slower than using Windows Explorer.

I am looking for some alternate command lines that might do the job faster. I would like to know what Explorer is using.

View 8 Replies View Related

Excel 2003 :: Deleting Rows For Multiple Files In Separate Workbook

Sep 10, 2012

I'm new to this forum and to VBA

First-off, I'm using Excel 2003 SP3.

The setup: A software application I regularly use produces csv data files (in this case approx 300 files). These I have converted to xls format using a separate macro. The files are in one folder and named as follows eg

G1 18800.xls
G1 18802.xls
G2 18975.xls
G3 19881.xls
G3 19990.xls
G5 19990.xls
etc

The files contain the following data:

DATE TIME VALUE STEPS EXCL ACCEL
01-Oct-03 08:00 0 0 FALSE 0
01-Oct-03 08:01 0 0 FALSE 0
01-Oct-03 08:02 0 0 FALSE 0
01-Oct-03 08:03 0 0 FALSE 0
01-Oct-03 08:04 757 20 FALSE 0.18
01-Oct-03 08:05 1714 32 FALSE 0.44
01-Oct-03 08:06 1524 32 FALSE 0.39
01-Oct-03 08:07 1665 45 FALSE 0.47
01-Oct-03 08:08 1644 42 FALSE 0.46
01-Oct-03 08:09 263 8 FALSE 0.06
etc

I then created a macro using code I sourced from the internet, and included some addtional commands (filename, copy/paste). See below. This macro opens the all the xls data files in the folder and copies the relevant data to an analysis workbook [Analysis sheet, Results sheet, Master sheet] ie the data is copied from the data file and pasted into the Analysis worksheet. Then the results are copied from the Results sheet to the Master sheet. So far so everything works.

My problem is this: I'm stumped at how to delete rows from the xls data files before running the analysis workbook and macro. In other words, after converting the csv files to xls format I need to clean the xls data files.

I have a separate xls file with criteria data in two columns:

FileName Date
G1 18800 06-Oct-03
G1 18801 02-Oct-03
G1 18801 03-Oct-03
G1 18801 05-Oct-03
G2 18795 14-Oct-03
G2 18795 15-Oct-03
G2 18795 16-Oct-03
G2 18795 17-Oct-03
etc

The rows in a particular data file, with dates that are not present in the Criteria workbook must be deleted. This to be done for every data file in the folder. Also, I need to exclude rows for specific time periods eg 12H00AM - 04H00AM from all the files irrespective of date.

the code needed [should a separate macro be run or can code be placed within the present macro?]. I've tried looking for something similar on the internet, but my requirements seem too customized to be able to adapt the code that I found. And of course this is waaaay above my present skill level!

Option Explicit

Sub CopyPaste()

'This code opens up data files (xls) in a specified folder and copies data A1:G17281 to an Analysis workbook (Analysis sheet).

'The data from the Results sheet is then copied to the Master sheet.

Dim wkbDest As Workbook
Dim wksDest As Worksheet
Dim wkbSource As Workbook
Dim wksSource As Worksheet
Dim MyPath As String
Dim MyFile As String

[Code]...

View 9 Replies View Related

Saving Comma Separated .txt Files As .csv Files

Sep 15, 2009

I have a large number of .txt files that are comma separated files (but not saved with the .csv extension) that I need to convert to files with the .csv extension.

Is there an easy way to do this for all files in a given folder? Ideally, the files don't even need to be opened as they are are quite large in size (70MB+) and there are a lot of them (500+).

View 9 Replies View Related

Opening 2003 Files From Word 2003

Jan 8, 2010

how to write a code where i can open Excel2003 file from Word2003 and delete data from Sheet1 and then close the excel2003.

All this is done from Word file.

View 9 Replies View Related

Application File Search From 2003 To 2007

Jul 28, 2008

in adapting the previous code to MS Excel 2007. I have found that the "application.filesearch" object no longer exist in 2007! The code goes to a file path and extracts the text and places the data in the specified excel column.

here's the original code as given by Parry:
[url]

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

Load External Xls Files

Oct 30, 2009

if it is possible to have one xls file load all .xls files that are inside a folder or a folder with subfolders and so on?

View 9 Replies View Related

Opening External Files With VBA

Oct 31, 2007

On the first worksheet of my workbook I have a list of file names in cells I11:I27. The filenames have been 'compiled' using the concatenate function, so for example, although cell I11 displays:

Richard 2007-09.xls,

the cell contents are really:

=CONCATENATE(G20," ",L9,"-",J9,".xls")

Using VBA, I want to be able to open each respective file in cells I11:I27, copy the contents into this workbook (sheet=raw), and close it. My problem is that I don't know how to tell excel the filename in VBA, because the cells contents are not really the filename - they are a formula.

View 9 Replies View Related

Get Links To External Files

Dec 6, 2006

I want to link data between two files, which are always in the same position relative to each other, but can be copied to other locations. Here is an example:

D:Job 1SourceJob Info.xls
D:Job 1SlaveClient Form.xls

Cell B1 in Client Form.xls refers to Cell A1 in Job Info.xls. This link is created when both files are open. When Job Info.xls is closed, the reference in Client Form changes to 'D:Job 1Source[Job Info.xls]Sheet1'!$A$1.

Then, I copy and save Job 1 as Job 2. Thus, the second set of folders are: ....

View 7 Replies View Related

Pulling Data From External Files

Apr 28, 2003

I have 12 external files (one per month) and need a quick way to pull these into a reporting book. I've used the following code...

Workbooks.Open FileName:= _
"J:ManfinMISNew ReportingMIS2P200301.xls"
Columns("A:B").Select
Selection.Copy
Windows("MainReportingBook.xls").Activate
Sheets("P200301").Select
Range("A1").Select
ActiveSheet.Paste
Windows("P200301.xls").Activate
Call OpenClipboard(0&): Call EmptyClipboard: Call CloseClipboard
ActiveWindow.Close

However with 10000++ rows of data in each file, this is very very slow (approx 5 mins to update all 12 months).

View 9 Replies View Related

How To Change External Data Path For Mdb Files

Apr 13, 2009

to fix a .xls file that wasn't created by me.

In order to do that I need to change the path of an External Data that is an access 2003 file (.mdb file).

The only way that I imagine it is possible is to select a cell that is an adress for the query result, than click on properties and change it selecting the new path of file (the path moves depending on the user of the .xls).

View 9 Replies View Related

Filling A Worksheet With Data From Many External Files

Sep 11, 2009

I'd be very grateful if s.o. help me find solution for the following task:

I want to fill certain worksheet with data from external .tsv files. The .tsv files are with a almost a common name (something_date.tsv), located in folders for each month.

What I'm usually doing and want to automate:

- I'm opening the first .tsv file from the monthly folder;

- Creating AutoFilter on the first row;

- Selecting a custom criteria from the AutoFilter;

- Copying the cells matching this AutoFilter criteria;

- Pasting in a predefined worksheet (with AutoFilter on first row);

*All of the copied cells are not being altered in the predefined worksheet, i.e. the first rows of the .tsv file and the worksheet are the same.

- Doing exactly the same with the next file in the monthly folder (but pasting below the already copied cells in the workbook).

- Etc.;

- Etc.;

View 14 Replies View Related

VBA Saving PDF Files Into Folders

Sep 29, 2013

I have this code that generates excel pages as pdf files, but I can't get it to save it in its individual folders. For example, I have the sheet name as Brian Lin, I want to save the pdf into the folder called Brian Lin, then if I have the sheet name as Lilly Tran, the pdf should save into the folder called Lilly Tran. Here's my code. The code is one step short of what I want it to do, it saves in the folder right before the name folders.

Code:

Sub Macro1()
Dim wsh As Worksheet, vWshs
Dim sFolderName As String, set_Path As String, name As String, hwas As String, sname As String, swsname As String
vWshs = Array("Rates", "Inputs")
set_Path = "C:UsersJonathanDesktopFaFundInvoices" & hwas & ""

[Code]...

View 4 Replies View Related

Use Application.GetOpenFilename To Search For A Several (.jpg) Files And List The File Paths On A Worksheet

Feb 13, 2010

I am trying to use Application.GetOpenFilename to search for a several (.jpg) files and list the file paths on a worksheet.

View 2 Replies View Related

Excel 2010 :: Adding Randomly Generated Value To Range?

Apr 7, 2014

Not sure if there is a way to do this. I'm using excel 2010. I used this function

=INDEX(Sheet5!A1:A149,RANDBETWEEN(1,ROWS(Sheet5!A1:A149)))

I have a list on names that is in the range on Sheet5!A1:A149 I'm using the function to randomly select one of those names.

What I want to do: I want to add the randomly generated name to a range that I can then refer to later to see if that name has already come up. So I know if that name has already been used.

View 3 Replies View Related







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