How to Make Excel Read-Only?

andm

New member
Local time
Today, 08:37
Joined
Feb 1, 2001
Messages
6
Hi there!

I'm using Visual Basic. I can get my Excel workbook to appear. I just can't make it read-only when it appears. Do you know the line of code that would do this?

Here is my code so far...

Set xlBook = GetObject(EXCEL_PATH_LASTTRADEDATE)

xlBook.Application.Visible = True

xlBook.Windows(1).Visible = True

xlBook.Activate

Set xlBook = Nothing


Thank you for your help!!
Andrea
smile.gif
 

Users who are viewing this thread

Back
Top Bottom