PC Review


Reply
Thread Tools Rate Thread

Automatic Update links to web query

 
 
Alfredo_CPA
Guest
Posts: n/a
 
      16th Sep 2008
1. Are there any way to Automatic Update links to web query.
Let say, I want to simulate clicking the refresh button every 60 seconds.

2. My web query is in sheet2 (showed as raw data). My usefull (already
manipulated data) with links to sheet 2 is in sheet1. I noticed the refresh
option is available just when I'm in sheet2. Are there any way to refresh the
web query from sheet1




--
I'm not a looser, I keep trying…
 
Reply With Quote
 
 
 
 
Excel.Instructor
Guest
Posts: n/a
 
      16th Sep 2008
On Sep 16, 3:24*pm, Alfredo_CPA <ramos_...@yahoo.com.(donotspam)>
wrote:
> 1. Are there any way to Automatic Update links to web query.
> Let say, I want to simulate clicking the refresh button every 60 seconds.
>
> 2. My web query is in sheet2 (showed as raw data). My usefull (already
> manipulated data) with links to sheet 2 is in sheet1. I noticed the refresh
> option is available just when I'm in sheet2. Are there any way to refreshthe
> web query from sheet1
>
> --
> I'm not a looser, I keep trying…


Alfredo-

Here is a macro that will do the job. You'll need to replace the
"B15" cell reference with any cell on your Sheet2 that contains data
from the web query. Basically, if you can right click that cell and
the Refresh option appears, it's usable in this macro.

Sub UpdateWeb()
Worksheets("Sheet2").Range("B15").Select
Selection.QueryTable.Refresh BackgroundQuery:=False
End Sub

Regards,
Excel.Instructor (Ed2go.com/Advanced Excel)
 
Reply With Quote
 
Don Guillett
Guest
Posts: n/a
 
      16th Sep 2008
Just edit your query data range properties

--
Don Guillett
Microsoft MVP Excel
SalesAid Software
(E-Mail Removed)
"Excel.Instructor" <(E-Mail Removed)> wrote in message
news:9dd2c7ec-94ad-422e-aadb-(E-Mail Removed)...
On Sep 16, 3:24 pm, Alfredo_CPA <ramos_...@yahoo.com.(donotspam)>
wrote:
> 1. Are there any way to Automatic Update links to web query.
> Let say, I want to simulate clicking the refresh button every 60 seconds.
>
> 2. My web query is in sheet2 (showed as raw data). My usefull (already
> manipulated data) with links to sheet 2 is in sheet1. I noticed the
> refresh
> option is available just when I'm in sheet2. Are there any way to refresh
> the
> web query from sheet1
>
> --
> I'm not a looser, I keep trying…


Alfredo-

Here is a macro that will do the job. You'll need to replace the
"B15" cell reference with any cell on your Sheet2 that contains data
from the web query. Basically, if you can right click that cell and
the Refresh option appears, it's usable in this macro.

Sub UpdateWeb()
Worksheets("Sheet2").Range("B15").Select
Selection.QueryTable.Refresh BackgroundQuery:=False
End Sub

Regards,
Excel.Instructor (Ed2go.com/Advanced Excel)

 
Reply With Quote
 
Alfredo_CPA
Guest
Posts: n/a
 
      17th Sep 2008
This code gives me an error message:
Worksheets("NFL Link").Range("J30").Select
I Can't figure out what is wrong...

--



"Excel.Instructor" wrote:

> On Sep 16, 3:24 pm, Alfredo_CPA <ramos_...@yahoo.com.(donotspam)>
> wrote:
> > 1. Are there any way to Automatic Update links to web query.
> > Let say, I want to simulate clicking the refresh button every 60 seconds.
> >
> > 2. My web query is in sheet2 (showed as raw data). My usefull (already
> > manipulated data) with links to sheet 2 is in sheet1. I noticed the refresh
> > option is available just when I'm in sheet2. Are there any way to refresh the
> > web query from sheet1
> >
> > --
> > I'm not a looser, I keep trying…

>
> Alfredo-
>
> Here is a macro that will do the job. You'll need to replace the
> "B15" cell reference with any cell on your Sheet2 that contains data
> from the web query. Basically, if you can right click that cell and
> the Refresh option appears, it's usable in this macro.
>
> Sub UpdateWeb()
> Worksheets("Sheet2").Range("B15").Select
> Selection.QueryTable.Refresh BackgroundQuery:=False
> End Sub
>
> Regards,
> Excel.Instructor (Ed2go.com/Advanced Excel)
>

 
Reply With Quote
 
Don Guillett
Guest
Posts: n/a
 
      17th Sep 2008
You must either select the sheet and THEN select the range or use
application.goto

application.goto Worksheets("NFL Link").Range("J30")
If desired, send your workbook to me and I'll have a look.

--
Don Guillett
Microsoft MVP Excel
SalesAid Software
(E-Mail Removed)
"Alfredo_CPA" <(E-Mail Removed).(donotspam)> wrote in message
news:A1583A2A-2715-45BF-800A-(E-Mail Removed)...
> This code gives me an error message:
> Worksheets("NFL Link").Range("J30").Select
> I Can't figure out what is wrong...
>
> --
>
>
>
> "Excel.Instructor" wrote:
>
>> On Sep 16, 3:24 pm, Alfredo_CPA <ramos_...@yahoo.com.(donotspam)>
>> wrote:
>> > 1. Are there any way to Automatic Update links to web query.
>> > Let say, I want to simulate clicking the refresh button every 60
>> > seconds.
>> >
>> > 2. My web query is in sheet2 (showed as raw data). My usefull (already
>> > manipulated data) with links to sheet 2 is in sheet1. I noticed the
>> > refresh
>> > option is available just when I'm in sheet2. Are there any way to
>> > refresh the
>> > web query from sheet1
>> >
>> > --
>> > I'm not a looser, I keep trying…

>>
>> Alfredo-
>>
>> Here is a macro that will do the job. You'll need to replace the
>> "B15" cell reference with any cell on your Sheet2 that contains data
>> from the web query. Basically, if you can right click that cell and
>> the Refresh option appears, it's usable in this macro.
>>
>> Sub UpdateWeb()
>> Worksheets("Sheet2").Range("B15").Select
>> Selection.QueryTable.Refresh BackgroundQuery:=False
>> End Sub
>>
>> Regards,
>> Excel.Instructor (Ed2go.com/Advanced Excel)
>>


 
Reply With Quote
 
Alfredo_CPA
Guest
Posts: n/a
 
      17th Sep 2008
My code now looks like:

Sub UpdateWeb()
application.goto Worksheets("NFL Link").Range("J30")
Selection.QueryTable.Refresh BackgroundQuery:=False
End Sub

Now I need a code to go back to the original sheet (which name will change -
i.e. the name will not be always the same). In this way I can update the
links from a different sheet with just one click.

Thanks

--
I''''''''m not a looser, I keep trying…


"Don Guillett" wrote:

> You must either select the sheet and THEN select the range or use
> application.goto
>
> application.goto Worksheets("NFL Link").Range("J30")
> If desired, send your workbook to me and I'll have a look.
>
> --
> Don Guillett
> Microsoft MVP Excel
> SalesAid Software
> (E-Mail Removed)
> "Alfredo_CPA" <(E-Mail Removed).(donotspam)> wrote in message
> news:A1583A2A-2715-45BF-800A-(E-Mail Removed)...
> > This code gives me an error message:
> > Worksheets("NFL Link").Range("J30").Select
> > I Can't figure out what is wrong...
> >
> > --
> >
> >
> >
> > "Excel.Instructor" wrote:
> >
> >> On Sep 16, 3:24 pm, Alfredo_CPA <ramos_...@yahoo.com.(donotspam)>
> >> wrote:
> >> > 1. Are there any way to Automatic Update links to web query.
> >> > Let say, I want to simulate clicking the refresh button every 60
> >> > seconds.
> >> >
> >> > 2. My web query is in sheet2 (showed as raw data). My usefull (already
> >> > manipulated data) with links to sheet 2 is in sheet1. I noticed the
> >> > refresh
> >> > option is available just when I'm in sheet2. Are there any way to
> >> > refresh the
> >> > web query from sheet1
> >> >
> >> > --
> >> > I'm not a looser, I keep trying…
> >>
> >> Alfredo-
> >>
> >> Here is a macro that will do the job. You'll need to replace the
> >> "B15" cell reference with any cell on your Sheet2 that contains data
> >> from the web query. Basically, if you can right click that cell and
> >> the Refresh option appears, it's usable in this macro.
> >>
> >> Sub UpdateWeb()
> >> Worksheets("Sheet2").Range("B15").Select
> >> Selection.QueryTable.Refresh BackgroundQuery:=False
> >> End Sub
> >>
> >> Regards,
> >> Excel.Instructor (Ed2go.com/Advanced Excel)
> >>

>
>

 
Reply With Quote
 
Don Guillett
Guest
Posts: n/a
 
      17th Sep 2008

As I said, feel free to send your workbook to my address below so I can
understand what is going on.

--
Don Guillett
Microsoft MVP Excel
SalesAid Software
(E-Mail Removed)
"Alfredo_CPA" <(E-Mail Removed).(donotspam)> wrote in message
news:B69A7703-8F5D-4B43-BF75-(E-Mail Removed)...
> My code now looks like:
>
> Sub UpdateWeb()
> application.goto Worksheets("NFL Link").Range("J30")
> Selection.QueryTable.Refresh BackgroundQuery:=False
> End Sub
>
> Now I need a code to go back to the original sheet (which name will
> change -
> i.e. the name will not be always the same). In this way I can update the
> links from a different sheet with just one click.
>
> Thanks
>
> --
> I''''''''m not a looser, I keep trying…
>
>
> "Don Guillett" wrote:
>
>> You must either select the sheet and THEN select the range or use
>> application.goto
>>
>> application.goto Worksheets("NFL Link").Range("J30")
>> If desired, send your workbook to me and I'll have a look.
>>
>> --
>> Don Guillett
>> Microsoft MVP Excel
>> SalesAid Software
>> (E-Mail Removed)
>> "Alfredo_CPA" <(E-Mail Removed).(donotspam)> wrote in message
>> news:A1583A2A-2715-45BF-800A-(E-Mail Removed)...
>> > This code gives me an error message:
>> > Worksheets("NFL Link").Range("J30").Select
>> > I Can't figure out what is wrong...
>> >
>> > --
>> >
>> >
>> >
>> > "Excel.Instructor" wrote:
>> >
>> >> On Sep 16, 3:24 pm, Alfredo_CPA <ramos_...@yahoo.com.(donotspam)>
>> >> wrote:
>> >> > 1. Are there any way to Automatic Update links to web query.
>> >> > Let say, I want to simulate clicking the refresh button every 60
>> >> > seconds.
>> >> >
>> >> > 2. My web query is in sheet2 (showed as raw data). My usefull
>> >> > (already
>> >> > manipulated data) with links to sheet 2 is in sheet1. I noticed the
>> >> > refresh
>> >> > option is available just when I'm in sheet2. Are there any way to
>> >> > refresh the
>> >> > web query from sheet1
>> >> >
>> >> > --
>> >> > I'm not a looser, I keep trying…
>> >>
>> >> Alfredo-
>> >>
>> >> Here is a macro that will do the job. You'll need to replace the
>> >> "B15" cell reference with any cell on your Sheet2 that contains data
>> >> from the web query. Basically, if you can right click that cell and
>> >> the Refresh option appears, it's usable in this macro.
>> >>
>> >> Sub UpdateWeb()
>> >> Worksheets("Sheet2").Range("B15").Select
>> >> Selection.QueryTable.Refresh BackgroundQuery:=False
>> >> End Sub
>> >>
>> >> Regards,
>> >> Excel.Instructor (Ed2go.com/Advanced Excel)
>> >>

>>
>>


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Automatic update of links has been disabled - how do I get rid of Kevin Microsoft Excel Misc 1 11th Mar 2010 05:57 PM
Automatic Update of Links =?Utf-8?B?U3RldmUgSHVudA==?= Microsoft Word Document Management 1 24th Nov 2006 03:27 PM
options to update automatic links Werner Rohrmoser Microsoft Excel Worksheet Functions 0 10th Nov 2005 12:58 PM
Update Automatic Links at Open Steve Marsden Microsoft Word Document Management 1 26th Nov 2003 07:11 PM
Update Automatic Links Jim Fleming Microsoft Word Document Management 6 22nd Nov 2003 12:12 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:18 PM.