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

I have the following script that I use in my excel formula. I'd like t
streamline it and run it in an HTML format. (Not all managers hav
access to microsoft excel).

Is there a way to port my script to work in HTML???

by the way, to activate the script, i have a button on my spreadsheet.

Sub Macro1()
Workbooks.OpenText Filename:="C:\UDC\ALEX", Origin:=xlWindows
StartRow:= _
1, DataType:=xlDelimited, TextQualifier:=xlDoubleQuote, _
ConsecutiveDelimiter:=True, Tab:=True, Semicolon:=False
Comma:=False, _
Space:=True, Other:=False, FieldInfo:=Array(Array(1, 1)
Array(2, 1), Array(3 _
, 1), Array(4, 1), Array(5, 1), Array(6, 1), Array(7, 1)
Array(8, 1))
Columns("A:A").Select
Selection.Find(What:="EXT", After:=ActiveCell, LookIn:=xlFormulas
_
LookAt:=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext
_
MatchCase:=False).Activate
ActiveCell.Offset(0, 4).Copy
Windows("Book1.XLS").Activate
Range("D4").Select
ActiveCell.PasteSpecial
Windows("Alex").Activate
Columns("A:A").Select
Selection.Find(What:="PUP", After:=ActiveCell, LookIn:=xlFormulas
_
LookAt:=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext
_
MatchCase:=False).Activate
ActiveCell.Offset(0, 6).Copy
Windows("Book1.XLS").Activate
Range("D5").Select
ActiveCell.PasteSpecial
Windows("ALEX").Activate
ActiveWindow.Close
End Su

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

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default VBA Script Porting

If they don't have Excel, then they could not open a file in Excel.

--
Regards,
Tom Ogilvy


"alexm999 " wrote in message
...
I have the following script that I use in my excel formula. I'd like to
streamline it and run it in an HTML format. (Not all managers have
access to microsoft excel).

Is there a way to port my script to work in HTML???

by the way, to activate the script, i have a button on my spreadsheet.

Sub Macro1()
Workbooks.OpenText Filename:="C:\UDC\ALEX", Origin:=xlWindows,
StartRow:= _
1, DataType:=xlDelimited, TextQualifier:=xlDoubleQuote, _
ConsecutiveDelimiter:=True, Tab:=True, Semicolon:=False,
Comma:=False, _
Space:=True, Other:=False, FieldInfo:=Array(Array(1, 1),
Array(2, 1), Array(3 _
, 1), Array(4, 1), Array(5, 1), Array(6, 1), Array(7, 1),
Array(8, 1))
Columns("A:A").Select
Selection.Find(What:="EXT", After:=ActiveCell, LookIn:=xlFormulas,
_
LookAt:=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext,
_
MatchCase:=False).Activate
ActiveCell.Offset(0, 4).Copy
Windows("Book1.XLS").Activate
Range("D4").Select
ActiveCell.PasteSpecial
Windows("Alex").Activate
Columns("A:A").Select
Selection.Find(What:="PUP", After:=ActiveCell, LookIn:=xlFormulas,
_
LookAt:=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext,
_
MatchCase:=False).Activate
ActiveCell.Offset(0, 6).Copy
Windows("Book1.XLS").Activate
Range("D5").Select
ActiveCell.PasteSpecial
Windows("ALEX").Activate
ActiveWindow.Close
End Sub


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



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default VBA Script Porting

How can I rewrite the above script in HTML format

--
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
Porting Excel 2003 Glenn_707[_2_] Setting up and Configuration of Excel 0 February 19th 09 09:16 AM
Help with the script Angela[_2_] Excel Discussion (Misc queries) 1 March 22nd 08 10:36 PM
Porting VBA Libraries MWE[_42_] Excel Programming 1 May 9th 04 11:51 PM
Excel 2000/XP script to Excel97 script hat Excel Programming 3 March 2nd 04 03:56 PM
Porting 16-bit to 32-bit Sheela Excel Programming 2 September 8th 03 05:28 AM


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