Hi Ashish, 
 
Unfortunately, it has failed again. The message I get indicates...
 
Run Time error '1004'
 
"Insert method of pictures class failed".
 
Not certain if it matters, but I am inserting bitmaps (.bmp). I am also 
using Excel 2007.
 

On Thursday, October 3, 2013 9:54:51 AM UTC-4, ashish wrote:

> try this
> Sub test()
> ActiveSheet.Pictures.Insert ("C:\Users\admin\Desktop\Excel Tips & 
> Tricks\01.jpg")
>
> With ActiveSheet.Shapes(ActiveSheet.Shapes.Count)
>     .LockAspectRatio = False
>     .Left = Range("a1").Left
>     .Top = Range("a1").Left
>     .Width = 180
>     .Height = 180
> End With
>
> End Sub
>
>
>
>
> On Thu, Oct 3, 2013 at 5:52 AM, Bill Q <ronsm...@gmail.com 
> <javascript:>>wrote:
>
>> Hi Ashish, 
>>
>> I put the macro into the workbook, but it is not working when executed. I 
>> assume that I must be doing something wrong. I have attached the 
>> spreadsheet in question with a sample photo. Essentially, I want to be able 
>> to configure the size to say.... 2.5" x 2.5" in size consistently 
>> regardless of the resolution of the source. Further, I would ideally like 
>> the macro to automatically re-size it to this dimension once it is dropped 
>> in (if possible).
>>
>> Thanks.
>>
>> On Wednesday, October 2, 2013 9:47:08 AM UTC-4, ashish wrote:
>>>
>>> try this see if it helps
>>> Sub test()
>>> ActiveSheet.Pictures.Insert ("C:\Users\admin\Desktop\Excel Tips & 
>>> Tricks\01.jpg")
>>>
>>> With ActiveSheet.Shapes(**ActiveSheet.Shapes.Count)
>>>     .Left = Range("a1").Left
>>>     .Top = Range("a1").Top
>>>     .Width = Range("a1").Width
>>>     .Height = Range("a1").Height
>>> End With
>>>
>>> End Sub
>>>
>>>
>>>
>>> On Wed, Oct 2, 2013 at 6:54 PM, Bill Q <ronsm...@gmail.com> wrote:
>>>
>>>> Hi, 
>>>>  
>>>> I know how to insert the image. The thing is I want the cell to always 
>>>> be always the same size.
>>>>  
>>>> Any advice ? 
>>>>  
>>>> Thanks. 
>>>>
>>>> -- 
>>>> Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be? 
>>>> It’s =TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @ 
>>>> https://www.facebook.com/**discussexcel<https://www.facebook.com/discussexcel>
>>>>  
>>>> FORUM RULES
>>>>  
>>>> 1) Use concise, accurate thread titles. Poor thread titles, like Please 
>>>> Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice 
>>>> will not get quick attention or may not be answered.
>>>> 2) Don't post a question in the thread of another member.
>>>> 3) Don't post questions regarding breaking or bypassing any security 
>>>> measure.
>>>> 4) Acknowledge the responses you receive, good or bad.
>>>> 5) Jobs posting is not allowed.
>>>> 6) Sharing copyrighted material and their links is not allowed.
>>>>  
>>>> NOTE : Don't ever post confidential data in a workbook. Forum owners 
>>>> and members are not responsible for any loss.
>>>> --- 
>>>> You received this message because you are subscribed to the Google 
>>>> Groups "MS EXCEL AND VBA MACROS" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send 
>>>> an email to excel-macros...@**googlegroups.com.
>>>> To post to this group, send email to excel-...@googlegroups.com.
>>>> Visit this group at 
>>>> http://groups.google.com/**group/excel-macros<http://groups.google.com/group/excel-macros>
>>>> .
>>>> For more options, visit 
>>>> https://groups.google.com/**groups/opt_out<https://groups.google.com/groups/opt_out>
>>>> .
>>>>
>>>
>>>
>>>
>>> -- 
>>> *Regards*
>>> * *
>>> *Ashish Koul*
>>>
>>>
>>> *Visit*
>>> *My Excel Blog <http://www.excelvbamacros.com/>*
>>> Like Us on 
>>> Facebook<http://www.facebook.com/pages/Excel-VBA-Codes-Macros/151803898222297>
>>> Join Us on Facebook <http://www.facebook.com/groups/163491717053198/>
>>>
>>>
>>> P Before printing, think about the environment.
>>>
>>>  
>>>  
>>  -- 
>> Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be? It’s 
>> =TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @ 
>> https://www.facebook.com/discussexcel
>>  
>> FORUM RULES
>>  
>> 1) Use concise, accurate thread titles. Poor thread titles, like Please 
>> Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice 
>> will not get quick attention or may not be answered.
>> 2) Don't post a question in the thread of another member.
>> 3) Don't post questions regarding breaking or bypassing any security 
>> measure.
>> 4) Acknowledge the responses you receive, good or bad.
>> 5) Jobs posting is not allowed.
>> 6) Sharing copyrighted material and their links is not allowed.
>>  
>> NOTE : Don't ever post confidential data in a workbook. Forum owners and 
>> members are not responsible for any loss.
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "MS EXCEL AND VBA MACROS" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to excel-macros...@googlegroups.com <javascript:>.
>> To post to this group, send email to excel-...@googlegroups.com<javascript:>
>> .
>> Visit this group at http://groups.google.com/group/excel-macros.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>
>
>
> -- 
> *Regards*
> * *
> *Ashish Koul*
>
>
> *Visit*
> *My Excel Blog <http://www.excelvbamacros.com/>*
> Like Us on 
> Facebook<http://www.facebook.com/pages/Excel-VBA-Codes-Macros/151803898222297>
> Join Us on Facebook <http://www.facebook.com/groups/163491717053198/>
>
>
> P Before printing, think about the environment.
>
>  
>  

-- 
Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be? It’s 
=TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @ 
https://www.facebook.com/discussexcel

FORUM RULES

1) Use concise, accurate thread titles. Poor thread titles, like Please Help, 
Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get 
quick attention or may not be answered.
2) Don't post a question in the thread of another member.
3) Don't post questions regarding breaking or bypassing any security measure.
4) Acknowledge the responses you receive, good or bad.
5) Jobs posting is not allowed.
6) Sharing copyrighted material and their links is not allowed.

NOTE  : Don't ever post confidential data in a workbook. Forum owners and 
members are not responsible for any loss.
--- 
You received this message because you are subscribed to the Google Groups "MS 
EXCEL AND VBA MACROS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to excel-macros+unsubscr...@googlegroups.com.
To post to this group, send email to excel-macros@googlegroups.com.
Visit this group at http://groups.google.com/group/excel-macros.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to