Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default how do i obtain a file name from a cell contents and use it to sa.

I am trying to run a macro to save a file but want to obtain the filename
from the contents of a specific cell
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default how do i obtain a file name from a cell contents and use it to sa.

Activeworkbook.Saves fileName:= Range("A1").Value

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"Paul Bond" <Paul wrote in message
...
I am trying to run a macro to save a file but want to obtain the filename
from the contents of a specific cell



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,494
Default how do i obtain a file name from a cell contents and use it to sa.

i think bob has an inadvertent typo in is code

ActiveWorkbook.SaveAs Filename:=Range("A1").Value

--


Gary


"Bob Phillips" wrote in message
...
Activeworkbook.Saves fileName:= Range("A1").Value

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"Paul Bond" <Paul wrote in message
...
I am trying to run a macro to save a file but want to obtain the filename
from the contents of a specific cell





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
Need hyperlink function to obtain range name from a cell (contents DW Excel Worksheet Functions 4 January 12th 08 11:07 PM
Obtain imported file modified date mikeburg[_62_] Excel Programming 2 January 18th 06 05:08 PM
VBA macro to obtain file names using WIN32 API Mudd[_2_] Excel Programming 3 September 5th 04 12:17 AM
Trying to save contents of cell as the file name Rob van Gelder[_4_] Excel Programming 0 April 1st 04 12:57 AM
Saving a file(new) using the multiple cell contents as a file name Dave Peterson[_3_] Excel Programming 1 August 1st 03 01:40 PM


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