LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 16
Default VBA to copy an htm file into excel

The target file is on my computer although its name changes twice a week.
If I use a web query it tells me there is no data. If I manually select the
contents then copy and paste it into my spreadsheet all the data is there.
What I want to do from within an excel macro:
1. Open the htm file selected by the user ie 12mar.htm (when I do this
manually it opens in IE - my attempts to reproduce this with vba have failed
miserably)
2. Select and copy the file contents (the whole page is fine)
3. paste it into a specific sheet (called "Hands") in my workbook.
4. Close the htm file and return to excel/continue with the macro I've
written

(From this stage I've already got the macro to place the data in the correct
areas on another sheet ready for web uploading)

Thank you to anyone who can offer assistance
 
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
How to copy 2007 excel file formula results into a 2003 Excel file Nuria Alba de Luz Excel Discussion (Misc queries) 2 July 10th 09 01:48 PM
Copy Two Columns of Flat File to Final Excel File Neon520 Excel Programming 1 February 9th 09 07:55 PM
Copy Two Columns of Flat File to Final Excel File Neon520 Excel Programming 0 February 9th 09 07:11 PM
EXCEL FILE a copy/a copy/a copy ....filename ve New Users to Excel 1 September 29th 05 09:12 PM


All times are GMT +1. The time now is 11:07 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"