Amend code to check a set range on every worksheet

DavidG007

Board Regular
Joined
Jul 6, 2018
Messages
79
Office Version
  1. 365
Platform
  1. Windows
Hi All,

Just wondering if anyone can help, the code below works fine but I need it to check a defined range on every worksheet within the file. Can anyone help amend the code in order to do this?

The range that it needs to perform on is "D7:D35"



VBA Code:
Sub CleanSelectedRange()
' "Cleans" contents of all selected cells on the active worksheet
Dim Cell As Range
For Each Cell In Selection
If Not Cell.HasFormula Then
Cell.Value = CleanString(Cell.Value)
End If
Next Cell
End Sub

Function CleanString(StrIn As String) As String

' characters, including carriage returns BUT NOT linefeeds.
' Does not remove special characters like symbols, international
' characters, etc. This function runs recursively, each call
' removing one embedded character

   Dim iCh  As Integer
   Dim Ch   As Integer      'a single character to be tested
   CleanString = StrIn
   For iCh = 1 To Len(StrIn)
      Ch = Asc(Mid(StrIn, iCh, 1))
      If Ch < 32 And Ch <> 10 Then
         'remove special character
         CleanString = Left(StrIn, iCh - 1) & CleanString(Mid(StrIn, iCh + 1))
      Exit Function
      End If
   Next iCh

End Function
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
If I run the code on a blank workbook where I've filled various cells in D7:D35 on Sheet1 with values I get a list something like this,

[Book1]Sheet1!$D$7
[Book1]Sheet1!$D$8
[Book1]Sheet1!$D$9
[Book1]Sheet1!$D$10
[Book1]Sheet1!$D$11
[Book1]Sheet1!$D$12
[Book1]Sheet1!$D$13
[Book1]Sheet1!$D$14
[Book1]Sheet1!$D$15
[Book1]Sheet1!$D$16
[Book1]Sheet1!$D$17
[Book1]Sheet1!$D$18
[Book1]Sheet1!$D$19
[Book1]Sheet1!$D$23
[Book1]Sheet1!$D$24
[Book1]Sheet1!$D$27
[Book1]Sheet1!$D$33
[Book1]Sheet1!$D$35

Do you definitely have values and not formulas in the specified range?
 
Upvote 0
not sure what happened but just refreshed and got the following correct results;

[AdminNoResponsesReportBook_TEST.xlsm]FR_L0002!$D$24
[AdminNoResponsesReportBook_TEST.xlsm]FR_L0002!$D$25
[AdminNoResponsesReportBook_TEST.xlsm]FR_L0002!$D$26
[AdminNoResponsesReportBook_TEST.xlsm]FR_L0002!$D$27
[AdminNoResponsesReportBook_TEST.xlsm]FR_L0002!$D$28
[AdminNoResponsesReportBook_TEST.xlsm]FR_L0002!$D$29
[AdminNoResponsesReportBook_TEST.xlsm]FR_L0002!$D$30
[AdminNoResponsesReportBook_TEST.xlsm]FR_L0002!$D$31
[AdminNoResponsesReportBook_TEST.xlsm]FR_L0002!$D$32
[AdminNoResponsesReportBook_TEST.xlsm]FR_L0002!$D$33
[AdminNoResponsesReportBook_TEST.xlsm]FR_L0004!$D$7
[AdminNoResponsesReportBook_TEST.xlsm]FR_L0004!$D$8
[AdminNoResponsesReportBook_TEST.xlsm]FR_L0004!$D$9
[AdminNoResponsesReportBook_TEST.xlsm]FR_L0004!$D$10
[AdminNoResponsesReportBook_TEST.xlsm]FR_L0004!$D$11
[AdminNoResponsesReportBook_TEST.xlsm]FR_L0004!$D$12
[AdminNoResponsesReportBook_TEST.xlsm]FR_L0004!$D$13
[AdminNoResponsesReportBook_TEST.xlsm]FR_L0004!$D$14
[AdminNoResponsesReportBook_TEST.xlsm]FR_L0004!$D$15
[AdminNoResponsesReportBook_TEST.xlsm]FR_L0004!$D$16
[AdminNoResponsesReportBook_TEST.xlsm]FR_L0004!$D$17
[AdminNoResponsesReportBook_TEST.xlsm]FR_L0004!$D$18
[AdminNoResponsesReportBook_TEST.xlsm]FR_L0004!$D$19
[AdminNoResponsesReportBook_TEST.xlsm]FR_L0004!$D$20
[AdminNoResponsesReportBook_TEST.xlsm]FR_L0004!$D$21
[AdminNoResponsesReportBook_TEST.xlsm]FR_L0004!$D$22
[AdminNoResponsesReportBook_TEST.xlsm]FR_L0004!$D$23
[AdminNoResponsesReportBook_TEST.xlsm]FR_L0004!$D$24
[AdminNoResponsesReportBook_TEST.xlsm]FR_L0004!$D$25
[AdminNoResponsesReportBook_TEST.xlsm]FR_L0004!$D$26
[AdminNoResponsesReportBook_TEST.xlsm]FR_L0004!$D$27
[AdminNoResponsesReportBook_TEST.xlsm]FR_L0004!$D$28
[AdminNoResponsesReportBook_TEST.xlsm]FR_L0004!$D$29
[AdminNoResponsesReportBook_TEST.xlsm]FR_L0004!$D$30
[AdminNoResponsesReportBook_TEST.xlsm]FR_L0004!$D$31
[AdminNoResponsesReportBook_TEST.xlsm]FR_L0004!$D$32
[AdminNoResponsesReportBook_TEST.xlsm]FR_L0004!$D$33
[AdminNoResponsesReportBook_TEST.xlsm]US_L0028!$D$7
[AdminNoResponsesReportBook_TEST.xlsm]US_L0028!$D$8
[AdminNoResponsesReportBook_TEST.xlsm]US_L0028!$D$9
[AdminNoResponsesReportBook_TEST.xlsm]US_L0028!$D$10
[AdminNoResponsesReportBook_TEST.xlsm]US_L0028!$D$11
[AdminNoResponsesReportBook_TEST.xlsm]US_L0028!$D$12
[AdminNoResponsesReportBook_TEST.xlsm]US_L0028!$D$13
[AdminNoResponsesReportBook_TEST.xlsm]US_L0028!$D$14
[AdminNoResponsesReportBook_TEST.xlsm]US_L0028!$D$15
[AdminNoResponsesReportBook_TEST.xlsm]US_L0028!$D$16
[AdminNoResponsesReportBook_TEST.xlsm]US_L0028!$D$17
[AdminNoResponsesReportBook_TEST.xlsm]US_L0028!$D$18
[AdminNoResponsesReportBook_TEST.xlsm]US_L0028!$D$19
[AdminNoResponsesReportBook_TEST.xlsm]US_L0028!$D$20
[AdminNoResponsesReportBook_TEST.xlsm]US_L0028!$D$21
[AdminNoResponsesReportBook_TEST.xlsm]US_L0028!$D$22
[AdminNoResponsesReportBook_TEST.xlsm]US_L0028!$D$23
[AdminNoResponsesReportBook_TEST.xlsm]US_L0028!$D$24
[AdminNoResponsesReportBook_TEST.xlsm]US_L0028!$D$25
[AdminNoResponsesReportBook_TEST.xlsm]US_L0028!$D$26
[AdminNoResponsesReportBook_TEST.xlsm]US_L0028!$D$27
[AdminNoResponsesReportBook_TEST.xlsm]US_L0028!$D$28
[AdminNoResponsesReportBook_TEST.xlsm]US_L0028!$D$29
[AdminNoResponsesReportBook_TEST.xlsm]US_L0028!$D$30
[AdminNoResponsesReportBook_TEST.xlsm]US_L0028!$D$31
[AdminNoResponsesReportBook_TEST.xlsm]US_L0028!$D$32
[AdminNoResponsesReportBook_TEST.xlsm]US_L0028!$D$33
[AdminNoResponsesReportBook_TEST.xlsm]US_L0029!$D$7
[AdminNoResponsesReportBook_TEST.xlsm]US_L0029!$D$8
[AdminNoResponsesReportBook_TEST.xlsm]US_L0029!$D$9
[AdminNoResponsesReportBook_TEST.xlsm]US_L0029!$D$10
[AdminNoResponsesReportBook_TEST.xlsm]US_L0029!$D$11
[AdminNoResponsesReportBook_TEST.xlsm]US_L0029!$D$12
[AdminNoResponsesReportBook_TEST.xlsm]US_L0029!$D$13
[AdminNoResponsesReportBook_TEST.xlsm]US_L0029!$D$14
[AdminNoResponsesReportBook_TEST.xlsm]US_L0029!$D$15
[AdminNoResponsesReportBook_TEST.xlsm]US_L0029!$D$16
[AdminNoResponsesReportBook_TEST.xlsm]US_L0029!$D$17
[AdminNoResponsesReportBook_TEST.xlsm]US_L0029!$D$18
[AdminNoResponsesReportBook_TEST.xlsm]US_L0029!$D$19
[AdminNoResponsesReportBook_TEST.xlsm]US_L0029!$D$20
[AdminNoResponsesReportBook_TEST.xlsm]US_L0029!$D$21
[AdminNoResponsesReportBook_TEST.xlsm]US_L0029!$D$22
[AdminNoResponsesReportBook_TEST.xlsm]US_L0029!$D$23
[AdminNoResponsesReportBook_TEST.xlsm]US_L0029!$D$24
[AdminNoResponsesReportBook_TEST.xlsm]US_L0029!$D$25
[AdminNoResponsesReportBook_TEST.xlsm]US_L0029!$D$26
[AdminNoResponsesReportBook_TEST.xlsm]US_L0029!$D$27
[AdminNoResponsesReportBook_TEST.xlsm]US_L0029!$D$28
[AdminNoResponsesReportBook_TEST.xlsm]US_L0029!$D$29
[AdminNoResponsesReportBook_TEST.xlsm]US_L0029!$D$30
[AdminNoResponsesReportBook_TEST.xlsm]US_L0029!$D$31
[AdminNoResponsesReportBook_TEST.xlsm]US_L0029!$D$32
[AdminNoResponsesReportBook_TEST.xlsm]US_L0029!$D$33
[AdminNoResponsesReportBook_TEST.xlsm]US_L0052!$D$7
[AdminNoResponsesReportBook_TEST.xlsm]US_L0052!$D$8
[AdminNoResponsesReportBook_TEST.xlsm]US_L0052!$D$9
[AdminNoResponsesReportBook_TEST.xlsm]US_L0052!$D$10
[AdminNoResponsesReportBook_TEST.xlsm]US_L0052!$D$11
[AdminNoResponsesReportBook_TEST.xlsm]US_L0052!$D$12
[AdminNoResponsesReportBook_TEST.xlsm]US_L0052!$D$13
[AdminNoResponsesReportBook_TEST.xlsm]US_L0052!$D$14
[AdminNoResponsesReportBook_TEST.xlsm]US_L0052!$D$15
[AdminNoResponsesReportBook_TEST.xlsm]US_L0052!$D$16
[AdminNoResponsesReportBook_TEST.xlsm]US_L0052!$D$17
[AdminNoResponsesReportBook_TEST.xlsm]US_L0052!$D$18
[AdminNoResponsesReportBook_TEST.xlsm]US_L0052!$D$19
[AdminNoResponsesReportBook_TEST.xlsm]US_L0052!$D$20
[AdminNoResponsesReportBook_TEST.xlsm]US_L0052!$D$21
[AdminNoResponsesReportBook_TEST.xlsm]US_L0052!$D$22
[AdminNoResponsesReportBook_TEST.xlsm]US_L0052!$D$23
[AdminNoResponsesReportBook_TEST.xlsm]US_L0052!$D$24
[AdminNoResponsesReportBook_TEST.xlsm]US_L0052!$D$25
[AdminNoResponsesReportBook_TEST.xlsm]US_L0052!$D$26
[AdminNoResponsesReportBook_TEST.xlsm]US_L0052!$D$27
[AdminNoResponsesReportBook_TEST.xlsm]US_L0052!$D$28
[AdminNoResponsesReportBook_TEST.xlsm]US_L0052!$D$29
[AdminNoResponsesReportBook_TEST.xlsm]US_L0052!$D$30
[AdminNoResponsesReportBook_TEST.xlsm]US_L0052!$D$31
[AdminNoResponsesReportBook_TEST.xlsm]US_L0052!$D$32
[AdminNoResponsesReportBook_TEST.xlsm]US_L0052!$D$33
[AdminNoResponsesReportBook_TEST.xlsm]US_L0031!$D$7
[AdminNoResponsesReportBook_TEST.xlsm]US_L0031!$D$8
[AdminNoResponsesReportBook_TEST.xlsm]US_L0031!$D$9
[AdminNoResponsesReportBook_TEST.xlsm]US_L0031!$D$10
[AdminNoResponsesReportBook_TEST.xlsm]US_L0031!$D$11
[AdminNoResponsesReportBook_TEST.xlsm]US_L0031!$D$12
[AdminNoResponsesReportBook_TEST.xlsm]US_L0031!$D$13
[AdminNoResponsesReportBook_TEST.xlsm]US_L0031!$D$14
[AdminNoResponsesReportBook_TEST.xlsm]US_L0031!$D$15
[AdminNoResponsesReportBook_TEST.xlsm]US_L0031!$D$16
[AdminNoResponsesReportBook_TEST.xlsm]US_L0031!$D$17
[AdminNoResponsesReportBook_TEST.xlsm]US_L0031!$D$18
[AdminNoResponsesReportBook_TEST.xlsm]US_L0031!$D$19
[AdminNoResponsesReportBook_TEST.xlsm]US_L0031!$D$20
[AdminNoResponsesReportBook_TEST.xlsm]US_L0031!$D$21
[AdminNoResponsesReportBook_TEST.xlsm]US_L0031!$D$22
[AdminNoResponsesReportBook_TEST.xlsm]US_L0031!$D$23
[AdminNoResponsesReportBook_TEST.xlsm]US_L0031!$D$24
[AdminNoResponsesReportBook_TEST.xlsm]US_L0031!$D$25
[AdminNoResponsesReportBook_TEST.xlsm]US_L0031!$D$26
[AdminNoResponsesReportBook_TEST.xlsm]US_L0031!$D$27
[AdminNoResponsesReportBook_TEST.xlsm]US_L0031!$D$28
[AdminNoResponsesReportBook_TEST.xlsm]US_L0031!$D$29
[AdminNoResponsesReportBook_TEST.xlsm]US_L0031!$D$30
[AdminNoResponsesReportBook_TEST.xlsm]US_L0031!$D$31
[AdminNoResponsesReportBook_TEST.xlsm]US_L0031!$D$32
[AdminNoResponsesReportBook_TEST.xlsm]US_L0031!$D$33
[AdminNoResponsesReportBook_TEST.xlsm]BR_L0005!$D$7
[AdminNoResponsesReportBook_TEST.xlsm]BR_L0005!$D$8
[AdminNoResponsesReportBook_TEST.xlsm]BR_L0005!$D$9
[AdminNoResponsesReportBook_TEST.xlsm]BR_L0005!$D$10
[AdminNoResponsesReportBook_TEST.xlsm]BR_L0005!$D$11
[AdminNoResponsesReportBook_TEST.xlsm]BR_L0005!$D$12
[AdminNoResponsesReportBook_TEST.xlsm]BR_L0005!$D$13
[AdminNoResponsesReportBook_TEST.xlsm]BR_L0005!$D$14
[AdminNoResponsesReportBook_TEST.xlsm]BR_L0005!$D$15
[AdminNoResponsesReportBook_TEST.xlsm]BR_L0005!$D$16
[AdminNoResponsesReportBook_TEST.xlsm]BR_L0005!$D$17
[AdminNoResponsesReportBook_TEST.xlsm]BR_L0005!$D$18
[AdminNoResponsesReportBook_TEST.xlsm]BR_L0005!$D$19
[AdminNoResponsesReportBook_TEST.xlsm]BR_L0005!$D$20
[AdminNoResponsesReportBook_TEST.xlsm]BR_L0005!$D$21
[AdminNoResponsesReportBook_TEST.xlsm]BR_L0005!$D$22
[AdminNoResponsesReportBook_TEST.xlsm]BR_L0005!$D$23
[AdminNoResponsesReportBook_TEST.xlsm]BR_L0005!$D$24
[AdminNoResponsesReportBook_TEST.xlsm]BR_L0005!$D$25
[AdminNoResponsesReportBook_TEST.xlsm]BR_L0005!$D$26
[AdminNoResponsesReportBook_TEST.xlsm]BR_L0005!$D$27
[AdminNoResponsesReportBook_TEST.xlsm]BR_L0005!$D$28
[AdminNoResponsesReportBook_TEST.xlsm]BR_L0005!$D$29
[AdminNoResponsesReportBook_TEST.xlsm]BR_L0005!$D$30
[AdminNoResponsesReportBook_TEST.xlsm]BR_L0005!$D$31
[AdminNoResponsesReportBook_TEST.xlsm]BR_L0005!$D$32
[AdminNoResponsesReportBook_TEST.xlsm]BR_L0005!$D$33
[AdminNoResponsesReportBook_TEST.xlsm]BR_L0006!$D$7
[AdminNoResponsesReportBook_TEST.xlsm]BR_L0006!$D$8
[AdminNoResponsesReportBook_TEST.xlsm]BR_L0006!$D$9
[AdminNoResponsesReportBook_TEST.xlsm]BR_L0006!$D$10
[AdminNoResponsesReportBook_TEST.xlsm]BR_L0006!$D$11
[AdminNoResponsesReportBook_TEST.xlsm]BR_L0006!$D$12
[AdminNoResponsesReportBook_TEST.xlsm]BR_L0006!$D$13
[AdminNoResponsesReportBook_TEST.xlsm]BR_L0006!$D$14
[AdminNoResponsesReportBook_TEST.xlsm]BR_L0006!$D$15
[AdminNoResponsesReportBook_TEST.xlsm]BR_L0006!$D$16
[AdminNoResponsesReportBook_TEST.xlsm]BR_L0006!$D$17
[AdminNoResponsesReportBook_TEST.xlsm]BR_L0006!$D$18
[AdminNoResponsesReportBook_TEST.xlsm]BR_L0006!$D$19
[AdminNoResponsesReportBook_TEST.xlsm]BR_L0006!$D$20
[AdminNoResponsesReportBook_TEST.xlsm]BR_L0006!$D$21
[AdminNoResponsesReportBook_TEST.xlsm]BR_L0006!$D$22
[AdminNoResponsesReportBook_TEST.xlsm]BR_L0006!$D$23
[AdminNoResponsesReportBook_TEST.xlsm]BR_L0006!$D$24
[AdminNoResponsesReportBook_TEST.xlsm]BR_L0006!$D$25
[AdminNoResponsesReportBook_TEST.xlsm]BR_L0006!$D$26
[AdminNoResponsesReportBook_TEST.xlsm]BR_L0006!$D$27
[AdminNoResponsesReportBook_TEST.xlsm]BR_L0006!$D$28
[AdminNoResponsesReportBook_TEST.xlsm]BR_L0006!$D$29
[AdminNoResponsesReportBook_TEST.xlsm]BR_L0006!$D$30
[AdminNoResponsesReportBook_TEST.xlsm]BR_L0006!$D$31
[AdminNoResponsesReportBook_TEST.xlsm]BR_L0006!$D$32
[AdminNoResponsesReportBook_TEST.xlsm]BR_L0006!$D$33
 
Upvote 0
the code runs and works perfectly when run in Immediate Window but when i just ran it from excel as 'normal' it doesn't seem to run?
 
Upvote 0
How are you try to execute the code?
 
Upvote 0
I'm running the code from 'my personal macro book' as the file is downloaded so can not be stored within the file, i have just run the code from the personal macro book and got the following which may explain why its not working;

[PERSONAL.XLSB]Sheet1!$D$7
[PERSONAL.XLSB]Sheet1!$D$8
[PERSONAL.XLSB]Sheet1!$D$9
[PERSONAL.XLSB]Sheet1!$D$10
[PERSONAL.XLSB]Sheet1!$D$11
[PERSONAL.XLSB]Sheet1!$D$12
[PERSONAL.XLSB]Sheet1!$D$13
[PERSONAL.XLSB]Sheet1!$D$14
[PERSONAL.XLSB]Sheet1!$D$15
[PERSONAL.XLSB]Sheet1!$D$16
[PERSONAL.XLSB]Sheet1!$D$17
[PERSONAL.XLSB]Sheet1!$D$18
[PERSONAL.XLSB]Sheet1!$D$19
[PERSONAL.XLSB]Sheet1!$D$20
[PERSONAL.XLSB]Sheet1!$D$21
[PERSONAL.XLSB]Sheet1!$D$22
[PERSONAL.XLSB]Sheet1!$D$23
[PERSONAL.XLSB]Sheet1!$D$24
[PERSONAL.XLSB]Sheet1!$D$25
[PERSONAL.XLSB]Sheet1!$D$26
[PERSONAL.XLSB]Sheet1!$D$27
[PERSONAL.XLSB]Sheet1!$D$28
[PERSONAL.XLSB]Sheet1!$D$29
[PERSONAL.XLSB]Sheet1!$D$30
[PERSONAL.XLSB]Sheet1!$D$31
[PERSONAL.XLSB]Sheet1!$D$32
[PERSONAL.XLSB]Sheet1!$D$33
[PERSONAL.XLSB]Sheet1!$D$7
[PERSONAL.XLSB]Sheet1!$D$8
[PERSONAL.XLSB]Sheet1!$D$9
[PERSONAL.XLSB]Sheet1!$D$10
[PERSONAL.XLSB]Sheet1!$D$11
[PERSONAL.XLSB]Sheet1!$D$12
[PERSONAL.XLSB]Sheet1!$D$13
[PERSONAL.XLSB]Sheet1!$D$14
[PERSONAL.XLSB]Sheet1!$D$15
[PERSONAL.XLSB]Sheet1!$D$16
[PERSONAL.XLSB]Sheet1!$D$17
[PERSONAL.XLSB]Sheet1!$D$18
[PERSONAL.XLSB]Sheet1!$D$19
[PERSONAL.XLSB]Sheet1!$D$20
[PERSONAL.XLSB]Sheet1!$D$21
[PERSONAL.XLSB]Sheet1!$D$22
[PERSONAL.XLSB]Sheet1!$D$23
[PERSONAL.XLSB]Sheet1!$D$24
[PERSONAL.XLSB]Sheet1!$D$25
[PERSONAL.XLSB]Sheet1!$D$26
[PERSONAL.XLSB]Sheet1!$D$27
[PERSONAL.XLSB]Sheet1!$D$28
[PERSONAL.XLSB]Sheet1!$D$29
[PERSONAL.XLSB]Sheet1!$D$30
[PERSONAL.XLSB]Sheet1!$D$31
[PERSONAL.XLSB]Sheet1!$D$32
[PERSONAL.XLSB]Sheet1!$D$33
[PERSONAL.XLSB]Sheet1!$D$7
[PERSONAL.XLSB]Sheet1!$D$8
[PERSONAL.XLSB]Sheet1!$D$9
[PERSONAL.XLSB]Sheet1!$D$10
[PERSONAL.XLSB]Sheet1!$D$11
[PERSONAL.XLSB]Sheet1!$D$12
[PERSONAL.XLSB]Sheet1!$D$13
[PERSONAL.XLSB]Sheet1!$D$14
[PERSONAL.XLSB]Sheet1!$D$15
[PERSONAL.XLSB]Sheet1!$D$16
[PERSONAL.XLSB]Sheet1!$D$17
[PERSONAL.XLSB]Sheet1!$D$18
[PERSONAL.XLSB]Sheet1!$D$19
[PERSONAL.XLSB]Sheet1!$D$20
[PERSONAL.XLSB]Sheet1!$D$21
[PERSONAL.XLSB]Sheet1!$D$22
[PERSONAL.XLSB]Sheet1!$D$23
[PERSONAL.XLSB]Sheet1!$D$24
[PERSONAL.XLSB]Sheet1!$D$25
[PERSONAL.XLSB]Sheet1!$D$26
[PERSONAL.XLSB]Sheet1!$D$27
[PERSONAL.XLSB]Sheet1!$D$28
[PERSONAL.XLSB]Sheet1!$D$29
[PERSONAL.XLSB]Sheet1!$D$30
[PERSONAL.XLSB]Sheet1!$D$31
[PERSONAL.XLSB]Sheet1!$D$32
[PERSONAL.XLSB]Sheet1!$D$33
 
Upvote 0
Like I said the code runs on the workbook the code is in, and if the code is in PERSONAL.XLSB that's the workbook it'll run on.:)

Try changing ThisWorkbook to ActiveWorkbook in the code I posted.
 
Upvote 0
works fine, i just had to set the workbook name :)...... thank you for your patience and help, really appreciated
 
Upvote 0

Forum statistics

Threads
1,214,944
Messages
6,122,392
Members
449,081
Latest member
JAMES KECULAH

We've detected that you are using an adblocker.

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.
Go back
Back
Top