+ Reply to Thread
Results 1 to 4 of 4

Open Excel.Exe as ReadOnly using VBA

Hybrid View

  1. #1
    Registered User
    Join Date
    11-24-2014
    Location
    Texas
    MS-Off Ver
    MS Office Professional 2010
    Posts
    30

    Post Open Excel.Exe as ReadOnly using VBA

    How do i open a brand new Excel (Excel.exe) as read only? I have this but it is not working.

    Application.DisplayAlerts = False
    Dim NewExcel As String
    SetAttr NewExcel, vbReadOnly
    NewExcel = "C:\Program Files\Microsoft Office\Office14\EXCEL.exe"


    Range("A14:F14", ActiveCell.End(xlDown)).Copy
    Shell NewExcel
    Cells.Select
    Selection.NumberFormat = "@"
    ActiveSheet.PasteSpecial Format:="Text", Link:=False, DisplayAsIcon:= _
    False
    ActiveSheet.Columns("A:F").AutoFit
    Range("G1").Select

  2. #2
    Forum Expert gmr4evr1's Avatar
    Join Date
    11-24-2014
    Location
    Texas
    MS-Off Ver
    Office 2010 and 2007
    Posts
    3,448

    Re: Open Excel.Exe as ReadOnly using VBA

    Did I misunderstand something. You want to open a blank excel file as ReadOnly, as in the default Book1 excel file?
    1N73LL1G3NC3 15 7H3 4B1L17Y 70 4D4P7 70 CH4NG3 - 573PH3N H4WK1NG
    You don't have to add Rep if I have helped you out (but it would be nice), but please mark the thread as SOLVED if your issue is resolved.

    Tom

  3. #3
    Registered User
    Join Date
    11-24-2014
    Location
    Texas
    MS-Off Ver
    MS Office Professional 2010
    Posts
    30

    Re: Open Excel.Exe as ReadOnly using VBA

    Yes correct. A new excel blank workbook. But not the typical Ctrl+N option. I mean Start>All Programs>Microsoft Office> Excel 2010.

  4. #4
    Forum Expert gmr4evr1's Avatar
    Join Date
    11-24-2014
    Location
    Texas
    MS-Off Ver
    Office 2010 and 2007
    Posts
    3,448

    Re: Open Excel.Exe as ReadOnly using VBA

    I have looked into this bit but have found nothing related to what you are wanting to do. In fact, I'm not sure I have ever heard of anyone wanting to do this.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Workbooks.Open (Readonly:= true) fails at random times
    By wannabeNerd in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-30-2015, 03:53 AM
  2. [SOLVED] Open workbook if not readonly. If readonly try again.
    By Metrazal in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-29-2014, 02:45 PM
  3. saving Excel addin which is set to ReadOnly
    By xlrotor in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-25-2013, 03:37 PM
  4. Workbook Open ReadOnly
    By KRAND in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-01-2011, 11:59 PM
  5. Printing Excel Workbooks in Readonly
    By Tortus in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-12-2009, 07:47 AM
  6. [SOLVED] How do I use VC++6.0 to protect a excel file to readonly
    By gowinder in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-21-2005, 10:05 PM
  7. How do I use VC++6.0 to protect a excel file to readonly
    By gowinder in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-21-2005, 10:05 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1