Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default SORTING AFTER AUTOMATED REFRESHING OF DATA

In Excel i have a query with an automatic refreshrate
from 10 minutes. The data wich is imported in an
excelsheet is coming from a *.txt file.
In excel the data must be sorted al the time in column B.
Everytime after refreshing automatically i have to sort
again manual. Is there a way in VB to handle this also
automaticaly. Now i have a button for it with a macro.

Thank yoy so much
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,092
Default SORTING AFTER AUTOMATED REFRESHING OF DATA

If the Query is done with VBA then put the sort code at the end of the query
code. If not queried with code, then put your sort code in that worksheet's
code under Private Sub Worksheet_SelectionChange(ByVal Target As Range).
When any cell on that sheet changes value, your sort code will run.
Mike F
"Ruud van Deursen" wrote in message
...
In Excel i have a query with an automatic refreshrate
from 10 minutes. The data wich is imported in an
excelsheet is coming from a *.txt file.
In excel the data must be sorted al the time in column B.
Everytime after refreshing automatically i have to sort
again manual. Is there a way in VB to handle this also
automaticaly. Now i have a button for it with a macro.

Thank yoy so much



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 134
Default SORTING AFTER AUTOMATED REFRESHING OF DATA

If you are getting your data through get exteral
data/micorsoft query, there is a sort in mirosoft query.
click any cell inside the query range then on the menu bar
date get external data edit query. a wizard will

appear. the sort criterial in on the third sheet.

-----Original Message-----
In Excel i have a query with an automatic refreshrate
from 10 minutes. The data wich is imported in an
excelsheet is coming from a *.txt file.
In excel the data must be sorted al the time in column B.
Everytime after refreshing automatically i have to sort
again manual. Is there a way in VB to handle this also
automaticaly. Now i have a button for it with a macro.

Thank yoy so much
.

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
Automated Data Summary Worksheet kimmy8240 Excel Discussion (Misc queries) 0 July 31st 09 01:41 AM
Moving data from one worksheet to another in automated, linked, or BruceLoe Excel Discussion (Misc queries) 3 June 1st 08 05:27 PM
Need help with refreshing data Cam Excel Discussion (Misc queries) 0 April 15th 08 07:12 PM
How to turn off the automated dates in excel (when importing data) Sanna Excel Discussion (Misc queries) 2 July 4th 07 01:04 PM
Refreshing external data breaks sorting of function columns BNick Excel Discussion (Misc queries) 0 October 2nd 06 06:46 PM


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