Excel Built in Data Form

laurawr

New Member
Joined
Mar 3, 2011
Messages
32
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 -

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
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
I can't reproduce that behaviour in Excel 2003. For me the data form is always on top of the active worksheet - it's modal.
 
Upvote 0
Hi Andrew,

Yes i think it is modal but, I have a userform that activates the dataform on top of the userform. if i go to another document it seems the dataform goes underneath the userform.

:/

L
 
Upvote 0
Oh sorry yes i unserdtand what you mean, i cant toggle the screen updating on at that point as opening the dataform pauses the macro showing the spreadsheet that i have hidden.
 
Upvote 0

Forum statistics

Threads
1,224,522
Messages
6,179,299
Members
452,904
Latest member
CodeMasterX

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top