Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 78
Default Assign cell value to equal file path for loading

My original request was to read a path from column A and in column insert an
object (AutoCAD file) based on that path. Well, no luck so far. Can someone
help me. If Column A has the example below, what formula or programming
would I use to cascade down column A, reading the values, inserting the
object (I might convert them all to jpgs and insert picture if that is
easier) based on the value in columnA.

Column A
C:\Documents and Settings\jason.hopson\My
Documents\5590_1_RECEIVE\5590_SLDW_AUTO.dwg

This could have been done manually by now so now I am really in a tough
spot. It just seems as though it should be simple and possible :).

Thanks again, I think Tom, Ron, and all the MVP's and others are a serious
part of support, above and beyond the normal support avenues. Reality builds
confidence and you don't get that from a support hotline.
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 78
Default Assign cell value to equal file path for loading

AFter all the postings I have out there and complexity of some of those, your
little code solved my initial issue - I think I need to learn how to explain
in more detail - smile. BUT I still have two things :)

1) When the picture is inserted it is huge, how to automate scaling down
that picture when it comes in with your program.

2) Do you know how to tweak it for AutoCAD DWG file import?

Thank you for your hard work - it really helped me.

"Gary Brown" wrote:

Sub Macro1()
On Error Resume Next
Range("B2").Select
Do
ActiveSheet.Pictures.Insert( _
ActiveCell.Offset(0, -1).Value).Select
ActiveCell.Offset(1, 0).Select
If Len(ActiveCell.Offset(0, -1).Value) = 0 Then Exit Do
Loop
End Sub

--
HTH,
Gary Brown

If this post was helpful to you, please select ''YES'' at the bottom of the
post.



"Rookie_User" wrote:

My original request was to read a path from column A and in column insert an
object (AutoCAD file) based on that path. Well, no luck so far. Can someone
help me. If Column A has the example below, what formula or programming
would I use to cascade down column A, reading the values, inserting the
object (I might convert them all to jpgs and insert picture if that is
easier) based on the value in columnA.

Column A
C:\Documents and Settings\jason.hopson\My
Documents\5590_1_RECEIVE\5590_SLDW_AUTO.dwg

This could have been done manually by now so now I am really in a tough
spot. It just seems as though it should be simple and possible :).

Thanks again, I think Tom, Ron, and all the MVP's and others are a serious
part of support, above and beyond the normal support avenues. Reality builds
confidence and you don't get that from a support hotline.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do you assign a Workbook Location Path to a cell? bcw_now[_2_] Excel Worksheet Functions 1 May 8th 09 12:25 AM
Formula too long - new file path is shorter than old file path - Excel 2003 Greg J Excel Worksheet Functions 1 November 22nd 06 05:16 PM
How can I assign a varable to equal an array? (it allready has a name) hamma_thrower Excel Programming 4 September 6th 05 03:09 PM
how do I assign a cell equal to another cell yl Excel Discussion (Misc queries) 2 March 16th 05 11:19 AM
Loading xll file from vbscript only works if my associated dlls are in the path isby19 Excel Programming 0 September 20th 04 08:09 PM


All times are GMT +1. The time now is 05:17 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"