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: 10
Default How to capture a Property as a variable

I need to copy a number of sheets from other workbooks into one workbook.
For ease of identification I name each worksheet by its workbook.name
property.
Thus the copied sheets appear as "name.xls".
I would like to get rid off the .xls in the name.
I am able to do this by the following function
Do Until Mid(t, j, 1) = "."
y = y + Mid(t, j, 1)
j = j + 1
Loop
Since the workbook name changes as many times as I copy sheets.
I need to assign variable t = workbook.name property
I don't know what type of variable I need to declare.
I have tried variant etc but nothing works.
I have also tried to put [workbook.name]
Most of the time i get an error message that says that i require an object.
Am I on the right track? Can someone help?
 
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
How capture a date variable within a text cell? Capture a variable date & use with text[_2_] Excel Discussion (Misc queries) 4 November 28th 08 02:34 AM
range variable won't assign (chartobject.topleftcell property) Matthew Dodds Excel Programming 2 November 16th 05 02:25 PM
how to use object variable to change the property of a Fendic[_13_] Excel Programming 4 August 6th 05 07:12 PM
variable for columns(??).property Neal Zimm Excel Programming 4 June 10th 05 02:28 PM
Capture Custom View in a Variable Randy[_10_] Excel Programming 1 July 11th 04 06:56 AM


All times are GMT +1. The time now is 11:20 AM.

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"