Good day all,
I was wondering if it is possible to create a list to choose from in a pop up box references another sheet.
For example... this is my current script below and it basically copy's another sheet from a closed workbook in my drive and renames in based on a certain cell range.
What I would like to do is instead of having the "ActiveSheet.Name = Worksheets("Geoprog").Range("A52")" command just copy a single name from a range of cells, I would like to have a dialogue box pop up that had a bunch of choices of cell ranges to choose from to select the re-naming.
Is this possible using VBA?
if anyone can help let me know.
-R
I was wondering if it is possible to create a list to choose from in a pop up box references another sheet.
For example... this is my current script below and it basically copy's another sheet from a closed workbook in my drive and renames in based on a certain cell range.
What I would like to do is instead of having the "ActiveSheet.Name = Worksheets("Geoprog").Range("A52")" command just copy a single name from a range of cells, I would like to have a dialogue box pop up that had a bunch of choices of cell ranges to choose from to select the re-naming.
Is this possible using VBA?
if anyone can help let me know.
-R
Code:
Public Sub CopySheetFromClosedWorkbook() Dim sourceBook As Workbook
Application.ScreenUpdating = False
'sets destination of workbook to copy sheets from
Set sourceBook = Workbooks.Open("C:\Users\rhissong\Desktop\test PLAN REVIEW.xlsm")
'copy's sheets from this destination
sourceBook.Sheets("Sheet1").Copy After:=ThisWorkbook.Sheets(ThisWorkbook.Sheets.Count)
'closes workbook
sourceBook.Close
ActiveSheet.Name = Worksheets("Geoprog").Range("A52")
Sheets("Asset Team Checklist").Select
Application.ScreenUpdating = True
End Sub