|
-
Jun 6th, 2003, 02:55 AM
#1
Thread Starter
Lively Member
how to use the insert picture form
in excel, when you use insert \ picture \ from file you got a dialog box who appear, I want to use it and get back the adress of the file, and then do my business with it, but i don't know how to do
-
Jun 6th, 2003, 03:14 AM
#2
??
What do you need?, the code to insert a picture
VB Code:
ActiveSheet.Pictures.Insert("C:\Pictures\Terst.bmp").Select
(got that from the macro-recorder.)
Or what?
You're welcome to rate this post!
If your problem is solved, please use the Mark thread as resolved button
Wait, I'm too old to hurry!
-
Jun 6th, 2003, 03:22 AM
#3
Thread Starter
Lively Member
I want the user, to choose his picture with this form, and i want to get the link as a text
-
Jun 6th, 2003, 03:28 AM
#4
In this case use the commondialog, you can set the filter to whatever file-extensionm you need and you get the filename and path back.
You're welcome to rate this post!
If your problem is solved, please use the Mark thread as resolved button
Wait, I'm too old to hurry!
-
Jun 6th, 2003, 03:42 AM
#5
Thread Starter
Lively Member
what is the common dialog where is it and how to use it, i'm working on vba for excel
-
Jun 6th, 2003, 04:07 AM
#6
Oh, sorry, can't find it in VBA either.
Try this
[vbcode9
Dim dlganswer
dlganswer = Application.Dialogs(xlDialogOpen).Show
[/Highlight]
and look into the help section
Have to leave, long weekend is starting!
By
You're welcome to rate this post!
If your problem is solved, please use the Mark thread as resolved button
Wait, I'm too old to hurry!
-
Jun 6th, 2003, 04:21 AM
#7
Thread Starter
Lively Member
you're too lucky actually i'm in china working 6 days a week
-
Jun 6th, 2003, 04:27 AM
#8
Thread Starter
Lively Member
ok this code is perfect
VB Code:
Dim dlganswer
dlganswer = Application.Dialogs(xlDialogInsertPicture).Show
but i still don't know how to get the path of the file as a text
-
Jun 6th, 2003, 04:17 PM
#9
Hi, French-China-Men
Why don't you use the same source for that information I'd be using? Exel-VBA-Help!
I don't have that at my home-computer, so it's up to you now!
You're welcome to rate this post!
If your problem is solved, please use the Mark thread as resolved button
Wait, I'm too old to hurry!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|