Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
What if the file this time is from a web address
https://something.something.somethin.../filename.more verbage.something.123456.xlsl How do i go about asking the macro to run the input box. Or do i just have to save it as an excel file first and just run the following statemnt.? If the file and its location were something like "C:\MyFolder\Myfilenamestart123456.xls" then you could use: Sub OpenFile() Dim title as String, ans as String Title = "Q:\Daily\Weekly and HBI reports" ans = InputBox("Enter the 6 digit number") if len(ans) < 6 or not isnumeric(ans) then msgbox "Incorrect, try again" exit sub End if Workbooks.Open Title & ans & ".xls" End Sub |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
It wouldn't be any different.
-- Regards, Tom Ogilvy "Ella" wrote in message oups.com... What if the file this time is from a web address https://something.something.somethin.../filename.more verbage.something.123456.xlsl How do i go about asking the macro to run the input box. Or do i just have to save it as an excel file first and just run the following statemnt.? If the file and its location were something like "C:\MyFolder\Myfilenamestart123456.xls" then you could use: Sub OpenFile() Dim title as String, ans as String Title = "Q:\Daily\Weekly and HBI reports" ans = InputBox("Enter the 6 digit number") if len(ans) < 6 or not isnumeric(ans) then msgbox "Incorrect, try again" exit sub End if Workbooks.Open Title & ans & ".xls" End Sub |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How do I input address data into a table in Excel 2007? | New Users to Excel | |||
ADDRESS function - dynamic input cell | Excel Discussion (Misc queries) | |||
automate input of an address from Outlook into excel | Excel Discussion (Misc queries) | |||
Getting cell address from input box | Excel Programming | |||
Pause macro for user cell address input | Excel Programming |