Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Programming Assistance

Hello All:

I have an Access application that needs to import a "sheet" from a workbook.
In this work book, I have "Sheet1", "Sheet2", "Sheet3","Sheet4". In the
Access app, I use an input box to have the user enter the appropriate sheet
they want to import into Access. For instance, the user types in "Sheet3". In
code (Access VBA) how do I import this sheet (Sheet3). The Access code is

variable here is the input box result

DoCmd.TransferSpreadsheet acImport, acSpreadsheetTypeExcel9, variable,
strFileName, True

The intent is to import ONLY that sheet. The code above only imports Sheet1,
not the intended one.

Oh BTW, I have an open dialog box to allow the user to select the
appropriate Excel file.

Does this make sense ??

Thanks in AAdvance !

G Man
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Need assistance VROSARIO7 Excel Worksheet Functions 1 July 6th 09 08:43 PM
Assistance please Gauri Excel Worksheet Functions 2 June 25th 08 08:22 AM
Excel Programming - Formula Assistance James D. Sheehan Excel Discussion (Misc queries) 7 December 11th 07 02:54 PM
programming assistance biker man Excel Discussion (Misc queries) 3 July 26th 07 10:11 PM
I Need VBA Assistance for EOF Brent E Excel Discussion (Misc queries) 4 February 26th 05 06:00 PM


All times are GMT +1. The time now is 05:42 PM.

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

About Us

"It's about Microsoft Excel"