Search found 9 matches

by unique12u
Fri Jun 23, 2006 7:54 pm
Forum: Technical / Scripting
Topic: Adding two columns together in excel?
Replies: 3
Views: 7242

I got it to work. Not sure BEST solution, but it works x = 1 DO Until xlSheet.Cells(x,1).Value = "" If (xlSheet.Cells(x,1).Value) = "" Then xlSheet.Cells.Value(x,5)= "" Else xlSheet.Cells(x,5).Value = ((xlSheet.Cells(x,3).Value) & " " & (xlSheet.Cells(x,4).Value)) End If x = x + 1 Loop xlSheet.Colum...
by unique12u
Fri Jun 23, 2006 4:41 pm
Forum: Technical / Scripting
Topic: Adding two columns together in excel?
Replies: 3
Views: 7242

Here is the full script so far. Still a work in progress. I need to tak a date in column C and a time in column E and combine them into one column in yyyy-mm-dd hh:mm:ss format. The bold code is my attempt at that so far. I am not getting anywhere fast. I want to take column C + Column D, put it in ...
by unique12u
Wed Jun 07, 2006 7:57 pm
Forum: Technical / Scripting
Topic: Adding two columns together in excel?
Replies: 3
Views: 7242

Adding two columns together in excel?

Can you look at this section of VB that I have to see what is wrong. The rest of my script works fine without this. For every row of an excel sheet I need to set Column E equal to Column C + D x = 1 DO Until xlSheet.Cells(x,1).Value = "" If (ISBLANK(xlSheet.Cells(x,1).Value)) Then xlSheet.Cells(x,5)...
by unique12u
Mon Jun 05, 2006 3:05 pm
Forum: Technical / Scripting
Topic: Combine Columns in excel and format
Replies: 1
Views: 3831

Combine Columns in excel and format

I have an excel file with a date column and a time column. I need to have these two be ONE column in yyyy-mm-dd hh:mm:ss format.

If I concatenate the columns Excel does not want to reformat them as a date because it only treats it as text then.

Any suggestions?

Nique
by unique12u
Mon Apr 10, 2006 3:18 am
Forum: Technical / Scripting
Topic: VB Script help for Changing cells in Excel
Replies: 1
Views: 3853

VB Script help for Changing cells in Excel

I need to change certain rows in a column in excel based on the value in another column. Can someone give me some VB script help on doing that.

IE IF A1=1 then B1=2

Thanks
Nique
by unique12u
Tue Jan 31, 2006 6:53 pm
Forum: Technical / Scripting
Topic: SQL Query from Informix Database
Replies: 4
Views: 9721

OH! So if I have the (m)

DSN in my datasources, I do not need the connect string at all? DUH!

Next question related to this script is once I do that, how do I return the SQL data to a CSV file and modify the date formats in the query?
by unique12u
Tue Jan 31, 2006 6:26 pm
Forum: Technical / Scripting
Topic: SQL Query from Informix Database
Replies: 4
Views: 9721

SQL Query from Informix Database

I have written my first script and it works, however it is not what I consider to be the best solution. I want to query an informix database and output the data into a CSV file and change the format of the date fields. In order to do this I wrote a query from MS Query and my script calls the query. ...
by unique12u
Mon Jan 30, 2006 3:39 pm
Forum: Technical / Scripting
Topic: New at this - need excel query script help
Replies: 2
Views: 5068

New at this - need excel query script help

I am running a query from an Informix database and dumping into excel. The following is my script so far. It gets as far as running the query, but then I want it to delete the first row and reformat column C. It never gives me an erro, but it also never performs the row delete or the column format? ...
Sign up to our newsletter for free automation tips, tricks & discounts