R
ryguy7272
I am trying to do a simple web, from a password-protected site:
This is the link:
http://www.countrybobsdemo.com/administrator/
Temporary Username = Ryan and temporary password = ryan123 (case
sensitive). I recorded a simple macro:
Sub Macro1()
Cells.Select
Selection.ClearContents
If QueryTable = True Then
Selection.QueryTable.Delete
Else
Range("A1").Select
With ActiveSheet.QueryTables.Add(Connection:= _
"URL;http://www.countrybobsdemo.com/admi...n=com_rsform&task=submissions.manage&formId=*" _
, Destination:=Range("A1"))
.Name = "administrator/index.php?option=*"
.FieldNames = True
.RowNumbers = False
.FillAdjacentFormulas = False
.PreserveFormatting = True
.RefreshOnFileOpen = False
.BackgroundQuery = True
.RefreshStyle = xlInsertDeleteCells
.SavePassword = False
.SaveData = True
.AdjustColumnWidth = True
.RefreshPeriod = 0
.WebSelectionType = xlSpecifiedTables
.WebFormatting = xlWebFormattingNone
.WebTables = "3"
.WebPreFormattedTextToColumns = True
.WebConsecutiveDelimitersAsOne = True
.WebSingleBlockTextImport = False
.WebDisableDateRecognition = False
.WebDisableRedirections = False
.Refresh BackgroundQuery:=False
End With
End If
Range("C:C,A:A").Select
Range("A1").Activate
Selection.Delete Shift:=xlToLeft
Range("A1").Select
End Sub
I log into the web site first and run the code next. The code works fine
the first time it is run, but doesn't work any subsequent times. i believe
it has something to do with this line:
..Name = "administrator/index.php?option=*"
I'm not sure what to change on there to make it more 'generic'. I tried the
astrix symbol, but no luck with that.
Any ideas how to modify that line code?
Thanks so much,
Ryan---
This is the link:
http://www.countrybobsdemo.com/administrator/
Temporary Username = Ryan and temporary password = ryan123 (case
sensitive). I recorded a simple macro:
Sub Macro1()
Cells.Select
Selection.ClearContents
If QueryTable = True Then
Selection.QueryTable.Delete
Else
Range("A1").Select
With ActiveSheet.QueryTables.Add(Connection:= _
"URL;http://www.countrybobsdemo.com/admi...n=com_rsform&task=submissions.manage&formId=*" _
, Destination:=Range("A1"))
.Name = "administrator/index.php?option=*"
.FieldNames = True
.RowNumbers = False
.FillAdjacentFormulas = False
.PreserveFormatting = True
.RefreshOnFileOpen = False
.BackgroundQuery = True
.RefreshStyle = xlInsertDeleteCells
.SavePassword = False
.SaveData = True
.AdjustColumnWidth = True
.RefreshPeriod = 0
.WebSelectionType = xlSpecifiedTables
.WebFormatting = xlWebFormattingNone
.WebTables = "3"
.WebPreFormattedTextToColumns = True
.WebConsecutiveDelimitersAsOne = True
.WebSingleBlockTextImport = False
.WebDisableDateRecognition = False
.WebDisableRedirections = False
.Refresh BackgroundQuery:=False
End With
End If
Range("C:C,A:A").Select
Range("A1").Activate
Selection.Delete Shift:=xlToLeft
Range("A1").Select
End Sub
I log into the web site first and run the code next. The code works fine
the first time it is run, but doesn't work any subsequent times. i believe
it has something to do with this line:
..Name = "administrator/index.php?option=*"
I'm not sure what to change on there to make it more 'generic'. I tried the
astrix symbol, but no luck with that.
Any ideas how to modify that line code?
Thanks so much,
Ryan---