Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Select Data in Worksheet 1
I am able to select data from worksheet 1 if I know the sheet name...
OleDbCommand objCmdSelect =new OleDbCommand("SELECT * FROM [Sheet1$]", objConn); How would I just get the data from the first (primary sheet) if I do not know the name of Sheet1$ ? Thanks in advance! |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Select Data in Worksheet 1
Jim,
This self-same question was asked back in April. Here is my suggested solution using ADOX to get that first sheet name http://tinyurl.com/yw6dp -- HTH Bob Phillips ... looking out across Poole Harbour to the Purbecks (remove nothere from the email address if mailing direct) "Jim M" wrote in message ... I am able to select data from worksheet 1 if I know the sheet name... OleDbCommand objCmdSelect =new OleDbCommand("SELECT * FROM [Sheet1$]", objConn); How would I just get the data from the first (primary sheet) if I do not know the name of Sheet1$ ? Thanks in advance! |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Select/Sort Hierarichal Data in worksheet | Excel Worksheet Functions | |||
Reference another Worksheet and Conditionally Select Data | Excel Worksheet Functions | |||
Select data onto new worksheet | Excel Discussion (Misc queries) | |||
SELECT large amount of data in a worksheet | Excel Discussion (Misc queries) | |||
Move select data to another worksheet | Excel Discussion (Misc queries) |