Hi, I would like to disable the option to delete, move, copy or rename one specific worksheet in a workbook, regardless of the activated worksheet in the workbook. I cannot protect the workbook structure, because I want to still be able to delete other worksheets in this workbook without the use...
My code below:
Sub arrange()
'all declarations for wkshts and wbs stated at top unless stated here
Dim g1 As Range
Dim g2 As Range
Dim g3 As Range
Dim g4 As Range
Dim g5 As Range
Dim g6 As Range
Dim g7 As Range
Dim g8 As Range
Dim g9 As Range
Dim g10 As Range
Dim g11 As Range
Dim g12 As Range...
Hi All,
I've been using this fantastic forum for previous VBA issues I've had, seeing other peoples posts and using the brilliant answers people have provided, however It seems Im going to need the extra help on this one!
I have a workbook that I use as a report for Aged Debtors, with a query...
Hi, I’ve adopted a, very old school, way of storing invoices and would like to combine some information from them all. As it stands each invoice is it’s own individual saved .xls file. What I want to do is create a master log. So I want to get invoice number(for example cell F3), date (for...
I'm trying to get better at this and in doing so, I've seen over and over again to stop using .Select and .Copy/.Cut to move things
I know I can move my columns with copy and insert no issue, but I'd like to step into the next level. On one ws, i've got columns P to AB and need to move them to...
Hi all,
Worksheet_SelectionChange event doesn't fire if I change the selection from a cell to an image.
Does it only fire if a cell is selected (it seems to be the case, but I thought I'd check)?
Option Explicit
Private Sub Worksheet_Activate()
Application.EnableEvents = True
End Sub...
Hi all!
Maybe this has already been asked but anyway....
Im working on an Excel sheet with all the materials from a producer. The goal is that we can make stickers with an QR-code so we can scan this for our date base.
On the main sheet is the next information.
On the second sheet (image 2)...
Dear Excel Gurus,
I have an Excel file that splits Bill of Materials (BOM) explosions into the correct templates for our ERP system. We copy-paste the BOM of our customers in worksheet "BOM INSERT", we fill in a few data points in "INSTRUCTIONS", and the data automatically fills in Worksheets...
Hi! I have the following code on a sheet, this is a heavy workbook and I'm worried if its continuously running with every click it will slow down the user. How can I modify this to run only on the first click on the ActiveWorksheet, or so i can assign it to a button to be only run when clicked...
Hi all!
I have to print on labels, inside a grid. I have created a document for it. It turned out really good, but when i did open it from another windows account on the same computer it was a mess. Whynis that?
I had the same issue earlier, but the case was different. I created the document...
Please the number of first rows to be deleted INCREASES along with the worksheet numbers. For example, row 1 (first row) would be deleted in sheet 1, row 1 and row 2 would be deleted in subsequent sheet 2, row 1 row 2 row 3 would be deleted in subsequent sheet 3, and so on. Please any help on a...
Hello There,
I need some help to done my working. I have done some part of the coding. Can someone help me about it please.? I cant make continue. like I'm stucked. I have explained in the Main workbook what I want to do.
Basically transfer datas from "data book" to "Main book". The problem is...
Hi - I've recently joined a company. We won't be able to implement any robust budgeting and planning tool so we are in excel. There is an extremely tight deadline and I'm just beginning to learn my predecessors excel financial models. from the existing files, I see 5 or 6 workbooks with about...
Hey Guys, I'm quite a newbie on this. So, I need button when I click, it will go a specific worksheet (within same workbook) depending on a dropdown list.
example: dropdown list say 'Freq Change'
when I click the button, it goes to the 'Freq Change' sheet
I will have multiple sheets like this...
Hi all,
I tried to google a day to solve this issue but it did not work. Can anyone help me to give me a solution, please?
How can I rename multiple worksheets (from sheet2) from a column value (Date) as the photo attached by using VBA code?
Thank you.
I'm trying to take a master tab,
1. read column A,
2. create a tab in that workbook with the name found in column a,
3. then copy that one line from the master into the newly created tab.
I have the code (below) that cycles thru column A and creates the tabs but having issue with copying the...
Hi, I obtained this code for get individual worksheet sizes inside the workbook but it produces errors when attempting to copy a worksheet with vba code defining a global variable such as
Private timerDictionary As Scripting.Dictionary
This is the code I used to get individual size of each...
Dear All,
Hello, I've just learnt how to use VBA and still new on it. I made a formula below, where it works perfectly for my sheet.
Range("$AE$2").FormulaR1C1 = "=IF(RC[-25]=""V6"",LEFT(RC[-11],LEN(RC[-11])-1),RC[-11])"
Range("AE2").AutoFill Destination:=Range("AE2:AE" & Range("F" &...
I have the following code which programmatically adds a combobox to a worksheet.
Set Cell = WSD.Range("J2")
WSD.OLEObjects.Add(ClassType:="Forms.ComboBox.1", link:=False, _
DisplayAsIcon:=False, Left:=Cell.Left - 5, Top:=Cell.Top + 3, Width:=Cell.Width + 125...
I am trying to utlize the recording feature to learn about the code that controls excel via taking an action and then reviewing the code that is recorded.
Recently I was able to get the following code to work:
Sheets("GEN INCENTIVE").Select
Range("AV1").Select
Columns("AV:AV").Select...
We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel
Which adblocker are you using?
Disable AdBlock
Follow these easy steps to disable AdBlock
1)Click on the icon in the browser’s toolbar. 2)Click on the icon in the browser’s toolbar. 2)Click on the "Pause on this site" option.
Go back
Disable AdBlock Plus
Follow these easy steps to disable AdBlock Plus
1)Click on the icon in the browser’s toolbar. 2)Click on the toggle to disable it for "mrexcel.com".
Go back
Disable uBlock Origin
Follow these easy steps to disable uBlock Origin
1)Click on the icon in the browser’s toolbar. 2)Click on the "Power" button. 3)Click on the "Refresh" button.
Go back
Disable uBlock
Follow these easy steps to disable uBlock
1)Click on the icon in the browser’s toolbar. 2)Click on the "Power" button. 3)Click on the "Refresh" button.