Forum Discussion

olopa67's avatar
olopa67
Brass Contributor
Jan 24, 2022
Solved

saving a file with a cell value error

Hi all, i ve got this VBA which save my file using a cell reference as a name, the code seems to work ok, the only issue is, if, and when i decide to re-save excel will ask me if i want to overwrite...
  • NowshadAhmed's avatar
    Jan 24, 2022
    On Error Resume Next # This line helps macro to resume when there is an error. Use it after Sub line:
    Sub SvMe()
    On Error Resume Next
    'Saves filename as value of A1

Resources