ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   two easy questions take two (https://www.excelbanter.com/excel-programming/292996-two-easy-questions-take-two.html)

BrianElson

two easy questions take two
 
Sorry about that hit the enter button to fast
Question one
I have been trying to populate an array using the range method. Is that only good for Values?? Will it work with strings

Question Two
I am trying to save/Export an Excel workbook to HTML but I want to have it look like the web page preview (Office 2002). And I would like to do it programmatically. Does anybody have a good code for this

Thanks for any help

Rob van Gelder[_4_]

two easy questions take two
 
1.
Sub test()
Dim arr() As Variant

arr = Range("a1:B10")
End Sub

2.
One cool thing about Excel is the macro recorder. Set that recording while
you perform the task manually. Once complete, stop the macro recorder and
take a look at what code it produced.

--
Rob van Gelder - http://www.vangelder.co.nz/excel


"brianelson" wrote in message
...
Sorry about that hit the enter button to fast.
Question one.
I have been trying to populate an array using the range method. Is that

only good for Values?? Will it work with strings?

Question Two.
I am trying to save/Export an Excel workbook to HTML but I want to have

it look like the web page preview (Office 2002). And I would like to do it
programmatically. Does anybody have a good code for this?

Thanks for any help





All times are GMT +1. The time now is 10:41 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com