![]() |
|
#1
|
||||
|
||||
![]()
In that example you haven't populated the two string variables so it would struggle to work...
Code:
Sub aTest() Dim oldFile As String, newFile As String oldFile = "C:\Work\My Pictures\image1.wmf" newFile = "C:\Work\My Pictures\image2.wmf" Name oldFile As newFile End Sub ie debug.print Application.Name debug.print Name Both the above lines would return a string that shows the name of the current application.
__________________
Andrew Lockton Chrysalis Design, Melbourne Australia |
#2
|
|||
|
|||
![]()
Name command works
My problem was that newName = "xxxx12 .png" with space. When I removed the space it works. Thanks |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
erik@haagensen.no | Word VBA | 5 | 08-19-2017 11:02 PM |
![]() |
BobKnepper | Word | 2 | 05-22-2016 07:30 AM |
![]() |
aaronbauer1980 | Excel Programming | 1 | 04-15-2016 05:53 PM |
![]() |
hklein | Word VBA | 4 | 10-14-2013 04:40 PM |
![]() |
Jack R | Outlook | 1 | 07-05-2010 08:50 PM |