Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default import CSV file at location D7

Hi,

I have a CSV file "today1.csv" that I would like to import into my
workbook "wb1" in sheet "today1" at cell "D7".

Can you give me the VBA macro that I can put behind my "Load
today1.csv" button?

So everytime I click this "Load today1.csv" button:
a. All data in the range "D7:Z400" is initialized to 0.
b. The csv file is loaded starting at cell "D7".

Thanks.


---
Message posted from http://www.ExcelForum.com/

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default import CSV file at location D7


Turn on the macro recorder (tools=macro=Record a new macro) then do

Data=Get External Data= Import Text file
and import your file.

This should give you the basic code you need. Then you can clean it up and
add specifics.

--
Regards,
Tom Ogilvy

"lothario" wrote in message
...
Hi,

I have a CSV file "today1.csv" that I would like to import into my
workbook "wb1" in sheet "today1" at cell "D7".

Can you give me the VBA macro that I can put behind my "Load
today1.csv" button?

So everytime I click this "Load today1.csv" button:
a. All data in the range "D7:Z400" is initialized to 0.
b. The csv file is loaded starting at cell "D7".

Thanks.


---
Message posted from http://www.ExcelForum.com/



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
file location DaveB Excel Discussion (Misc queries) 4 July 7th 07 10:02 PM
Default Location Data Import Ripper Excel Discussion (Misc queries) 3 January 24th 07 08:50 PM
Get File location Jeff Excel Discussion (Misc queries) 2 September 26th 06 08:20 PM
Import External Data Source File Location Changed Louise Excel Discussion (Misc queries) 3 January 4th 06 02:47 PM
Import Text File Location Odderjob Excel Programming 0 October 31st 03 04:16 PM


All times are GMT +1. The time now is 04:00 PM.

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

About Us

"It's about Microsoft Excel"