ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   spreadsheet with multiple worksheets? (https://www.excelbanter.com/excel-programming/338981-spreadsheet-multiple-worksheets.html)

Stuart

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.


Mark

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.



All times are GMT +1. The time now is 04:20 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com