Good Morning
I have a spreadsheet full of data which is hidden and various userforms are in place to navigate.
To modify the data in the spreadsheet I have used the built in dataform on excel.
my code -
It was activesheet.showdataform but the date was show in american format, the code above does exactly the same but changes the date to UK format as in the spreadsheet.
Now my problem is, when i want to look at other documents when the dataform is open, ill open the other document e.g. word, come back to my excel userform and the dataform has disappeared behind all the applications and i have to press alt+tab to find it. Is there anyway to avoid it going behind?
Regards
Laura
I have a spreadsheet full of data which is hidden and various userforms are in place to navigate.
To modify the data in the spreadsheet I have used the built in dataform on excel.
my code -
Code:
Private Sub findBtn_Click()
'unhide index
Application.ScreenUpdating = False
ThisWorkbook.Sheets("HPIN Index").Visible = True
ThisWorkbook.Activate
ThisWorkbook.Sheets("HPIN Index").Select
'show data form & save on close
ActiveSheet.UsedRange.Cells(2, 4).Activate
Application.CommandBars.FindControl(ID:=860).Execute
ThisWorkbook.Save
'make index hidden
ThisWorkbook.Sheets("HPIN Index").Visible = False
Application.ScreenUpdating = True
End Sub
It was activesheet.showdataform but the date was show in american format, the code above does exactly the same but changes the date to UK format as in the spreadsheet.
Now my problem is, when i want to look at other documents when the dataform is open, ill open the other document e.g. word, come back to my excel userform and the dataform has disappeared behind all the applications and i have to press alt+tab to find it. Is there anyway to avoid it going behind?
Regards
Laura