Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Anthony
 
Posts: n/a
Default Message Box - more help please !!

Hi,
Thanks to Rowen and Michael for their help with my (simple) question, but I
have another.
The menu button I have created has the following code attached to it

Sub add_monday_jobs()
With Sheets("monday'S LOG").Range("A8:N34")
Sheets("Log").Range("A" & Rows.Count).End(xlUp).Offset( _
1, 0).Resize(.Rows.Count, .Columns.Count).Value = .Value

End With
MsgBox "All Today's Jobs Added Successfully !", vbInformation
End Sub

However is it possible to use this code so that it will add the required
data to the "log" regardless which sheet is open at the time.
As at present it will only work with worksheet "Monday's Log" and I want it
to do the given task regardless of which woprksheet is being used.

Hope that makes sense, and thanks in advance

Cheers

Anthony
  #2   Report Post  
Bob Phillips
 
Posts: n/a
Default

Sub add_monday_jobs()
With ACtivesheet.Range("A8:N34")
Sheets("Log").Range("A" & Rows.Count).End(xlUp).Offset( _
1, 0).Resize(.Rows.Count, .Columns.Count).Value = .Value

End With
MsgBox "All Today's Jobs Added Successfully !", vbInformation
End Sub

perhaps

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Anthony" wrote in message
...
Hi,
Thanks to Rowen and Michael for their help with my (simple) question, but

I
have another.
The menu button I have created has the following code attached to it

Sub add_monday_jobs()
With Sheets("monday'S LOG").Range("A8:N34")
Sheets("Log").Range("A" & Rows.Count).End(xlUp).Offset( _
1, 0).Resize(.Rows.Count, .Columns.Count).Value = .Value

End With
MsgBox "All Today's Jobs Added Successfully !", vbInformation
End Sub

However is it possible to use this code so that it will add the required
data to the "log" regardless which sheet is open at the time.
As at present it will only work with worksheet "Monday's Log" and I want

it
to do the given task regardless of which woprksheet is being used.

Hope that makes sense, and thanks in advance

Cheers

Anthony



  #3   Report Post  
Anthony
 
Posts: n/a
Default

Thanks Bob
it worked just fine - easy when you know how
PS can you suggest any good books on VB for beginers which shows how to do
this kind of stuff??
thanks again
Anthony

"Bob Phillips" wrote:

Sub add_monday_jobs()
With ACtivesheet.Range("A8:N34")
Sheets("Log").Range("A" & Rows.Count).End(xlUp).Offset( _
1, 0).Resize(.Rows.Count, .Columns.Count).Value = .Value

End With
MsgBox "All Today's Jobs Added Successfully !", vbInformation
End Sub

perhaps

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Anthony" wrote in message
...
Hi,
Thanks to Rowen and Michael for their help with my (simple) question, but

I
have another.
The menu button I have created has the following code attached to it

Sub add_monday_jobs()
With Sheets("monday'S LOG").Range("A8:N34")
Sheets("Log").Range("A" & Rows.Count).End(xlUp).Offset( _
1, 0).Resize(.Rows.Count, .Columns.Count).Value = .Value

End With
MsgBox "All Today's Jobs Added Successfully !", vbInformation
End Sub

However is it possible to use this code so that it will add the required
data to the "log" regardless which sheet is open at the time.
As at present it will only work with worksheet "Monday's Log" and I want

it
to do the given task regardless of which woprksheet is being used.

Hope that makes sense, and thanks in advance

Cheers

Anthony




  #4   Report Post  
Bob Phillips
 
Posts: n/a
Default

For a beginner, I would guess that John Walkenbach's VBA For Dummies book is
the best starter. You can then move up to his Power Programming book, or
John Green's Excel 2002 VBA Programmer's Reference.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Anthony" wrote in message
...
Thanks Bob
it worked just fine - easy when you know how
PS can you suggest any good books on VB for beginers which shows how to do
this kind of stuff??
thanks again
Anthony

"Bob Phillips" wrote:

Sub add_monday_jobs()
With ACtivesheet.Range("A8:N34")
Sheets("Log").Range("A" & Rows.Count).End(xlUp).Offset( _
1, 0).Resize(.Rows.Count, .Columns.Count).Value = .Value

End With
MsgBox "All Today's Jobs Added Successfully !", vbInformation
End Sub

perhaps

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Anthony" wrote in message
...
Hi,
Thanks to Rowen and Michael for their help with my (simple) question,

but
I
have another.
The menu button I have created has the following code attached to it

Sub add_monday_jobs()
With Sheets("monday'S LOG").Range("A8:N34")
Sheets("Log").Range("A" & Rows.Count).End(xlUp).Offset( _
1, 0).Resize(.Rows.Count, .Columns.Count).Value =

..Value

End With
MsgBox "All Today's Jobs Added Successfully !", vbInformation
End Sub

However is it possible to use this code so that it will add the

required
data to the "log" regardless which sheet is open at the time.
As at present it will only work with worksheet "Monday's Log" and I

want
it
to do the given task regardless of which woprksheet is being used.

Hope that makes sense, and thanks in advance

Cheers

Anthony






  #5   Report Post  
Anthony
 
Posts: n/a
Default

Cheers Bob, I'm off to have a look at Amazon for those then
many thanks again
Anthony

"Bob Phillips" wrote:

For a beginner, I would guess that John Walkenbach's VBA For Dummies book is
the best starter. You can then move up to his Power Programming book, or
John Green's Excel 2002 VBA Programmer's Reference.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Anthony" wrote in message
...
Thanks Bob
it worked just fine - easy when you know how
PS can you suggest any good books on VB for beginers which shows how to do
this kind of stuff??
thanks again
Anthony

"Bob Phillips" wrote:

Sub add_monday_jobs()
With ACtivesheet.Range("A8:N34")
Sheets("Log").Range("A" & Rows.Count).End(xlUp).Offset( _
1, 0).Resize(.Rows.Count, .Columns.Count).Value = .Value

End With
MsgBox "All Today's Jobs Added Successfully !", vbInformation
End Sub

perhaps

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Anthony" wrote in message
...
Hi,
Thanks to Rowen and Michael for their help with my (simple) question,

but
I
have another.
The menu button I have created has the following code attached to it

Sub add_monday_jobs()
With Sheets("monday'S LOG").Range("A8:N34")
Sheets("Log").Range("A" & Rows.Count).End(xlUp).Offset( _
1, 0).Resize(.Rows.Count, .Columns.Count).Value =

..Value

End With
MsgBox "All Today's Jobs Added Successfully !", vbInformation
End Sub

However is it possible to use this code so that it will add the

required
data to the "log" regardless which sheet is open at the time.
As at present it will only work with worksheet "Monday's Log" and I

want
it
to do the given task regardless of which woprksheet is being used.

Hope that makes sense, and thanks in advance

Cheers

Anthony








Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
when opening excel I receive a message that says file can't be fo. Ken Excel Discussion (Misc queries) 3 February 22nd 05 12:13 AM
changing the message in an error message The Villages DA Excel Worksheet Functions 2 February 18th 05 05:30 PM
Pivot Table not valid error message when formatting data 'button'. MDW Excel Discussion (Misc queries) 0 January 27th 05 03:01 PM
Error Message Brandt Excel Discussion (Misc queries) 2 January 19th 05 12:35 AM
Unwanted Validation Message Carole O Excel Worksheet Functions 2 December 29th 04 08:25 PM


All times are GMT +1. The time now is 01:35 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"