Forum

VBA changing Worksh...
 
Notifications
Clear all

VBA changing Worksheet

8 Posts
3 Users
0 Reactions
74 Views
(@madfc101)
Posts: 4
Active Member
Topic starter
 

Here is the code I am using to import sheets into new workbook.

worksheet Day 5 will change daily. Is there a way to place a value on sheet or have it read tab so it will change daily as I need it to.

 

Workbooks("Pioneer Natural Resources Trinidad 134 Dickenson 7B 2H Inventory.xlsx").Worksheets("Day 5").Range("A1:K90").Copy
Workbooks("Report Help.xlsm").Worksheets("Inv").Range("A1").PasteSpecial Paste:=xlPasteValuesAndNumberFormats

 
 
 
 
Posted : 28/08/2016 2:02 am
Philip Treacy
(@philipt)
Posts: 1632
Member Admin
 

Hi,

Yes probably, but if you could supply some sample workbooks including your code and explain how the sheet name will change it would be helpful for us to work out a solution.

Regards

Phil

 
Posted : 28/08/2016 5:59 am
(@madfc101)
Posts: 4
Active Member
Topic starter
 

Here are the 2 Sample files.

The days change along with the tab. Importing it into help file to distribute numbers elsewhere accordingly on daily basis

 
 
 
 
Posted : 28/08/2016 6:45 am
(@sunnykow)
Posts: 1417
Noble Member
 

Hi

There are no attachments.

 
Posted : 28/08/2016 10:49 am
(@madfc101)
Posts: 4
Active Member
Topic starter
 

Sorry forgot to upload

 
 
 
 
Posted : 28/08/2016 12:16 pm
(@sunnykow)
Posts: 1417
Noble Member
 

Hi, see if this is what you want.

You will need to open both the Help and Inventory file.

Click on the Import Data button and select which sheet you want to import from the combobox.

 
Posted : 29/08/2016 11:32 pm
(@madfc101)
Posts: 4
Active Member
Topic starter
 

That works great. Thanks so much for the help. big Time Saver at Work.

 
 
 
 
Posted : 30/08/2016 5:25 pm
(@sunnykow)
Posts: 1417
Noble Member
 

You are welcome Cool

 
Posted : 30/08/2016 7:00 pm
Share: