Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Disabling external data refresh using vba

I am importing text files into excel automatically, but
after the first time I do it, I don't want the data to
update again. The excel file is opened automatically
using a macro, so I tried to use a macro to turn it off,
but could not find anything that effected it. Does anyone
have any idea's on how I can do this?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 135
Default Disabling external data refresh using vba

You should be able to get all the code for this by doing the operation
manually with the macro recorder turned on.

HTH,
Shockley


"BryanL" wrote in message
...
I am importing text files into excel automatically, but
after the first time I do it, I don't want the data to
update again. The excel file is opened automatically
using a macro, so I tried to use a macro to turn it off,
but could not find anything that effected it. Does anyone
have any idea's on how I can do this?



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Disabling external data refresh using vba



When using the macro recorder, it shows opening the file, but does not
show disabling the external data importer. Does anyone know if this is
even possible?


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 135
Default Disabling external data refresh using vba

Sorry, I didn't understand your question. Would it work to protect the
workbook after the first refresh?

Regards,
Shockley


"Bryan L" wrote in message
...


When using the macro recorder, it shows opening the file, but does not
show disabling the external data importer. Does anyone know if this is
even possible?


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Disabling external data refresh using vba

Protecting the workbook stops the data from being imported, which is
what I was looking for; however, it also stops the macro from
completeing, because it asked for user intervention to keep going. Is
there a way to suppress this error message, or another way to stop the
data from being imported?



*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!


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
Automatic refresh of external data Rick Excel Worksheet Functions 1 May 26th 08 06:41 PM
External data refresh Texas Tonie[_2_] Excel Discussion (Misc queries) 1 April 17th 07 11:02 AM
external data refresh shoreguy Excel Discussion (Misc queries) 0 March 7th 06 06:30 PM
Automatic refresh of external data Keith Streich Links and Linking in Excel 2 March 10th 05 01:49 PM
Best way to refresh data from an external file Sharon[_4_] Excel Programming 2 August 13th 03 04:40 PM


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