I have the code below to insert lines on a sheet.
It works correctly and inserts the lines BUT then the lines get hidden.
I can't understand what is causing this. There is no event code in the worksheet module.
DK.
Sub InsertSch1NotesLine()
Dim myRow As Long
Application.ScreenUpdating =...
Hi Luke, SirJB7
I think you are both right. Luke I've already gone your route and it's certainly better. The hardware maybe struggling as well - Vostro 3500 3gb ram. File is 5meg without data yet - about 60 sheets in.
I'll try on a faster machine.
Thanks
DK
Hi Luke
Tried this already and it made no difference.
It is definitely showing the last screen when the workbook closed - feels like for almost a couple of seconds.
DK
When the workbook opens I want it to go to the selected sheet which I am using as a splash screen based on a condition.
I've put this code in "This Workbook" to action when WB opens.
However it doesn't go cleanly to this screen. It still flashes up what I think was the last sheet when workbook...
I need a macro that will delete rows based on the below criteria:
The user can select a cell on a row or rows that they want to delete (therefore maybe multiple and non continuous rows)
The row can only be deleted if the value on the row in col B = "1".
Need some error handling if any of the...
Kyrre. Thanks for trying this is not what I need.
I need the investment row to take what ever it can from the Sales Total value upto the max of 500 across the rows.
I'm trying to recover the value up to 500 across the Sales columns
Hi Luke
Not sure if this is what I'm after - maybe I wasn't clear enough.
On a Worksheet I want to have a list in A1:A3 - "Sheet1", "Sheet2", "Sheet3". I want to name this range "ArrayList"
I then want to use this name "ArrayList" in the code to replace all the sheets as I may have 30 sheets...
Hi Hui
I had found a solution - 'Sheet28.Unprotect Password:=CStr(Sheets("CMSetup").Range("PWFloats").Value)
Yours is much more elegant.
Thanks
[SOLVED]
How can I use the value of a cell to be the password name in my code.
If the value in A1 is "Password" and this is named as "PW1" how can this be placed in the code
Sheet1.Protect Password = "PW1"
Thank
DK
I have the following line of code that selects the 2 sheets.
[For Each sh In Sheets(Array("Sch6", "Sch7"))]
Can I create a list of sheets and name this range and then just have the one name in the above formula.
Thanks
DK
I have extracted data from multiple sheets and now want to mark this data as "Paid" and for the macro to go back and change the value in the original sheet on a row in column "AR" to "PAID.
All the columns have the same data type in.
The extracted data contains the original sheet name and each...
Hi Smallman
Thanks for getting back.
The code is working really well and I've been able to adapt it do other things in my workbook.
One further request - is it possible to have 2 criteria for the autofilter - like "F" and "A". I've tried to get to work but obviously either not possible or I'm...
Can't get new code to work.
Does "lr" need to be defined as new variable or should this have been "lw".
Tried as "lw" but doesn't pull across any data. Then with the "lw" changed >1 to >0 - this pulled across records but when a sheet had not matching criteria it goes back to original issue of...
Hi Smallman
Demo file attached - Sheet 1 & 3 have non consecutive rows. Sheet 4 all consecutive.
When macro runs on Sheet5 it brings 1st matching row from Sheet 1 & Sheet 3 and all matching rows from Sheet4.
The criteria in "D" could be on any consecutive or non consecutive rows in "D".
I've...
Thank you for you reply. As a newbie to this it's hard to always understand how specific the question/criteria needs to be - so apologies if the goalposts keep moving.
When you refer to give out the co-ordinates for a non consecutive range - what do you mean.
The values in my criteria column...
I've got this working now - where the data is in consecutive rows - but on my sheets it won't be - when i tried this it only brings across the 1st date row from each sheet and then stops.
Is this possible to address.
thanks
DK