PC Review


Reply
Thread Tools Rate Thread

Automatically insert pictures

 
 
excel programming
Guest
Posts: n/a
 
      1st Dec 2006
Greetings All,

I am setting up a tool that users will insert 1-46 pictures from a
specific directory on their pc's.
It is already set up so that you click a button, insert pic 1, click
button and insert picture 2, etc.

I'd like to have the macro insert all the pictures but would like to
avoid the users having to deal with a run time error, instead I just
want it to stop, or better yet, display a message XX pictures inserted.
A stretch I am sure, so if it stops without the run time error I'll be
happy.

Thanks

Mike

 
Reply With Quote
 
 
 
 
excel programming
Guest
Posts: n/a
 
      4th Dec 2006
One segment of the insert photo macro, any help is appreciated.

Sub Insert03()
Range("A182").Select
ActiveSheet.unprotect
ActiveSheet.Pictures.Insert("C:\dcir\3.JPG").Select
Selection.ShapeRange.LockAspectRatio = msoTrue
Selection.ShapeRange.Height = 324#
Selection.ShapeRange.Width = 432#
Selection.ShapeRange.IncrementLeft 70.5
ActiveSheet.PageSetup.printarea = "$A$1:$I$212"
Range("d114").FormulaR1C1 = "3"
Range("B180").Select
End Sub


(E-Mail Removed) wrote:
> What is the runtime error you are getting? Can you post the relevant
> section of your code? That'll make it a little easier.
>
> Regards,
> Steve
> www.stkomp.com
>
>
> excel programming wrote:
> > Greetings All,
> >
> > I am setting up a tool that users will insert 1-46 pictures from a
> > specific directory on their pc's.
> > It is already set up so that you click a button, insert pic 1, click
> > button and insert picture 2, etc.
> >
> > I'd like to have the macro insert all the pictures but would like to
> > avoid the users having to deal with a run time error, instead I just
> > want it to stop, or better yet, display a message XX pictures inserted.
> > A stretch I am sure, so if it stops without the run time error I'll be
> > happy.
> >
> > Thanks
> >
> > Mike


 
Reply With Quote
 
excel programming
Guest
Posts: n/a
 
      4th Dec 2006
Forgot to add: Runtime error: 1004
Unable to get the insert property of the pictures class.


excel programming wrote:
> One segment of the insert photo macro, any help is appreciated.
>
> Sub Insert03()
> Range("A182").Select
> ActiveSheet.unprotect
> ActiveSheet.Pictures.Insert("C:\dcir\3.JPG").Select
> Selection.ShapeRange.LockAspectRatio = msoTrue
> Selection.ShapeRange.Height = 324#
> Selection.ShapeRange.Width = 432#
> Selection.ShapeRange.IncrementLeft 70.5
> ActiveSheet.PageSetup.printarea = "$A$1:$I$212"
> Range("d114").FormulaR1C1 = "3"
> Range("B180").Select
> End Sub
>
>
> (E-Mail Removed) wrote:
> > What is the runtime error you are getting? Can you post the relevant
> > section of your code? That'll make it a little easier.
> >
> > Regards,
> > Steve
> > www.stkomp.com
> >
> >
> > excel programming wrote:
> > > Greetings All,
> > >
> > > I am setting up a tool that users will insert 1-46 pictures from a
> > > specific directory on their pc's.
> > > It is already set up so that you click a button, insert pic 1, click
> > > button and insert picture 2, etc.
> > >
> > > I'd like to have the macro insert all the pictures but would like to
> > > avoid the users having to deal with a run time error, instead I just
> > > want it to stop, or better yet, display a message XX pictures inserted.
> > > A stretch I am sure, so if it stops without the run time error I'll be
> > > happy.
> > >
> > > Thanks
> > >
> > > Mike


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Automatically insert time in excel but not automatically updated NeueN Microsoft Excel Worksheet Functions 5 14th Apr 2012 11:30 AM
Want to insert multiple pictures and then crop individual pictures alex20850 Microsoft Powerpoint 3 1st Aug 2008 04:18 AM
Pictures and old Access 2.0, form ant command to insert pictures =?Utf-8?B?RHVzYW4=?= Microsoft Access 1 8th May 2007 11:43 PM
cant insert pictures SUSAN PHILLIPS Windows XP Accessibility 4 20th Aug 2006 07:39 AM
insert the date automatically, and insert a number automatically KC Microsoft Excel Worksheet Functions 3 16th Mar 2004 10:26 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:17 PM.