Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Programming / February 2006

Tip: Looking for answers? Try searching our database.

How to select a specific column with Excel VBA

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Dennis - 28 Feb 2006 03:38 GMT
Excel 2003

I am exporting hyperlink data from Access to Excel.  I plan to use code from
Microsoft KB Article 271856 to turn the text in a specific Excel column back
into a working hyperlink.  

I need help with VBA code to select that specific column in the worksheet
that contains the hyperlink data so I can run the code from the KB article.  

Signature

Dennis

Norman Jones - 28 Feb 2006 06:38 GMT
Hi Dennis,

Try posting your export code.

---
Regards,
Norman

> Excel 2003
>
[quoted text clipped - 7 lines]
> that contains the hyperlink data so I can run the code from the KB
> article.
Dennis - 28 Feb 2006 13:41 GMT
Code to export to Excel...
   Dim stDocName As String

   stDocName = "Table1 Query"
   DoCmd.OutputTo acReport, stDocName, acFormatXLS, "c:\dennis\test.xls"

Code from KB271856...
Sub HyperAdd()
'
' Converts each text hyperlink selected into a working hyperlink
'
For Each xCell In Selection
ActiveSheet.Hyperlinks.Add Anchor:=xCell, Address:=xCell.Formula
Next xCell
'
'
End Sub
Signature

Dennis

> Hi Dennis,
>
[quoted text clipped - 15 lines]
> > that contains the hyperlink data so I can run the code from the KB
> > article.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.