![]() |
|
|
|
#1
|
|||
|
|||
|
Thanks Paul, I will certainly give a try.
This Word VBA appears to be somehow less powerful than VBA for Excel, but that is probably because I am new to it. NSV |
|
#2
|
|||
|
|||
|
OK Paul, that worked so that even I could understand it! - thanks again!
|
|
#3
|
|||
|
|||
|
Hi, all.
Thanks, Paul, it functions. But, I think there is a catch, at least on Office(Word) 365 USA and Brazil versions: Shape gets a name Picture # (Picture 1, Picture 2, etc); if you try to add a "Tag", like Code:
shpPicture.Name = shpPicture.Name & "_" & Format(Now(), "yyyymmdd") & imageTag You have to remove the space, like: Code:
shpPicture.Name = VBA.Replace(shpPicture.Name & "_" & Format(Now(), "yyyymmdd") & imageTag, " ", "") PS 2: Amazing thing, the index Array at the end, with no need of intermediate variables, thanks for teach it. |
|
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
Picture content control -> insert picture -> empty?
|
Jaymond Flurrie | Word | 3 | 07-13-2016 07:00 AM |
Convert an imported chart (picture) to an editable drawing object
|
fishguy | Drawing and Graphics | 1 | 05-23-2016 02:23 AM |
| Rename Files | gsrikanth | Excel Programming | 3 | 05-14-2012 03:03 AM |
| Move Picture by picture name, rename picture by picture name | CatMan | PowerPoint | 2 | 04-18-2012 12:21 PM |
| Powerpoint automatically changing picture size when adding a picture (2010) | One_Life | PowerPoint | 7 | 01-20-2012 06:57 AM |