ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Open Locked Columns to view code? (https://www.excelbanter.com/excel-programming/314835-open-locked-columns-view-code.html)

kharpe

Open Locked Columns to view code?
 

Hi-

I have the task of backing into the code of another programmers use
form. I am pretty new to VBA so I'm stuck on one thing right now. I
the user form, I can see most of the formulas as they are called ou
there rather than with VBA. However, they reference cells in column
that are not visible. I can't scroll or view anything past column k.
am not sure how this is done in vba or what setting it is, but I hav
to get into this formula to edit it somehow. How would I do this?


Thanks! :confused

--
kharp
-----------------------------------------------------------------------
kharpe's Profile: http://www.excelforum.com/member.php...fo&userid=1575
View this thread: http://www.excelforum.com/showthread.php?threadid=27266


Dave Peterson[_3_]

Open Locked Columns to view code?
 
Try this against a copy of the workbook--just so you don't break it!

ctrl-A (twice in xl2003)
format|column|unhide
(in case they were hidden)

====
If the columns weren't hidden (you just couldn't scroll past a column/row)

hit alt-f11 to get to the VBE
hit ctrl-r to view the project explorer
Locate your workbook/project
select it
hit the asterisk on the number keypad to expand all the branches.
look for Sheet#(yourworksheetname)
under Microsoft excel objects.

You want to select the correct worksheet.

Hit f4 to see that worksheet's properties.
Scroll down until you see the ScrollArea property
erase any entry in that property.

Then back to excel to test it.


kharpe wrote:

Hi-

I have the task of backing into the code of another programmers user
form. I am pretty new to VBA so I'm stuck on one thing right now. In
the user form, I can see most of the formulas as they are called out
there rather than with VBA. However, they reference cells in columns
that are not visible. I can't scroll or view anything past column k. I
am not sure how this is done in vba or what setting it is, but I have
to get into this formula to edit it somehow. How would I do this?

Thanks! :confused:

--
kharpe
------------------------------------------------------------------------
kharpe's Profile: http://www.excelforum.com/member.php...o&userid=15754
View this thread: http://www.excelforum.com/showthread...hreadid=272667


--

Dave Peterson



All times are GMT +1. The time now is 12:28 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com