![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Board Regular
Join Date: Mar 2002
Location: Sydney/Brisbane , Australia
Posts: 539
|
how do i rename a picture inserted into excel.
i.e. default name is "picture 1". |
|
|
|
|
|
#2 |
|
Board Regular
Join Date: Mar 2002
Location: Cincinnati, Ohio, USA
Posts: 6,824
|
Hi
Select your picture and rename it in the name box... The name box is the combobox directly above column A on a default sheet. Tom |
|
|
|
|
|
#3 |
|
Board Regular
Join Date: Mar 2002
Location: Sydney/Brisbane , Australia
Posts: 539
|
Thanks for that.. but i am trying to do it in a macro so that i can then set the size properties of the shape. the problem is that each time i add a shape it gets a new number... currently i am doing a activesheet.pictures.insert but i cant work out how to give it a new name |
|
|
|
|
|
#4 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: Auckland, New Zealand
Posts: 4,209
|
Quote:
Sub Name() Dim Pict As Object '// Note Inserts Picture Object @ Activecell and names it Set Pict = ActiveSheet.Pictures.Insert("C:My DocumentsMy PicturesBALL01.PCX") Pict.Name = "mypicture1" End Sub |
|
|
|
|
|
|
#5 |
|
Board Regular
Join Date: Mar 2002
Location: Sydney/Brisbane , Australia
Posts: 539
|
SOLUTION:
pict = folder & Frame & ext Range("e6").Select ActiveSheet.Pictures.Insert(pict).Select Selection.Name = "picture 1" Thanx Ivan. but i think i stole this from one of your old postings |
|
|
|
|
|
#6 |
|
Board Regular
Join Date: Apr 2002
Location: Cape Town,South Africa
Posts: 234
|
How's about renaming the picture totally in its name box ?
|
|
|
|
|
|
#7 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: Auckland, New Zealand
Posts: 4,209
|
Quote:
|
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|