+ Reply to Thread
Results 1 to 4 of 4

Macro to save file as cell value

  1. #1
    Registered User
    Join Date
    08-29-2012
    Location
    Scotland
    MS-Off Ver
    Excel 2010
    Posts
    84

    Macro to save file as cell value

    Hi,

    Looking to create a macro that will save as a cell value in my spreadsheet. Does anyone how to go about this?

  2. #2
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,198

    Re: Macro to save file as cell value

    Hi, Nicola13,

    something like this for the workbook holding the code:

    Please Login or Register  to view this content.
    Ciao,
    Holger
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

  3. #3
    Registered User
    Join Date
    08-29-2012
    Location
    Scotland
    MS-Off Ver
    Excel 2010
    Posts
    84

    Re: Macro to save file as cell value

    Holger,

    How can I adapt this to my workbook? The cell I want to use is F39. I am getting a 'Run-time error 9 Subscript out of range' for the following line
    Please Login or Register  to view this content.

  4. #4
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,198

    Re: Macro to save file as cell value

    Hi, Nicola13,

    you need to adjust both the sheetname and the range. Letīs assume your sheet shows Nicola13 on the tab of the sheet:

    Please Login or Register  to view this content.
    If you want the code to work on every Worksheet in the workbook with the code you should go with
    Please Login or Register  to view this content.
    HTH
    Holger

+ 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