Macro To Go To A Hidden Worksheet. Good/Bad Idea?

Feb 22, 2010

I have an excel document displaying graphs that i would like to link to from a menu page (via a number of buttons). The problem is that i have about 12 of these graph sheets (along with 8 other sheets) and i'd rather not have them cluttering up the worksheet tabs list at the bottom of the screen.

Does anyone have any suggestions about how to handle this? Is a macro to open a hidden sheet and then close it once it is navigated away from a reasonable option? Or does Excel protocol suggest that they should remain visible, despite their cluttering..

View 6 Replies


ADVERTISEMENT

Hidden Worksheet Macro Not Working

Jun 26, 2006

saw the other posts about hidden worksheets and couldn't get my makro to work. The macro works fine when the sheet in question is not hidden but when it is or when I tried to solve it with

Sheets(" total").visible = True
.
.
.
Sheets("total").Visible = False

Why could this be? The problem only occurs when the sheet is hidden or when code like the above are used, what could be done to fix the problem.

View 9 Replies View Related

Set Textbox Control Source To Hidden Worksheet NOT Active Worksheet?

May 6, 2014

I have created an excel worksheet that will provide budgeting and estimating tools for my project managers. All data used to be manual entry and took a good while to complete. I am trying to automate the process with VBA.

I created a UserForm called InfoVerify1. On that form I have TextBox 1 - 10. When the UF opens, the boxes display project information from my worksheet called "Basis of Estimate", also known as Sheet26.

The TextBox1 ControlSource is set to "E4". When I run the macro with Sheet26 active, the proper information fills in. However, when I am on the Start page or any other worksheet and I run the macro, it tries to fill in the text boxes with E4, etc, from the active sheet. I tried changing the ControlSource to "Sheet26,E4" or any combo thereof with only error messages.

how to get it to refer to a cell on a particular worksheet and hold to that worksheet no matter which sheet I am on at the time I run the Userform?

View 3 Replies View Related

Export Hidden Worksheet To PDF?

May 2, 2014

I'm able to export hidden worksheet to PDF. Currently, I have the follow code below which will export active worksheet.

Code:
With Worksheets("ExportTable")
.ExportAsFixedFormat Type:=xlTypePDF, Filename:=PdfFile, Quality:=xlQualityStandard, IncludeDocProperties:=True, IgnorePrintAreas:=False, OpenAfterPublish:=True

After I hide the tab, when I tried to export it. I have an error message of "Invalid argument". I should use another type of code to export hidden tabs.

View 3 Replies View Related

Protect A Hidden Worksheet

Jun 10, 2005

Is it possible to protect a hidden worksheet. I do not want them to be able to unhide the sheet unless they know a password to do so.

View 9 Replies View Related

Hidden Rows In Protected Worksheet?

Jul 21, 2014

I was able to create a macro that allows a user to unhide rows in a protected worksheet without unprotecting the other locked fields (see below). My question is: I want to add to this command so that 1 row can not be "unhidden" if the previous row is still hidden. For example, row 25 can not be unhidden if row 24 is still hidden.

Macro command used:

Private Sub Commandbutton4_Click()
Sub Hide_Rows2h()
ActiveSheet.Unprotect Password:="xxx"
Rows("25").Hidden = Not Rows("25").Hidden
ActiveSheet.Protect Password:="xxx"

View 3 Replies View Related

Insert Rows On Hidden Worksheet

Mar 23, 2009

My workbook contains 10 worksheets. Some users will use all 10 worksheets; some will use only 5 worksheets. If a user is not using a worksheet, I would like to hide it but leave it in the workbook.

However, I want to keep all workbooks in sync even though a user may choose to not use a particular worksheet. When my macros encounter a hidden worksheet, they stall. Does coding exist that allows a Macro to run on a hidden worksheet without making the worksheet visible?

View 2 Replies View Related

Find Hidden Data In Worksheet

Jul 6, 2006

Excel 2003. Windows XP Professional. Bank reconciliations. How is it possible in an unprotected worksheet to hide additional data input in formulas so that visible invalid numbers produce accurate results? Displaying hidden formulas in formula bar reveals nothing. Blank cells have been included in formula, but searches for hidden numbers and links in these cells produced nothing. I'm at my wit's end to correct this misuse of Excel in my office.

View 14 Replies View Related

Open The Hidden Worksheet When Clicked

May 2, 2006

1) I cannot figure out how to write VBA so the "Show Results" button will open the hidden worksheet when clicked.

2) When I use the userform to add new info, it does save to the worksheet, but when I cose the userform and try to open the spreadsheet, I get the following message, "Userform is already opened. Reopening will cause any changes to be disguarded". If I answer yes, I lose my changes, if I answer no, the changes are saved. I want this message to go away and data from the userform to automatically be added to the spreadsheet.

3) I want to make sure the "Account Number" field has a 9 digit number in it before it can be saved. If there is not a 9 digit number I would like an error message saying "Please enter a 9 digit account number" as a pop up.

4) I want to make sure both the "Account Number" and the "Assignment" fields have been populated before the data can be saved.

View 9 Replies View Related

Toggle Worksheet Hidden Status

Mar 2, 2007

I have a button on a sheet that I want to unhide another sheet, but if this other sheet is already visible then I want this same button to hide it.

Here is what I tried and it does work except it runs all the IF's instead of stoping at THE IF that matches the condition.

Sub HideUnhide()

If Sheet2.Visible = xlSheetHidden Then
Sheet2.Visible = True
End If
If Sheet2.Visible = xlSheetVeryHidden Then
Sheet2.Visible = True
End If
If Sheet2.Visible = xlSheetVisible Then
Sheet2.Visible = False
End If
End Sub

View 9 Replies View Related

Prevent Referencing Hidden Worksheet

Jun 3, 2008

I have a spreadsheet which I'm using as a log-in front for a series of other workbooks. The usernames and passwords are stored hidden cells within a "very hidden" worksheet. The workbook is protected and VBA code itself is password protected.

In short no-one can directly view the passwords (unless the password to unprotect it all is known.

What I have found is that someone can use a formula to reference the cells containing the user details. "=a1" for example.

Is the a method hiding the contents of a cell from excel itself? I want the vba script to be able to see the value, but any "=a1" formulas to return a blank.

View 8 Replies View Related

Whats A Good Way Of Learning VBA

Sep 1, 2006

I would like to build on my Excel VBA but not sure where to start. P.s I want to aim towards reporting side of things so make reports look good, copy data from sheets onto another sheet, formatting all done through vba, macros

View 8 Replies View Related

Hidden Info When Copy A Worksheet From One Workbook To Another?

Aug 8, 2014

I need to create a new excel template for work. I was planning to copy a few worksheets from an old workbook over into the new workbook, mostly just for formatting for some graphs/tables that I would then link to the new workbook. A coworker said I cannot do this as copying from an old workbook will bring in "hidden" data that could some way impact the integrity of the new workbook and that the copied/old worksheet would FOREVER be linked to the new workbook no matter what I do. Is this true? If so, are there things I can do to remove any reliance to the old workbook.

View 1 Replies View Related

Copy Worksheet That Is Hidden And Rename It Using A Userfom

Feb 16, 2009

I asked for a macro that copy an worksheet and rename it using a userfom!
I received the xls file attached to this mail !
In this xls when I click "Click me to copy s0 sheet and rename it" from final sheet, a userform appear, I type a name there and when I press ok I will have a copy of worksheet "s0" with the name typed in the userform.
If I click on "Click me to copy s0 sheet and rename it" I can create as many copies as I need.

But if I hide worksheet "s0" (using Format /Sheet/Hide) the macro will not work.
I modified the code from module 1 adding the red

View 6 Replies View Related

Tracking Changes Made To Worksheets On A Hidden Worksheet

Apr 8, 2008

I've developed a workbook that is designed to allow users to produce a list of aspects (one per worksheet) and edit them as the aspect changes. However, i would very much like to create a 'log' of changes. For example, everytime a cell is changed the cell reference, worksheet reference and date are added to a list on a hidden worksheet.

View 9 Replies View Related

Access/read Data From A Hidden WorkSheet

May 19, 2006

I'm trying to access/read data from a hidden WorkSheet in Excel 2003 using:

Application.Worksheets("Hidden Sheet").Activate
With ActiveSheet
**** Data ****
End With

The accessed **** Data **** refers to another ('unhidden') WorkSheet. How can I read the data without making the WorkSheet visible to the User?

View 4 Replies View Related

Auto Select 1st Non-Hidden Sheet/Worksheet

Oct 22, 2006

I use "ActiveWindow.ScrollWorkbookTabs Position:=xlFirst" to display all available sheets in a workbook. But can the worksheet of the first tab (i.e. at the far left) be automatically selected after the workbook is opened?

View 6 Replies View Related

Find A Good Book On Formulas

Jan 29, 2009

if I could find a good book on formulas, I might be able to raise the bar on my questions.

View 3 Replies View Related

Formulas To Occupy All Rows. Good Or Bad?

Jul 2, 2008

Cell A1 can have only 0 or 1. Cell B1 can have any numeric value. Cell C1 takes the value of B1 if A1 is 1, otherwise it is 0. So, C1's formula can be either "=A1*B1" or "=If(A1=0,0,B1)". Lets say this formula is continued down to the 65000th row. My question is which formula is faster? The first one or the second one?

View 2 Replies View Related

Good Way To Reset Variable Each Loop To Empty?

Apr 15, 2012

I'm using a variable to loop down a column of data. Each time it loops the variable may or may not perform an operation - it will if there is something in the cell but won't if the cell is empty. It writes the answer of the operation to an ajoining cell, before looping again.

The issue is that if the row cell is empty, what's written to the ajoining cell is the pre-existing value of the variable, because its value hasn't changed.

how best to 'empty' the variable each loop to ensure either that the correct value or nothing at all is written to the ajoining cell?

View 5 Replies View Related

Aggregate Number Of Good And Bad Results Per User On Different Sheet

Jul 4, 2014

I have a database file where users name can be located in 2 neighbor columns. Against each user name (in next 2 cells on the right) there is a evaluation (good or bad).That database will be growing and new additions will be added each month. That means one user can appear several times on a different row with different evaluation.

In the same file I have a separate sheet where I need after running a macros to have aggregated list of users (in one column) and against each user I would like to see how many how many good and bad score he have. It will be good if users are sorted in alphabetical order.

I am providing an attachment with example file.

View 2 Replies View Related

Good, Average, Fair, Poor: Automatically Use One Of The Numbers That I Have Set And Add It To Total

Jul 20, 2006

In creating a chart that calculates home prices I need to be able to just enter "Good", "Fixer", "Remodeled", etc...and have that automatically use one of the numbers that I have set and add it to my total. I have created a box with variables for "Good", "Fixer", "Remodeled", etc...How do I make it so I can put any of those variables into the condition of the house row and make it add the dollar amount specified into the totals box? This is the very simple code that I am using to find the totals so far: =SUM(C5:J5)

Here's what I need:

Also, the plug in values in the first picture WILL CHANGE and I don't want to have to change the formula. So I need something to point to those cells.

View 4 Replies View Related

Format All Cells In All Sheets To Protection Hidden On Visible And Hidden Tabs

Feb 28, 2014

I am trying to format all cells on all sheets (hidden or otherwise) as "Locked" so when the sheets are protected the user can't see the formulas. This macro individually selects every sheet in the book and applys the formatting. Is there a way to modify this code to accomplish the same thing without having it actually select every sheet? The only reason it is an issue is that after running the macro you end up on the last sheet in the book.

View 7 Replies View Related

Sorting In Spreadsheet Where Lines Are Sequenced By Finished Good And Component Parts

Jul 29, 2013

I have a very large inventory spreadsheet (30,000+ lines) where finished goods are listed on one line and the raw materials (parts) that make up that finished good are listed below. After the last raw material for a finished good is listed, the next finished good is on the next line (and so on). First, I need to sort the lines to eliminate certain common raw materials. Next I need to take the lowest raw material inventory level and have that as the default inventory level for the finished good.

View 2 Replies View Related

Record Macro Hidden?

Jan 14, 2009

When I choose to record a macro, the window to name the macro opens and allows me to name it, but when I close it, I can see it is recording at the bottom of the sheet, but the stop button with the relative/absolute button has disappeared. I can't change relative/absolute. How can I get the button back on the page?

View 2 Replies View Related

Run Macro From Hidden Sheet

Apr 1, 2009

Sub Wright()
'
' Wright Macro
'
'
ActiveSheet.Shapes("Object 5").Select
Selection.Verb Verb:=xlPrimary
End Sub

What do I need to add to this so that the Macro will run when the sheet is hidden? The Macro runs an Embeded presentation, which I do not want to be visible in the workbook.

View 9 Replies View Related

Formula Was Hidden By A Macro

Jul 13, 2009

I have a file register in excel which has asked in the startup asking 'Do you want to enable macro?' and when you click yes the formula was invisible but you can see the formula in the formula bar. Formulas don't appear also when you print.

But when you click no, all the results in the cells containing the formula is visible.

View 9 Replies View Related

Run A Macro The Previous 31 Rows Are Hidden?

Jan 29, 2014

I have a spreadsheet with 31 rows and 8 columns that are completed as a checklist.

I have a macro that currently increments where required and also pastes the 31 rows again after

What I am looking for is some code whereby if I run a Macro the previous 31 rows are hidden

View 5 Replies View Related

Macro For Selecting Hidden Sheets?

Dec 26, 2013

I have spreadsheet with 13 sheets the first of which is a title page, what I wish to do is hide the other twelve sheets and somehow be able to select them from a drop down box (or similar what ever works with a macro)on the front page, the selected sheets would then appear unhidden.

I am OK with formulas etc but macros are beyond my ability even trying to follow examples & tutorials online has me lost.

The sheets all have specific but different names and none need to be selected more than once (although if possible it would be good). I understand where to put the macro in but as to how it is written ......

View 7 Replies View Related

Macro To Delete Hidden Worksheets

Jul 11, 2008

It would be great of I could delete all but one of the hidden worksheets. It would be perfect if I could tell the macro not to delete one of the hidden worksheets (called "Test O2 and CO2"), but if that is too difficult, then just one to delete all the hidden sheets would be fine.

View 9 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved