Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 62
Default spreadsheet with multiple worksheets?

i want to be able to autoamtically use Foxpro Import/Append commands to read
all worksheets in an xls and write data to a foxpro .dbf file. I need to
know how i can access the worksheet (tab) names w/o having to hardcode them.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 989
Default spreadsheet with multiple worksheets?

dim i as integer

for i = 1 to activeworkbook.sheets.count step 1

msgbox sheets(i).name

next i

Adjust it for what you need, but that's how to get the sheet name.


"stuart" wrote:

i want to be able to autoamtically use Foxpro Import/Append commands to read
all worksheets in an xls and write data to a foxpro .dbf file. I need to
know how i can access the worksheet (tab) names w/o having to hardcode them.

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
merge multiple worksheets from multiple excel files into oneworksheet Shamoun Ilyas Excel Discussion (Misc queries) 5 November 19th 08 09:48 PM
How to split up one spreadsheet into multiple worksheets Gloria Lewis Excel Discussion (Misc queries) 1 March 3rd 08 05:18 PM
Delete Blank Rows Code - Multiple Worksheets - Multiple Documents BenS Excel Discussion (Misc queries) 3 June 29th 07 12:20 AM
How do I print a spreadsheet with multiple worksheets? Need Help Excel Discussion (Misc queries) 1 May 23rd 06 10:17 PM
How do you populate one spreadsheet from multiple worksheets in a. Curious Excel Worksheet Functions 0 May 9th 06 09:50 PM


All times are GMT +1. The time now is 05:45 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"