help_for_excel
Board Regular
- Joined
- Feb 24, 2012
- Messages
- 72
Hi,
My question is:
Log is range in excel, where user comes and pastes file location in excel with file name and extension then below code runs perfectly
Open (Range("log")) For Output As #iFileNo
but I want to user to only mention location and I want to provide file name and extension from vba then below line of code does run as above
Open (Range("log" & "& error.txt")) For Output As #iFileNo
can any one tell me, how to merge file location provided by user and file name and extension from vba.
My question is:
Log is range in excel, where user comes and pastes file location in excel with file name and extension then below code runs perfectly
Open (Range("log")) For Output As #iFileNo
but I want to user to only mention location and I want to provide file name and extension from vba then below line of code does run as above
Open (Range("log" & "& error.txt")) For Output As #iFileNo
can any one tell me, how to merge file location provided by user and file name and extension from vba.