Help with a Macro Please

kluitna

Board Regular
Joined
Mar 10, 2002
Messages
75
I have the following code that works fine inside of a workbook:

Sub Make_a_file()
Dim SaveFileName As String
Dim Path As String
For i = 0 To 500
Path = Worksheets("Item List").Cells(1, 1)
SaveFileName = Worksheets("Item List").Cells(2 + i, 1)
If SaveFileName = blank Then End
ChDir Path
ActiveWorkbook.SaveAs FileName:=SaveFileName, FileFormat:=xlNormal, Password:="", WriteResPassword:="", _
ReadOnlyRecommended:=False, CreateBackup:=False
Next
End Sub

But whatI can't figure out how to do is to have the worksheet Item list in its own workbook that several other workbooks can reference.

What this macro does is create a new file for each item bid item in a contract. works very well but inturn makes multiple copies of its self. I would like the list to be idependant so I can edit it and use it for a refference to other workbooks. Hope I am being clear.

Any suggestions would be appreciated. I am having allot of problems with defining working variables, a hurdle I keep falling over.
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
Expand on this:

I would like the list to be idependant so I can edit it and use it for a refference to other workbooks.

What do you mean by reference? Save the active workbook (which ever book is active) as the entire list?

Nate
 
Upvote 0

Forum statistics

Threads
1,214,620
Messages
6,120,554
Members
448,970
Latest member
kennimack

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top