Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Inserting rows from "unstable" csv

Folks,

I have the function below, which imports values from a column in a csv
that is generated elsewhere, and places the values in an empty row in
my spreadsheet. However, as it stands, when the column in the CSV is
updated with the next set of results, ALL generated rows are updated
with the latest values. What I need the function to do is to insert a
"snapshot" of the csv at that moment - ie, when the CSV changes,
previous rows in the xls are unaffected. Any clues?

Thanks

Steve

=======CODE=========

Sub LatestRun()
ActiveCell.Offset(1, 0).Select
Do While Not IsEmpty(ActiveCell)
ActiveCell.Offset(1, 0).Select
Loop

ActiveCell.FormulaR1C1 = "=today()"
For x = 2 To 17
ActiveCell.Offset(0, 1).Select
ActiveCell.Formula = "='C:\[rip-perform.csv]rip-perform'!$C$" & x
'ActiveCell.FormulaR16C1 = "='rip-perform.csv'!R2C1:R2C17"
Next
End Sub

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Inserting rows from "unstable" csv

Renster wrote:


*** Rubbish mostly, that is now snipped ***

No matter folks, I cracked it myself. Revised Function:

Sub LatestRun()
ActiveCell.Offset(1, 0).Select
Do While Not IsEmpty(ActiveCell)
ActiveCell.Offset(1, 0).Select
Loop

ActiveCell.FormulaR1C1 = "=today()"
For x = 2 To 17
ActiveCell.Offset(0, 1).Select
ActiveCell.Formula = "='C:\[rip-perform.csv]rip-perform'!$C$" & x
ActiveCell.Copy
ActiveCell.PasteSpecial (xlPasteValues)
Next
End Sub

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Inserting rows from "unstable" csv

Renster wrote:


*** Rubbish mostly, that is now snipped ***

No matter folks, I cracked it myself. Revised Function:

Sub LatestRun()
ActiveCell.Offset(1, 0).Select
Do While Not IsEmpty(ActiveCell)
ActiveCell.Offset(1, 0).Select
Loop

ActiveCell.FormulaR1C1 = "=today()"
For x = 2 To 17
ActiveCell.Offset(0, 1).Select
ActiveCell.Formula = "='C:\[rip-perform.csv]rip-perform'!$C$" & x
ActiveCell.Copy
ActiveCell.PasteSpecial (xlPasteValues)
Next
End Sub

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Inserting Rows...but losing "FORMAT" FLKULCHAR Excel Discussion (Misc queries) 1 March 23rd 10 03:14 AM
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell Steve Kay Excel Discussion (Misc queries) 2 August 8th 08 01:54 AM
change "true" and "false" to "availble" and "out of stock" inthestands Excel Worksheet Functions 2 July 19th 07 07:05 PM
inserting a conditional "go to" command on a excel "if" function velasques Excel Worksheet Functions 5 March 10th 06 08:16 PM
Inserting "template" rows shikamikamoomoo Excel Programming 1 July 15th 05 03:05 AM


All times are GMT +1. The time now is 09:33 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"