LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 751
Default Using cell value in filenames

Neil,

thanks for the feedback. Let me clarify some things further:

The Filename:=x
expects a string for x. The assignment made here is actually

Filename:=Range("A1").Value

Value is the default property of the Range object that it could be
omitted. The expression Range("A1") refers to an object, which is not
the proper data type for this assignment. If you wanted to assign
Range("A1") to an object variable you would need

Dim rng as Object 'or Dim rng as Range
Set rng = Range("A1")

Access VBA works in the same manner re objects and simple data types.
The online documentation clarifies these things. WHen in the VBA IDE
just click on the work SaveAs and press F1. From there you will start
seeing how the object libraries work.

HTH
Kostis

 
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
Compiling macro based on cell values simonsmith Excel Discussion (Misc queries) 1 May 16th 06 08:31 PM
Instead of a negative number, I'd like to show zero... Dr. Darrell Excel Worksheet Functions 6 December 7th 05 08:21 PM
Cell color based upon cell value My View Excel Discussion (Misc queries) 11 July 6th 05 03:59 AM
cell color index comparison MINAL ZUNKE New Users to Excel 1 June 30th 05 07:11 AM
up to 7 functions? ALex Excel Worksheet Functions 10 April 12th 05 06:42 PM


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