Hi all Mentors,
Deeply appreciated any help. I have created one excel for stock entry, there are four sheets, in that; first is Home sheet where in Cell B5 there I want to one moving text from right to left. I was able to achieve that task, but when I am trying to navigate with other sheets within the excel, then it shows error. I tried a lot but still not able to achieve.
Please help me in this. Any help is highly appreciated.
Below is the code I am using for moving text or Marquee in a separate module.
And just I have called this function in This workbook module, which is actually working, but when navigating to another Sheet then I am getting the error.
and the error what I am getting is this
Below is the link of raw file, you can download from here.
file
password I used is 1236 for sheets and project password is 7986.
Deeply appreciated any help. I have created one excel for stock entry, there are four sheets, in that; first is Home sheet where in Cell B5 there I want to one moving text from right to left. I was able to achieve that task, but when I am trying to navigate with other sheets within the excel, then it shows error. I tried a lot but still not able to achieve.
Please help me in this. Any help is highly appreciated.
Below is the code I am using for moving text or Marquee in a separate module.
VBA Code:
Sub DoMarquee()
For i = 1 To 1
marq = marq & " !! Please Select Proper Entry Type Before Doing Entry .!!" & Cells(i, 1)
Next
marq = WorksheetFunction.Rept("", 300 - Len(marq)) & marq
Sheets("HOME").Range("b5") = marq
Do
For i = 1 To Len(marq)
DoEvents
For a = 1 To 4999999
a = a + 1
Next
Sheets("HOME").Range("b5") = Left(marq, i)
Next
Loop
End Sub
And just I have called this function in This workbook module, which is actually working, but when navigating to another Sheet then I am getting the error.
VBA Code:
Option Explicit
Private Sub Workbook_Open()
DoMarquee
End Sub
and the error what I am getting is this
Below is the link of raw file, you can download from here.
file
password I used is 1236 for sheets and project password is 7986.