Visual Basic Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreVisual Basic Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
You eat, breathe and sleep innovation. Build your mobile intelligence with BlackBerry® experts this July. Register Today!
  #1  
Old June 14th, 2003, 02:58 PM
nitroklaus nitroklaus is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Posts: 3 nitroklaus User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to nitroklaus
Excel Enhanced Linking

ADDITIONAL INFORMATION
I need someone helping me with advanced Linking in EXCEL. Skills in VBA seem to be appropriate, Excel knowledge is important. Here the job: We have a list in Excel. We want the list to link to 2 different types of images (thumbnail and full size image). Since Excel provides only simple Linking I need someone creating complex links with javascript (for open sized windows i.e.)

Detailled info.
The list contains items which are fotographed ina studio. The studio secretary now updates the list with status (in progess, material unavailable, finished) and link the items (sometimes more than one) to the appropriate image. now the excel page is uploaded to the web and and a customer should be able to view the images.
I need a smooth and easy way to link in EXCEL to the images, create a html page with a CLOSE WINDOW and the thumbnail/fullsize image in it.

Reply With Quote
  #2  
Old June 15th, 2003, 09:54 PM
mohecan mohecan is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Location: Melbourne, Australia
Posts: 212 mohecan User rank is Private First Class (20 - 50 Reputation Level)mohecan User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
You can use VBA forms to link the images.
i.e. Have a dialog come up prompting for the location of the thumb and the full size image.
Then upon submission, set the values of the excel cells to the values retrieved from the dialog. Use the following code to get a file to open from the user.

Code:
Sub File_Selection()
'This procedure opens the "Open File" Dialog
    On Error GoTo ErrHandler
      Dim FileToOpen
      FileToOpen = Application.GetOpenFilename("Images, *.jpg")
      Range(YourRange).value = FileToOpen

Exit Sub

ErrHandler:
    HandleError (Err)
End Sub


I'm pretty sure you can also invoke the Save As Web function from within VBA as well.

Does this help?
__________________
How can I soar like an eagle when
I'm flying with turkey's?

Reply With Quote
  #3  
Old June 16th, 2003, 02:01 AM
nitroklaus nitroklaus is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Posts: 3 nitroklaus User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to nitroklaus
Good idea. How about the Javascript Linking

Yeah - that seems a good idea. Thanks!
Does anyone knows something about enhanced linking in Excel (Javascript, Popupwindow?)

Reply With Quote
  #4  
Old June 16th, 2003, 02:11 AM
mohecan mohecan is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Location: Melbourne, Australia
Posts: 212 mohecan User rank is Private First Class (20 - 50 Reputation Level)mohecan User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
I got the following from MS Excel Help (searching on Java), it may point you in the right direction.

About creating and modifying Web scripts
You can add Microsoft Visual Basic Scripting Edition (VBScript) or JavaScript to Microsoft Excel data to be used on a Web page by using the Insert Script command (which you must add to the menu) and the Microsoft Script Editor command (Tools menu, Macro submenu).

What scripting is used for Scripting is useful for custom Web-based solutions development. It provides a full object model for the Web browser and the objects on the current page. This makes it possible to write code that manipulates elements on the page without having to know the details of the underlying HTML or how the objects are implemented. You can also create script code that is specifically designed to handle events that occur on objects (such as ActiveX controls) on your page. For information about using scripts to handle object events, refer to Microsoft Script Editor Help.

Using Microsoft Office WebBot Components WebBots are web script (JavaScript or VBScript) applets that can be embedded in Office9 documents that use Dynamic HTML (DHTML) script to create an interactive Web page. Learn about WebBots.

Viewing scripts and HTML code If you want to view the HTML code along with any script code for your data or Web page, you can open the Microsoft Script Editor. In the Script Editor, you can add text, modify HTML tags, and modify script code. You can also view your data as it would appear in a Web browser and modify it in this view.


hope this helps

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreVisual Basic Programming > Excel Enhanced Linking


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway