Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Export Linkedcell


Hello all,


I am new to this list, and hope you all may help me here.


I am using Excel 2k and need to extract the Linked cell of all th
check
box's I have on a sheet. I have searched the web for weeks and hav
found
code that will supposed to do this but it never did. Here is the las
code
that I have looks like...


Sub FindOut()


Dim oCheck As Shape

Open "C:\CheckBoxInfo.Txt" For Output As #1

For Each oCheck In ActiveSheet.Shapes
If oCheck.Type = msoOLEControlObject Then
oCheck.Select
Print #1, Selection.LinkedCell
End If
Next

Close

End Sub


This error's out with "Object does not support this"


Does anyone have a way to do this?


Thanks in advance for any help here

--
racerma
-----------------------------------------------------------------------
racerman's Profile: http://www.excelforum.com/member.php...fo&userid=2698
View this thread: http://www.excelforum.com/showthread.php?threadid=40195

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,290
Default Export Linkedcell

r,

The following code returns the linked cell address,
if the Checkboxes come from the Control Toolbox.

Jim Cone
San Francisco, USA

'-----------------
Sub FindOut()
Dim objCB As OLEObject
Dim strAddress As String
For Each objCB In ActiveSheet.OLEObjects
If TypeOf objCB.Object Is MSForms.CheckBox Then
strAddress = objCB.LinkedCell
MsgBox strAddress ' or add to a text file...
End If
Next
Set objCB = Nothing
End Sub
'-----------------


"racerman"

wrote in message


Hello all,
I am new to this list, and hope you all may help me here.
I am using Excel 2k and need to extract the Linked cell of all the
check box's I have on a sheet. I have searched the web for weeks
and have found code that will supposed to do this but it never did.
Here is the last code that I have looks like...

Sub FindOut()
Dim oCheck As Shape
Open "C:\CheckBoxInfo.Txt" For Output As #1

For Each oCheck In ActiveSheet.Shapes
If oCheck.Type = msoOLEControlObject Then
oCheck.Select
Print #1, Selection.LinkedCell
End If
Next

Close
End Sub

This error's out with "Object does not support this"
Does anyone have a way to do this?
Thanks in advance for any help here!--
racerman

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Export Linkedcell


Jim Cone Wrote:
r,

The following code returns the linked cell address,
if the Checkboxes come from the Control Toolbox.

Jim Cone
San Francisco, USA

'-----------------
Sub FindOut()
Dim objCB As OLEObject
Dim strAddress As String
For Each objCB In ActiveSheet.OLEObjects
If TypeOf objCB.Object Is MSForms.CheckBox Then
strAddress = objCB.LinkedCell
MsgBox strAddress ' or add to a text file...
End If
Next
Set objCB = Nothing
End Sub
'-----------------



Jim you are the man!!!!!
Thanks loads it works great

--
racerma
-----------------------------------------------------------------------
racerman's Profile: http://www.excelforum.com/member.php...fo&userid=2698
View this thread: http://www.excelforum.com/showthread.php?threadid=40195

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
ActiveX Combobox and LinkedCell aqualibra Excel Worksheet Functions 2 August 21st 08 08:36 PM
Combo Box "LinkedCell" option Patty via OfficeKB.com Excel Discussion (Misc queries) 0 August 2nd 05 10:01 PM
Linkedcell protection problem Karin New Users to Excel 2 June 24th 05 12:03 AM
LinkedCell Update does not always respond Jeroen Kluytmans Excel Programming 4 April 16th 04 08:58 AM
Linkedcell Problems... cornishbloke[_25_] Excel Programming 3 January 21st 04 02:45 PM


All times are GMT +1. The time now is 04:34 PM.

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

About Us

"It's about Microsoft Excel"