Forum

Opening a sheet wit...
 
Notifications
Clear all

Opening a sheet with cell reference through VBA

2 Posts
2 Users
0 Reactions
52 Views
(@akansh2196)
Posts: 11
Eminent Member
Topic starter
 

Hello, 

Let's say I have a sheet with A1 cell having value as "1" and I have a folder having file 1.xlsx. Can I write a code such that the name of the file will be selected from a given reference cell and the file corresponding to that name automatically opens up and I don't have to browse individually.

Please assist.

 
Posted : 13/09/2020 2:03 pm
Philip Treacy
(@philipt)
Posts: 1629
Member Admin
 

Hi,

Try this

Workbooks.Open Range("A1").Value & ".xlsx"

Regards

Phil

 
Posted : 13/09/2020 7:05 pm
Share: