View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ahmaq Ahmaq is offline
external usenet poster
 
Posts: 4
Default how to pass on different parameters to VBA Code?

Hi Friends,

For below code, i need to create a macro which copy the URL from a cell and
pass on to the web query URL written in another macro:

ActiveSheet.QueryTables.Add(Connection:= _
"URL;http://www.website.com", _
Destination:=Range("D20"))

Can you please advise how to pass on different parameters to above code?

Thanks in advance.

--
No one can steal your knowledge