can i know what wrong with my codeSub zrefresh()
Sheets Array("a", "b", "c", "d").Select
Selection.QueryTable.Refresh BackgroundQuery:=True
End Sub
can i know what wrong with my codeSub zrefresh()
Sheets Array("a", "b", "c", "d").Select
Selection.QueryTable.Refresh BackgroundQuery:=True
End Sub
Last edited by sungpeng; 12-20-2007 at 01:45 AM.
sungpeng
1) Can you please edit your post to wrap your code as per the forum rules.
2) Not sure about the query part but change
to![]()
Sheets Array("a", "b", "c", "d").Select
for the grouping.![]()
Sheets(Array("a", "b", "c", "d")).Select
rylo
sungpeng
Please read forum rules & wrap your VBA code
A thread with the rules is available at the top of each forum or see links below
If you do not understand the VBA code wrap instructions have a look at my last reply in this thread
http://www.excelforum.com/showthread.php?t=583950
Please Read Forum Rules Before Posting
Wrap VBA code by selecting the code and clicking the # icon or Read This
How To Cross Post politely
Top Excel links for beginners to Experts
If you are pleased with a member's answer then use the Scales icon to rate it
If my reply has assistedor failed to assist you
I welcome your Feedback.
how to edit my post to wrap my code
i want to refresh and import data from web. can i know why is it not workingSub zrefresh()
Sheets(Array("a", "b", "c", "d", "e", "f", "g", "h", "i", "j")).Select
Selection.QueryTable.Refresh BackgroundQuery:=True
End Sub
thank
sungpeng
1) Go back to your original post, select the edit key, highlight the code, then press the # button. This will wrap your code.
2) What is the error message you are getting?
rylo
run-time error '1004':
Application-defined or object-defined error
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks