Hi all
I have a bunch of workbooks containing budget figures. The workbooks have yearly budgets broken down into daily budgets, with monday through friday in columns L through r and weeks 1 through 52 in rows 3 through 54. I need to get this budget in one row, which I've done using the following code:
However, with the second to last workbook I'm trying to do this for I'm running into issues. For whatever reason, when I click the "Visual Basic" button, the workbook is not expandable, and doesn't have any of the worksheets listed in the project explorer (there are 6 worksheets.) When I try to record a macro and edit it to see its contents, it records the macro using a new workbook and takes me to the new workbook's respective vba code. It also won't allow me to protect or unprotect the sheet. It seems something has caused the workbook to lose a lot of its functionality.
Does anyone have any idea what is going on here? I have tried to save it as a macro enabled workbook, a 97-2003 workbook, and a regular excel workbook (.xlsx). I'm running out of troubleshooting ideas!
Thanks for any help you can provide. I greatly appreciate it!
Hank
I have a bunch of workbooks containing budget figures. The workbooks have yearly budgets broken down into daily budgets, with monday through friday in columns L through r and weeks 1 through 52 in rows 3 through 54. I need to get this budget in one row, which I've done using the following code:
Code:
Sub GetBudget()
Dim X As Double
Dim Y As Double
Dim Z As Double
Z = 1
For Y = 3 To 54
For X = 12 To 18
ActiveSheet.Range("U" & Z).Value = ActiveSheet.Cells(Y, X).Value
Z = Z + 1
Next X
Next Y
End Sub
However, with the second to last workbook I'm trying to do this for I'm running into issues. For whatever reason, when I click the "Visual Basic" button, the workbook is not expandable, and doesn't have any of the worksheets listed in the project explorer (there are 6 worksheets.) When I try to record a macro and edit it to see its contents, it records the macro using a new workbook and takes me to the new workbook's respective vba code. It also won't allow me to protect or unprotect the sheet. It seems something has caused the workbook to lose a lot of its functionality.
Does anyone have any idea what is going on here? I have tried to save it as a macro enabled workbook, a 97-2003 workbook, and a regular excel workbook (.xlsx). I'm running out of troubleshooting ideas!
Thanks for any help you can provide. I greatly appreciate it!
Hank