Macro Hyperlink Issues
I am having a problem using Hyperlinks within a €śPre Scripted€ť Macro.
I have successfully placed a €śFixed€ť Hyperlink in a Macro, but I need that
Hyperlink to be a variable; let me explain:
I have created an Excel spreadsheet as a master with the following name:
€śUS-MAS-000-08 Excel-Master€ť
With each new customer order I need to open the €śExcel-Master€ť, and through
a Macro I open a separate workbook named €śMaster Sequence File 2008€ť and grab
the next number in sequence. After I have that number I rename the
€śExcel-Master€ť so as to reference the customer. Here are some examples:
€śUS-MAS-001-08 Logistics Kit 10€ť
€śUS-MAS-002-08 Elizabeth City Kit 2€ť
€śUS-MAS-003-08 Elizabeth City Kit 66€ť
€śUS-MAS-004-08 SE OPU-HP€ť
As you can see, I have a numerical sequence from 001 thru 004 with the
customers name at the end. Now, after the new €śUS-MAS€ť file has been created
I will need to retrieve additional sequence numbers from the €śMaster Sequence
File 2008€ť and place them within the €śUS-MAS€ť from which I am working.
Here is my problem. I need to open €śUS-MAS-001-08 Logistics Kit 10€ť, click
on a Macro Button that takes me to the file €śMaster Sequence File 2008€ť,
grads the next €śInvoice #€ť (for example) in sequence, then returns me to
€śUS-MAS-001-08 Logistics Kit 10€ť so that I can use the new #. Each time I try
to run the Macro it takes me back to the €śUS-MAS-000-08 Excel-Master€ť file
because that is the file I used when I created the Macro. I do not know
enough about VBA code to resolve my issue.
Can someone help?
|