LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,355
Default Syntax to define sheet name to use in VBA

Thanks for all of your help with VBA. I have yet another question:

Currently, I've been copying data from a pre-defined sheet number in
multiple workbooks. I'd like to be able to identify the worksheet name to
be copied from. I have this:

Set sourceRange = mybook.Worksheets(SheetNumber).Range("A25:IV45")

And want to put the worksheet name in instead. Suggestions?

Also, if there is no such sheet name in the workbook, what should I do to
deal with the errors.

Thanks,
Barb Reinhardt
 
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
Define sheet name then select sheet merry_fay Excel Discussion (Misc queries) 3 December 13th 07 01:23 PM
Define a sheet in an array using a cell value VDU Excel Worksheet Functions 2 November 15th 07 02:00 PM
using cells to define sheet references patrickgamer Excel Discussion (Misc queries) 1 April 27th 06 08:55 PM
define range name, use on VBA selected sheet Bob Swan Excel Programming 0 June 30th 05 02:08 PM
Syntax to define a variable for current file Mervyn Thomas Excel Programming 2 December 22nd 03 06:01 PM


All times are GMT +1. The time now is 08:54 PM.

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

About Us

"It's about Microsoft Excel"