A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Select the Name of the Worksheet with InputBox



 
 
Thread Tools Display Modes
  #1  
Old September 15th, 2003, 04:39 AM
Neeraja
external usenet poster
 
Posts: n/a
Default Select the Name of the Worksheet with InputBox

Hi,

Could someone let me know how to Select the Name of the
Worksheet which has the Data with the help of an Input
box.

Right now in my Macro I am providing the user with an
option to select the Excel file. The code is as follows:

Sub OpenOneFile()

ExcelFile1 = Application.GetOpenFilename("Excel-
files,*.xls", _
1, "Select Input File To Open", , False)
If TypeName(ExcelFile1) = "Boolean" Then Exit Sub

Debug.Print "Selected file: " & ExcelFile1
Workbooks.Open ExcelFile1
End Sub


After selecting the Excel File, the user must be Provided
with an option to select the Excel Sheet which has the
needed Data. How do I do this????

I appreciate any help.
Thanks,
Neeraja.
  #2  
Old September 16th, 2003, 04:04 AM
Dave Peterson
external usenet poster
 
Posts: n/a
Default Select the Name of the Worksheet with InputBox

see one suggestion at your other post.

Neeraja wrote:

Hi,

Could someone let me know how to Select the Name of the
Worksheet which has the Data with the help of an Input
box.

Right now in my Macro I am providing the user with an
option to select the Excel file. The code is as follows:

Sub OpenOneFile()

ExcelFile1 = Application.GetOpenFilename("Excel-
files,*.xls", _
1, "Select Input File To Open", , False)
If TypeName(ExcelFile1) = "Boolean" Then Exit Sub

Debug.Print "Selected file: " & ExcelFile1
Workbooks.Open ExcelFile1
End Sub

After selecting the Excel File, the user must be Provided
with an option to select the Excel Sheet which has the
needed Data. How do I do this????

I appreciate any help.
Thanks,
Neeraja.


--

Dave Peterson

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 06:59 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.