Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 44
Default operating notepad from VBA

hello,

how can i
1. open notepad,

shell ?

2. paste excel range as value into notepad

3. save notepad as html

4. close notepad

?

or do it with create object ?

thank for suggestion.

rgs
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,588
Default operating notepad from VBA

Shell will do it.

Perhaps you have some kind of "super" Notepad, but mine has no "save as
HTML" function...



--
Tim Williams
Palo Alto, CA


"pm" wrote in message ...
hello,

how can i
1. open notepad,

shell ?

2. paste excel range as value into notepad

3. save notepad as html

4. close notepad

?

or do it with create object ?

thank for suggestion.

rgs



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 105
Default operating notepad from VBA

I'm curious why you'd want to go through all those gyrations with Notepad when
Excel allows you to save as html directly? And Notepad doesn't...

Bill
--------------------
pm wrote:
hello,

how can i
1. open notepad,

shell ?

2. paste excel range as value into notepad

3. save notepad as html

4. close notepad

?

or do it with create object ?

thank for suggestion.

rgs

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 44
Default operating notepad from VBA

Bill Martin wrote:

I'm curious why you'd want to go through all those gyrations with Notepad when
Excel allows you to save as html directly? And Notepad doesn't...


i build all code in excel..

when saving excel as html you get each sheet as different subpage in html, moreover
excel saves too much unnecessary styles and tags - i want to have control what i get
in html code..

i use such a code:

Sub notepad()
Application.ScreenUpdating = False

Dim FF As Integer
Dim plik As String
Dim tekst As String
Dim kom As Range

plik = "C:\Documents and Settings\user\Pulpit\webpage1.html"
FF = FreeFile
Open plik For Output As #FF
For Each kom In Sheets("prob").Range("A1:B16088")
tekst = kom.Text
Print #FF, tekst
Next
Close #FF

Application.ScreenUpdating = True
End Sub
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 26
Default operating notepad from VBA

You might find ideas at http://www.meadinkent.co.uk/xlhtmltable.htm
to help you do what you want directly from Excel.

--
Gordon Rainsford

London UK

pm wrote:

Bill Martin wrote:

I'm curious why you'd want to go through all those gyrations with
Notepad when Excel allows you to save as html directly? And Notepad
doesn't...


i build all code in excel..

when saving excel as html you get each sheet as different subpage in html,
moreover excel saves too much unnecessary styles and tags - i want to have
control what i get in html code..

i use such a code:

Sub notepad()
Application.ScreenUpdating = False

Dim FF As Integer
Dim plik As String
Dim tekst As String
Dim kom As Range

plik = "C:\Documents and Settings\user\Pulpit\webpage1.html"
FF = FreeFile
Open plik For Output As #FF
For Each kom In Sheets("prob").Range("A1:B16088")
tekst = kom.Text
Print #FF, tekst
Next
Close #FF

Application.ScreenUpdating = True
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
where is the product code for operating cd jojo Setting up and Configuration of Excel 0 December 25th 05 03:26 PM
How do I calculate operating expense KAE1994 Excel Worksheet Functions 8 August 23rd 05 09:43 PM
Find out Operating System Mohan[_2_] Excel Programming 5 January 16th 04 08:36 PM
Operating system Don Guillett[_4_] Excel Programming 0 September 10th 03 04:43 PM
Operating system Stephan Kassanke Excel Programming 0 September 10th 03 04:42 PM


All times are GMT +1. The time now is 05:57 AM.

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"