My Dear Learned Friends.
Can any help be forthcoming with 2 problems I have. The first is that when the workbook is opened, no worksheet Tabs are visible. I have checked in the advanced section of the application, and tabs is selected.
problem 2 follows
The following code runs fine on "365" but on a users computer it stops at " fName = Sheets("Home").Range("Q2").Value" will not save the file as the code intended.
I will of course be ever so grateful
kind regards
A
Can any help be forthcoming with 2 problems I have. The first is that when the workbook is opened, no worksheet Tabs are visible. I have checked in the advanced section of the application, and tabs is selected.
problem 2 follows
The following code runs fine on "365" but on a users computer it stops at " fName = Sheets("Home").Range("Q2").Value" will not save the file as the code intended.
VBA Code:
Sub aSaveAs()
Dim MyFolder As String
Dim fName As String, ext As String
Dim TempFolder As String
Application.DisplayAlerts = False
MyFolder = Environ$("USERPROFILE") & "\Users\User\Documents\Excalibur Capital Kitchens\03_FactoryJobsAndCostings"
'C:\Users\User\Documents\Excalibur Capital Kitchens\03_FactoryJobsAndCostings
If MyFolder = "" Then Exit Sub
fName = Sheets("Home").Range("Q2").Value
Application.DisplayAlerts = True
ActiveWorkbook.SaveAs Filename:=MyFolder & "\" & fName, _
CreateBackup:=False
End Sub
I will of course be ever so grateful
kind regards
A