Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 486
Default best way to remove external links

Take a look at findlinks...

http://www.oaltd.co.uk/MVP/

--
HTH...

Jim Thomlinson


"Gary Keramidas" wrote:

after refreshing the external links to a text file, what's the best way to
remove the links and just save the values?

--


Gary




  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 486
Default best way to remove external links

That is a good one. I am not 100% sure. I am a little busy today but I will
see if I can find something...
--
HTH...

Jim Thomlinson


"Gary Keramidas" wrote:

doesn't find any links, this is a query to a text file that i need to delete

sorry

--


Gary


"Jim Thomlinson" wrote in
message ...
Take a look at findlinks...

http://www.oaltd.co.uk/MVP/

--
HTH...

Jim Thomlinson


"Gary Keramidas" wrote:

after refreshing the external links to a text file, what's the best way
to
remove the links and just save the values?

--


Gary







  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default best way to remove external links

activesheet.querytables(1).Delete

adjust to refer to the correct table.

--
Regards,
Tom Ogilvy




"Gary Keramidas" <GKeramidasATmsn.com wrote in message
...
after refreshing the external links to a text file, what's the best way to
remove the links and just save the values?

--


Gary





  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,440
Default best way to remove external links

Please fix your system date

--
Kind regards,

Niek Otten

"Gary Keramidas" <GKeramidasATmsn.com wrote in message
...
after refreshing the external links to a text file, what's the best way to
remove the links and just save the values?

--


Gary





  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,494
Default best way to remove external links

i did, that's windows vista that plays games with the date's and times

--


Gary


"Niek Otten" wrote in message
...
Please fix your system date

--
Kind regards,

Niek Otten

"Gary Keramidas" <GKeramidasATmsn.com wrote in message
...
after refreshing the external links to a text file, what's the best way
to remove the links and just save the values?

--


Gary









  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,440
Default best way to remove external links

Promising! :-)

"Gary Keramidas" <GKeramidasATmsn.com wrote in message
...
i did, that's windows vista that plays games with the date's and times

--


Gary


"Niek Otten" wrote in message
...
Please fix your system date

--
Kind regards,

Niek Otten

"Gary Keramidas" <GKeramidasATmsn.com wrote in message
...
after refreshing the external links to a text file, what's the best way
to remove the links and just save the values?

--


Gary









  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default best way to remove external links

Are you sure your time zone is correct?

Gary Keramidas wrote:

i did, that's windows vista that plays games with the date's and times

--

Gary

"Niek Otten" wrote in message
...
Please fix your system date

--
Kind regards,

Niek Otten

"Gary Keramidas" <GKeramidasATmsn.com wrote in message
...
after refreshing the external links to a text file, what's the best way
to remove the links and just save the values?

--


Gary






--

Dave Peterson
  #8   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 25
Default best way to remove external links

Gary:

I currently use code that loops through the entire workbook and deletes
the external data source definitions, yet leaves the data it grabbed
like this:

Sub FreezeData()
Dim MyQT, qt As QueryTable
Dim i As Integer
For Each Sheet In Sheets
i = Sheet.Index
For Each qt In Worksheets(i).QueryTables
Set MyQT = qt
MyQT.Delete
Next
Next
End Sub

HTH,
Jana

  #9   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,494
Default best way to remove external links

thanks, jana

--


Gary


"Jana" wrote in message
ups.com...
Gary:

I currently use code that loops through the entire workbook and deletes
the external data source definitions, yet leaves the data it grabbed
like this:

Sub FreezeData()
Dim MyQT, qt As QueryTable
Dim i As Integer
For Each Sheet In Sheets
i = Sheet.Index
For Each qt In Worksheets(i).QueryTables
Set MyQT = qt
MyQT.Delete
Next
Next
End Sub

HTH,
Jana



  #10   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,494
Default best way to remove external links

deleting my original post to get it off of the top


--


Gary


"Gary Keramidas" <GKeramidasATmsn.com wrote in message
...
after refreshing the external links to a text file, what's the best way to
remove the links and just save the values?

--


Gary







  #11   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 25
Default best way to remove external links

You're quite welcome, Gary. Let me know if that works for you.

Jana

  #12   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,253
Default best way to remove external links

jana's code is error prone...

To delete members of a collection:
NEVER iterate a collection by object
ALWAYS enumerate by numerical index from Highest to Lowest
THEN delete.

--
keepITcool
| www.XLsupport.com | keepITcool chello nl | amsterdam


Gary Keramidas wrote :

thanks, jana

  #13   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 25
Default best way to remove external links

Thanks,
I never knew that could cause a problem...I am still pretty new at
coding in excel. How would you recommend the code be altered?
Jana

  #14   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default best way to remove external links

Sub FreezeData()
Dim MyQT As QueryTable
Dim i As Long
Dim j As Long
For Each Sheet In Sheets
i = Sheet.Index
For j = Worksheets(i).QueryTables.Count To 1 Step -1
Set MyQT = Worksheets(i).QueryTables(j)
MyQT.Delete
Next
Next
End Sub


--

HTH

RP
(remove nothere from the email address if mailing direct)


"Jana" wrote in message
ups.com...
Thanks,
I never knew that could cause a problem...I am still pretty new at
coding in excel. How would you recommend the code be altered?
Jana



  #15   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 25
Default best way to remove external links

RP:
Thanks very much! I will implement the changes you've made.

Appreciate the clarification :)

Jana



  #16   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 510
Default best way to remove external links

Hi

It is an ODBC query, is it?
InsertNameDelete - and delete named range(s) which determine(s) returned
data range(s)


--
Arvi Laanemets
( My real mail address: arvi.laanemets<attarkon.ee )



"Gary Keramidas" <GKeramidasATmsn.com wrote in message
...
after refreshing the external links to a text file, what's the best way to
remove the links and just save the values?

--


Gary





  #17   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 510
Default best way to remove external links

Sorry!
InsertNameDefine


--
Arvi Laanemets
( My real mail address: arvi.laanemets<attarkon.ee )




  #18   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,494
Default best way to remove external links

after refreshing the external links to a text file, what's the best way to
remove the links and just save the values?

--


Gary



  #19   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,494
Default best way to remove external links

doesn't find any links, this is a query to a text file that i need to delete

sorry

--


Gary


"Jim Thomlinson" wrote in
message ...
Take a look at findlinks...

http://www.oaltd.co.uk/MVP/

--
HTH...

Jim Thomlinson


"Gary Keramidas" wrote:

after refreshing the external links to a text file, what's the best way
to
remove the links and just save the values?

--


Gary






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
External Links BustedLinks New Users to Excel 0 January 28th 10 05:57 PM
External Links bmorgan8h Excel Discussion (Misc queries) 1 February 1st 09 12:25 AM
How to remove links to external data Ron Drexler Excel Discussion (Misc queries) 0 October 5th 07 03:21 PM
external links ghoward Excel Worksheet Functions 3 February 7th 05 06:11 PM
How do I remove external links from Excel 2000 workbook? mlwest Excel Discussion (Misc queries) 2 February 4th 05 10:52 PM


All times are GMT +1. The time now is 12:42 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"