+ Reply to Thread
Results 1 to 8 of 8

Save cell content as .scr file

  1. #1
    Registered User
    Join Date
    06-20-2009
    Location
    Belgrade, Serbia
    MS-Off Ver
    Excel 2007
    Posts
    35

    Save cell content as .scr file

    I would like to know is there a way to save a content of single cell (i would give it a name like a named range) to txt file but with an extension .scr (it would be a fixed name like "drawings.scr"). Its an autocad script routine. I use excel sheet to create one but i need some automation when saving it.
    Thanks in advance!
    Last edited by sakinen; 07-10-2011 at 04:53 PM.

  2. #2
    Valued Forum Contributor
    Join Date
    06-19-2010
    Location
    Holywell, N Wales, UK
    MS-Off Ver
    Excel 2013
    Posts
    470

    Re: Save cell content as .scr file

    Hi sakinen
    At its simplest the attached may get you going.
    Change your desired file location etc. in the macro before running it.
    The cell to be written just has a row,col reference not a Name in this example.
    Note you will probably have to rename the file to .txt to view it in Notepad
    Attached Files Attached Files

  3. #3
    Forum Expert snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,649

    Re: Save cell content as .scr file

    Please Login or Register  to view this content.



  4. #4
    Registered User
    Join Date
    06-20-2009
    Location
    Belgrade, Serbia
    MS-Off Ver
    Excel 2007
    Posts
    35

    Re: Save cell content as .scr file

    Thanks a lot guys.
    SNB's code seems simpler and to the point. Shoots for a range like i need it.
    I consider this solved but i have another question. How to make a path for saving file in manner that its always saved in the folder where the excel file from which i use this macro resides.
    Thanks again

  5. #5
    Forum Expert snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,649

    Re: Save cell content as .scr file

    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    06-20-2009
    Location
    Belgrade, Serbia
    MS-Off Ver
    Excel 2007
    Posts
    35

    Re: Save cell content as .scr file

    Thanks. This puts an end to it.....

  7. #7
    Registered User
    Join Date
    09-04-2013
    Location
    india
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Save cell content as .scr file

    thanks sir

  8. #8
    Registered User
    Join Date
    09-04-2013
    Location
    india
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Save cell content as .scr file

    this file is writing only one cell in the scr file. What if i want to write a range from A1:B37.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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