SpearC1993
New Member
- Joined
- Jan 22, 2016
- Messages
- 5
Hello all,
Back again for another question!
Can I use a cell value in VBA to open a file for example:
Set January = Workbooks.Open("C:\Users\"CELL A1 HERE".xls") <- this is a guess
In my work sheet have a cell like such
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]January_3047[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
The result would then be that the macro would open an excel in the location "C:\Users\January_3047.xls". At the moment I have statically written these in but I dont want to write over this code every month.
Back again for another question!
Can I use a cell value in VBA to open a file for example:
Set January = Workbooks.Open("C:\Users\"CELL A1 HERE".xls") <- this is a guess
In my work sheet have a cell like such
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]January_3047[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
The result would then be that the macro would open an excel in the location "C:\Users\January_3047.xls". At the moment I have statically written these in but I dont want to write over this code every month.