I have connected excel with mssql 2008 database and now the data is filled into excel but it is not a table. I want to create a table automatically when the data load.I have
I guess you could buid a form with a range control, but why not simply using ActiveCell as the destination range ?
You could eventually add a MsgBox to confirm that "Table will be created at currently active cell. Click OK to continue, or Cancel" (or something similar).
You cannot display the built in range dialog, but you can display a dialog box that asks for a range like this:
Dim ThisRng As Range
Set ThisRng = Application.InputBox("Select a range", "Get Range", Type:=8)