I have a workbook, wich copies content from an overview sheet to different other sheets. that works fine, but if I try to hide the content-placeholder sheets, I can't copy my content anymore.
here the part where I get the error;
'OldValue contains the name of the "copy to" sheet as a string
I have a workbook with a hidden sheet ("Template") and a visible sheet("New Job"). I need code so when cell F1 in "New Job" is populated:
1-the sheet is renamed to the value of F1, 2-a new tab is made (a carbon copy of the hidden sheet "Template") 3-the new tab is named "New Tab" and marked as unhidden.
Public Sub Worksheet_Change(ByVal Target As Range) ActiveSheet.Name = Range("F1").Value End Sub
Function WorksheetExists(SheetName As String, _ Optional WhichBook As Workbook) As Boolean Dim WB As Workbook Set WB = IIf(WhichBook Is Nothing, ThisWorkbook, WhichBook) On Error Resume Next WorksheetExists = CBool(Len(WB.Worksheets(SheetName).Name) > 0) End Function..................
This works fine but what I also need to do is delete the blank rows in the holding sheet "Staff_Import" and copy back to another sheet "July_Sept" without removing the formatting in "July_Sept" sheet ie cell fill & borders.
I have written a code for reading the excel and capturing the content as an image but now i want to paste the captured content into another sheet of the same excel and want to add new column in the same captured image?
Is it possible to add a column in the captured image?
I have a database (attached) that has data entered into the "Progression" sheet. This data is continually updated, and once each row has a section date, I have a macro that moves the data from "Progression" to the "Complete" sheet (and from there, into a specific month sheet). I AM REALLY CONCERNED with data accidentally getting deleted (especially when/after getting moved to "Complete"). I know that you can link cell values from one worksheet to another, but since my data is continually changing in the Progression and Complete sheets, the linkage wouldn't maintain the correct cell values from day to day. Is there a better approach to creating "backup" data in excel than this linkage option? Preferably something that runs in the background without my input?
An option could be that I move my data from Progression into both the Complete sheet and then a hidden "Master" sheet when I run the macro. If I chose that route, how would I modify my coding to include transferring to the Master sheet as well?
Lastly, a simple linkage between the Master sheet and another sheet in a second workbook should be sufficient as a backup method?
I have tried to these through formulas without success but i think i need VBA also which i am not very experienced.
I want to paste a list in the "InsertList" sheet. This list will only contain the word "Correct" or "False". From then on i need a way to search for the word "Correct" or "False" in the columnS P,Q,R,S,T,U,V.
e.g. If in the column "P" on the "InsertList" sheet the word "Correct" is found, i need that entire row from A to V to be copied onto it's destination, in this case "sheet1".
If the word "Correct" is found on the column "Q" on the "InsertList" sheet, the rows from A to V need to be copied in the Sheet2. And so on..
I have 11 worksheets in one workbook, the last worksheet is a total page.
I'd like to run a macro that copies the information from each sheet and pastes it into the total sheet. My range on every sheet begins at A2, but the end of the range is unknown.
All I have so far is trying to loop to a new empty cell on the total page (coded in a module - is that right?):
Basically my code is bombing at the red highlighted code. Error: "Run-time error '1004': Copy method of Worksheet class failed"
Sheet "Blank Form" is a hidden sheet. Can I alter the red section of code to work while being a hidden sheet? I tried a few variations but nothing seems to work..
I have a userform which clones the latest sheet and produces copy of it on the next sheet. The first sheet they will be cloning is the sheet called 'template', I however want this to be hidden since I do not want anybody to modify a sheet which basically serves purpose of a template. And once cloned, it is no longer needed.
On the click of the command button, the macro will create sheet1 taking the info from sheet named 'Template' in the same workbook . And now on the next click of the command button, Sheet 2 is created taking the info from sheet1 and Sheet 3 is created taking the info from Sheet 2 and so on. Here is what I currently have, so how can i modify it in order for my scnerio to work?
I have a button on a sheet that runs a macro to unhide another sheet. That works, but I want the sheet made visible to remain forward. Instead, the button unhides the sheet and the sheet the button is on comes forward again. I am unable to figure how to keep the sheet made visible forward. Here is the macro 'as recorded'.
when I want to send by email I find I cannot copy these smaller sheets - every attempt at a copy will also copy the hidden columns.
How to copy a spreadsheet and NOT pick up the hidden columns?
I realise this might be nearly impossible or considered useless because no hidden columns would mean either making the copy with blank hidden columns or altering all formulas to suit a sheet which now does not have all the original columns.
I'm trying to get my code to work by trying to copy from a visible tab into a hidden tab. Currently I have it able to function when the tabs are hidden, and i've been trying to get it to work.
My code is below. I have a variable section because there are different sheets that will be hidden, and this is a way that i found works to get the variable tabs selected.
I have 5 sheets in a workbook. Three are hidden. My code allows user to make as many copies of the hidden sheets as needed and place them at the end by means of a macro button. This works fine, but after multiple copies (4 to 15) it crashes! Don't know what I did wrong.
In a sheet I have a two hyperlinks with Sheet4 and Sheet5. when I am clicking on first hyperlink then the sheet4 is opening and when I am clicking on the other hyperlink then sheet5 is opening. But if I hide these two sheets it is not opening,
Is there any way so that hide sheets should be opened? will I have to write code for that?
way of protecting a very hidden sheet, I will still need to open the sheet myself everytime I use the program. The only person to open this very hidden sheet is myself.
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.
The macro starts on open, opens the workbook with the data to copy, copies and pastes the data into the original workbook. The problem is that "Hidden Sheet" is hidden, so the macro can't see it!
how do I get the macro to use this hidden sheet without keeping it 'un-hidden'?
Cell A1 needs to contain the contents of A3 without the user having to go and type the entry in each time the next cell along changes.
For example, let's say that last week 1.81 was typed in A2. The user then had to go in to A1 and also type 1.81. This week 1.83 has been entered in A3 so the user will manually have to go in to A1 and type 1.83. Next week when something is entered in A4, the contents of A1 will again need to match the contents of A4 and so on for the next 52 weeks. We'd like a formula in A1 that automatically shows the contents of the next cell along as soon as the content exceeds Zero.
I have a combo-box in Sheet Number 1 filled with date. In all my other sheets there a empty combo-boxes. When the workbook opens I automaticly want to copy the content from the combo-box from Sheet 1 into all the other comboboxes in the other sheets. Is there an way to solve this problem with a minimum amount of loops?
Is there a way to copy and paste a sheet from one spreadsheet to another without getting the rows that have been hidden? I have a database with about 800 rows and another 150 or 200 scattered through it that are currently hidden. For what I need right now I don't want any of that hidden data. Do I have to manually delete it or is there a way to ignore it (I thought of paste special but I can't find one that works).
I am having a problem with hidden columns when creating a new sheet via VBA.
The source sheet has (4) columns that are hidden when this data is pasted to the destination sheet it ignores the four columns.
I need the destination sheet to be identical to the source sheet with the hidden columns.
As you can see in the code I have been able to hide the columns however the data is now in the wrong columns because the copied data excluded these columns. I tried hiding the columns before and after the paste with no success I'm thinking the issue lies in the actual copy portion of this task.
Code:
Sub E_MAIL() ' ' E_MAIL Macro ' ' Multiple_emails_and_Sheets Macro 'This is used for one sheet with multiple e-mails. ' ThisWorkbook.Sheets("NO").Copy