#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 84
Default rename file

is it possible to rename a picture file using VBA? for example in file
C:/files/ i have picture.jpg, can i change that file name to
range("a1").value ?

thanks in advance
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default rename file

Use the Name statement

Dim OldName, NewName
OldName = "C:\files\i have picture.jpg
NewName = range("A1").Value
Name OldName As NewName

--

HTH

RP
(remove nothere from the email address if mailing direct)


"choice" wrote in message
...
is it possible to rename a picture file using VBA? for example in file
C:/files/ i have picture.jpg, can i change that file name to
range("a1").value ?

thanks in advance



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
rename excel file name TJ Excel Discussion (Misc queries) 8 June 27th 09 01:56 PM
problem after rename of file vcff Excel Discussion (Misc queries) 7 January 25th 07 01:10 AM
How to set SAVE AS file name to equal A1 contents when rename file E Excel Discussion (Misc queries) 0 October 19th 05 08:36 PM
Rename File Jos Vens[_2_] Excel Programming 2 January 7th 05 10:34 AM
Rename file Always Learning Excel Programming 4 July 15th 04 04:05 PM


All times are GMT +1. The time now is 05:52 PM.

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

About Us

"It's about Microsoft Excel"