Unable To Hide Sheets - Function Is Not Highlighted?

Mar 1, 2014

I am unable to hide sheets. when i right click to hide like I usually would the funtion is not highlighted.

View 6 Replies


ADVERTISEMENT

Unable To Get The Highlighted Section To Work

Sep 23, 2009

I am editing a Macro from a guy that has left my work and I am unable to get the Highlighted Section to work. In Section 'Paste Values & Formats it appears to work fine until it get down to Selection.PasteSpecial.Paste = x1PasteValuesAndNumberFormats and it throws you out. Is this because the Macro is generating a new workbook….?

In regards to the other sections; I am unsure if it does or does not work because every time I go down to it in Debug mode it highlights it as an error…

Sub Generate_Statements()

'Declare Variables
Dim i As Long, SMax As Long, SPath As String, fso As New FileSystemObject, file As file, statement As Workbook
Dim forma As Workbook, macro As Workbook, OldVar As Long, social As Long, rng As String, rng2 As Range....................

View 9 Replies View Related

VBA Code To Hide Columns Except Highlighted

Feb 14, 2014

VBA code that can highlight all columns except ones highlighted?

View 1 Replies View Related

Unable To Hide Columns/delete Values Using Combo Box

Apr 24, 2007

Using two Combo Boxes, I am trying to create an drop down outline form input sheet.

What it does is if you select the first selection in the combo box 1, then it hides certain rows, and deletes certain cells. If you select the second option in the combo box 1, it shows another combo box (2) which has another list of categories.

When I select the option 2 on the combo box 1, it unhides a bunch of rows, and activates combo box 2. However, when I try to select categories on combo box 2, each time it tries to hide/unhide rows I get this message "Unable to set the hidden property of the range class." I have no idea whats going on.

Here is my ....

View 9 Replies View Related

Color Function To Count Cells Highlighted In Different Colors

Feb 22, 2010

using =ColorFunction to count cells highlighted in different colors.

Is that function available in Excel 2007 under a different function name?

View 9 Replies View Related

Excel 2000 :: Unable To Hide Hidden Column When Save As Webpage?

Aug 15, 2013

Currently I'm using excel 2000. Can't hide hidden column when save as webpage?

View 2 Replies View Related

Unable To Unhide Sheets

Oct 21, 2009

I have a workbook with several sheets that I created some time ago. I have hyperlinks on the main sheet which point to other sheets in the same workbook which can be viewed when using the hyperlink, however the linked sheets are hidden. Somehow in this workbook I removed both the horizontal scroll bar and the lsiting of sheet names. I can not figure out how to get them back so I can unhide and or add new sheets.

View 4 Replies View Related

Unable To Update Data Used By Function

Jun 1, 2006

I have a function written in excel written in VBA. The function reads data from a worksheet and uses it in an array to solve based on the variable passed with the function. Now the issue is if I change variable that the are passed with the function it works fine. If, however I update values in the worksheet that the function is using as an array (sort of a look up table) the function doesn't see the change. I have to exit Excel and reopen it to get it to re calculate the function. Is there a better/faster way than continually closing and reopening excel?

View 3 Replies View Related

Unable To Get VLookup Property Of Worksheet Function

Aug 21, 2012

I was having an issue with my vlookups not working properly so I took out the error handler to try and find out why.

It came up with the error "Run-time error '1004': unable to get the vlookup property of the worksheetfunction class"

Below is my code. How to rectify this?

Code:
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Cells.Count > 1 Then Exit Sub
Dim rng As Range, cell As Range

[Code].....

View 5 Replies View Related

Unable To Get The Match Property Of The Worksheet Function

Mar 24, 2007

I'm trying to find the occurence of a date in a range.

Here is the code I'm using:

Windows(todaydate1).Activate

For Each cell In range(Cells(top73, 3), Cells(bot73, 3))


z3 = DateSerial(Year(cell), Month(cell), Day(cell))

Windows("Cash Flow " & todaydate & " PM.xls").Activate
Sheets("Commitments").Activate

However the code stops right on the q3 line where the match function is located. The problem is that I'm getting a Run Time Error 1004:

"Unable to get the match property of the worksheet function class"

This would lead me to believe that the match function is not working. However, in Excel, it does work. Even when using the cell from the other Workbook, it works.

All the dates which appear to be dates are indeed formatted as dates.

The range is good. I've used the immediate window to verify the address and the values of the other variables in play.

?range(Cells(toprw, 2), Cells(botrw, 2)).Address
$B$26:$B$49

Since the correct workbook and sheet is activated, I'm really at a loss here. Below is what the sheet looks like:

View 9 Replies View Related

Unable To Get The Sum Property Of The Worksheet Function Class

Jan 19, 2009

Here is the code that generates the error:

Set rng = Range("I:I")
LR = ActiveSheet.Cells(Rows.count, "I").End(xlUp).Row + 2
Range("I" & LR).Value = Application.WorksheetFunction.Sum(rng)
Range("I" & LR).NumberFormat = "#,##0"

and from what I've read on google the .SUM(rng) need to be set to a range, but isn't it already a range? I tried plugging in there Range("I:I") for rng and that didn't work either.

View 9 Replies View Related

Unable To Get VLookup Property Of Worksheet Function Class

Feb 1, 2012

The vlookup worked earlier but now it doesn't and everything looks OK to me. Scroll down a little bit in the code view to see the error line.

HTML Code:
Sub Email_Executed()
Dim OutlookApp As Outlook.Application
Dim MItem As Outlook.MailItem

[Code]...

View 6 Replies View Related

Unable To Get The Find Property Of The Worksheet Function Class

Feb 16, 2009

I am using the "Find" in VBA and wanted to test if the value searched for could not be found.

So I get the
error = "Unable to get the find property of the worksheet function class"
When the text cannot be found.

Dim zz As Variant
zz = Application.WorksheetFunction.Find("xx", "Hello", 1)

I also tried
Dim xx as boolean
xx = Application.WorksheetFunction.IsError(Application.WorksheetFunction.Find("xx", "Hello", 10))

But this produced the same error.

View 9 Replies View Related

Unable To Set Formula Array Property Of Range Class - Using Replace Function

Mar 3, 2014

I'm looking to loop a comparison code. I'm using dynamic referencing (using x and y) to find maximum values for specific time intervals. The code works on a cell to cell basis, meaning if I input the formula and change the cell referencing manually then the equation will give the desired results. However when I attempted to create a VBA code to speed up the process I kept getting a 1004 Unable to set FormulaArray Property of the Range Class error, I later figured out that the Formula Array function is limited to a certain number of characters so I split up my function into 3 different string formulas. I still get the same error.

[Code] ............

View 1 Replies View Related

Hide All Sheets Except Three Named Sheets

Jul 15, 2013

I am trying to figure out a code where hides all sheets in "ThisWorkbook" veryhidden except the ones names "Template" and "Report" and "Product"

I tried with the code below but the debugger stops at the line highlighted in red. perhaps i am missing something in the code.

Code:
Option Explicit
Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean)
If Range("rReport").Value = "" Then
Cancel = True

[Code] .........

View 8 Replies View Related

Excel 2010 :: VBA Sheets Copy Function Works But Then Jumps To Beginning Of Function

Apr 8, 2014

I'm having trouble using the worksheet copy command in a VBA subroutine. I have the following line in my code:

[Code] ........

When I step through my code and execute this line, the sheet is copied as expected and put in the correct place, but then instead of the next line of code being highlighted, the pointer jumps to the first line of a function (in a different module) in my code.

View 14 Replies View Related

Hide ALL Sheets

Oct 15, 2008

I am trying to get a code that will Hide ALL sheets (xlVeryHidden) except for "Meeting Minutes" and "Index"

I want to do it 2 ways.

1) User Click a button and it happens
2) Upon Exiting the Workbook it happens

I tried modifying a code that I had to Reveal sheets but I can get it to operate the other way:

Sub HideMINUTESandMASTER()

Dim Sh As Worksheet
If Sheets("Meeting Minutes").Visible = True Then
End If

If Sheets("Index").Visible = True Then
End If

For Each Sh In Worksheets
Sh.Visible = xlVeryHidden
Next Sh
Sheets("Meeting Minutes").Select
Range("C1").Select
End Sub

View 9 Replies View Related

VBA To UnHide / Hide Sheets

Feb 20, 2014

I have a workbook with about 20 worksheets in it.

6 are visible
3 are hidden

the remaining are very hidden

I'm creating a "welcome" page to the workbook with instructions on how to update data. The data between the 20 sheets consists of pivot tables, charts and summary data. The Visible sheets are data for management's review (all protected). The 3 hidden sheets are pivot tables that the user needs to pull data from and the very hidden sheets are not to be seen by anyone.

In my "welcome" page, I added the instructions of how to update data, but wanted an area where I could assign a checkbox or button to click on for the user to unhide my 3 hidden sheets (say Sheet1, Sheet2 and Sheet3). I do not want it to unhide my very hidden sheets. Then, when the information needed is retrieved from those sheets, I would like the user to use a checkbox or button to hide the 3 hidden sheets again. Is there a way to do this?

I tried creating custom view but couldn't do that because of the pivot tables (the option was disabled). I'm a beginner in VBA so don't even know how to begin.

View 6 Replies View Related

Hide Sheets Via Autofilter?

Nov 23, 2009

I have a workbook w/ 120+ sheets, and the first one is a table of contents, while each following sheet is a record sheet for one of 10 individuals. That is, sheets 2-8 are for Alice, 9-12 for Bob, 13-29 for Charles, etc. Individual names are in column C, sheet names are hyperlinked text in column A on the table of contents sheet.

I want to know how to hide all the sheets which are not meant for the individual based on the autofilter of Column C. If I select Alice as the autofilter criteria for Column C, I want all the sheets except the table of contents and her sheets 2-8 to be hidden.

View 14 Replies View Related

VBA Across Sheets Reference And Row Hide?

Jan 11, 2012

Im working across Multiple Sheets and trying to get the following working.

I want a an input by the user of "NO" in cell M11 on Sheet 1 of my workbook to hide rows 32 - 41 on Sheet 2 and not to hide them if the user keys in "YES"

View 9 Replies View Related

Hide Rows In All Sheets?

Oct 19, 2012

I have a workbook where each sheet is password protected. I'm trying to find some code that would unprotect each sheet, and hide rows 1-12 on each sheet, and then re-protect all sheets.

View 4 Replies View Related

Hide Chart Sheets

Jul 19, 2008

I would like to hide all worksheets and chartsheets in a workbook. I use

For Each sh In Sheets
sh.Visible = xlSheetVisible
Next sh
but I think it breaks down for chart sheets. Any solutions?

View 9 Replies View Related

Hyperlink & Hide Sheets

Feb 22, 2007

I need to hide all sheets appart from one sheet.

View 4 Replies View Related

Hide All Sheets But 1 When Saving

Oct 24, 2007

I would like to have all my worksheets except one hidden when a user saves the workbook. I can do it with a macro but not all users use the macro to save the document and sheets are left visible.

View 3 Replies View Related

Hide All Sheets When Macro Is Disabled?

Aug 2, 2014

continued from: [URL]

Option Explicit forces explicit declaration of all variables in the code. That is why i had to declare ws as worksheet using the Dim statement before using it in the code. It is recommended to have it - however for this code it wouldn't have mattered.

I'm not sure I exactly follow what you imply here. But yes, you can hide all the sheets at first and then "unhide" at the start of the macro. Let's say you have a "Start" sheet.. then:

[Code] .....

The workbook is used by other people too. I cannot just tell them to hide the sheets, it defeats the purpose. What I want is, when macro is disabled, they will only see the START sheet, otherwise, all sheets will be visible. To add to this, a new sheet is added everyday. Sheets name are calendar dates in mmdd format

View 4 Replies View Related

Show / Hide Sheets Per Username

Mar 8, 2014

I'm trying to only show specific sheets per user using the environ variable and this code seems to work for the single user / sheet but the master user does not function correctly i.e. the code does not show all sheets, this is the code I am using:

[Code] ......

Why the above code does not respect the Master User "Jane" should be able to see all sheets?

Original source for this code was found here:

HTML Code:  [URL]....

View 7 Replies View Related

Hide/ Unhide Sheets With Macro

Nov 6, 2008

I want to run 2 different macros:

Macro 1- hides Sheet1 and unhides Sheet2
Macro 2- Hides Sheet2 and unhides Sheet1

I used the macro recorder to attempt to make this work but am running into a problem if Macro1 is run two times consecutively. In this situation the macro displays a debugging error b/c Sheet1 is hidden. Is there a way to get around this...possibly using an if then statement?

View 6 Replies View Related

Hide Sheets While Updating Records

Dec 3, 2011

I have these following codes. when i click button then it updates the records, like pulling data from sheets and putting it into one. thats working fine. only things is, when it update the records, then it shows whats going on behind, all updating sheets get visiable. is it possible can i just hide whats going on in the back? when i click the button msg box comes up that please wait its updating the record.

Dim Response As Integer
MsgStr = "ARE YOU SURE YOU WANT TO UPLOAD NOW?, PLEASE CONSIDER RE-CHECKING YOU INPUT!!"
TitleStr = "USER MESSAGE"
If MsgBox(MsgStr, vbYesNo, TitleStr) = vbYes Then

Sheets("Employee Data Input").Select

[Code] ...........

View 4 Replies View Related

Hide Sheets Except With Wild Card

Apr 3, 2013

Heres My Code...

Code:

Sub HideDatedSheets()
Dim wb As Workbook
Dim ws As Worksheet
Dim dDate As Date

[Code]...

So what im trying to do is keep the Union* sheets shown as well as the Report* sheets shown. But i believe i have the code wrong because they are not showing up when the work book opens...

Trim(ws.Name) = "Union*" Or _
Trim(ws.Name) = "Report*" Or _

View 4 Replies View Related

Userform To Use 2 Comboboxes To Hide Sheets

Jun 6, 2013

Let's say I have Sheet1-Sheet6. I also have combobox1 (with item 1, 2, & 3 as the list items) & combobox 2 (with items 1 & 2 as the list items).

If combobox1 = 1 & combobox2 = 1 then hide Sheets 2,3,4,5,6
if combobox1 = 1 & combobox2 = 2 then hide Sheets 1,2,4,5,6
If combobox1 = 1 & combobox2 = 3 then hide sheets 1,2,3,4,6
If combobox1 = 2 & combobox2 = 1 then hide sheets 1,3,4,5,6
If combobox1 = 2 & combobox2 = 2 then hide sheets 1,2,3,5,6
If combobox1 = 2 & combobox2 = 3 then hide sheets 1,2,3,4,5

I would like to also make both of these combo boxes required fields and to default text to say 'Select One...'

View 1 Replies View Related







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