Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 17
Default email entire spreadsheet (unhide rows)

is there a way to unhide my rows when the spreadsheet is sent to email? this
is the macro that i'm using. the macro works and an email is generated but i
want to send the entire spreadsheet (unhide my rows) as an attachement.

thanks

Private Sub CommandButton1_Click()

Dim OutApp As Object
Dim OutMail As Object
Set OutApp = CreateObject("Outlook.Application")
Set OutMail = OutApp.CreateItem(0)
With OutMail
..To = ""
..CC = ""
..BCC = ""
..Subject = "Revenue Enhancement Escalation"
..Body = ""
..Attachments.Add ActiveWorkbook.FullName
..display
End With
Set OutMail = Nothing
Set OutApp = Nothing


End Sub

--
problem
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,123
Default email entire spreadsheet (unhide rows)

Hi bigproblem

Are the rows hidden or do you have a filter on ??

--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"bigproblem" wrote in message ...
is there a way to unhide my rows when the spreadsheet is sent to email? this
is the macro that i'm using. the macro works and an email is generated but i
want to send the entire spreadsheet (unhide my rows) as an attachement.

thanks

Private Sub CommandButton1_Click()

Dim OutApp As Object
Dim OutMail As Object
Set OutApp = CreateObject("Outlook.Application")
Set OutMail = OutApp.CreateItem(0)
With OutMail
.To = ""
.CC = ""
.BCC = ""
.Subject = "Revenue Enhancement Escalation"
.Body = ""
.Attachments.Add ActiveWorkbook.FullName
.display
End With
Set OutMail = Nothing
Set OutApp = Nothing


End Sub

--
problem

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 17
Default email entire spreadsheet (unhide rows)

i have them hidden when the checkbox is selected. is there a way to unhide
when the spreadsheet is converted into an attached?

(just in case) macro used for checkbox...
Private Sub CheckBox2_Click()
Dim myRng As Range

Set myRng = Me.Range("c12:c12")

myRng.EntireRow.Hidden = Not (myRng(1).EntireRow.Hidden)
End Sub
--
problem


"Ron de Bruin" wrote:

Hi bigproblem

Are the rows hidden or do you have a filter on ??

--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"bigproblem" wrote in message ...
is there a way to unhide my rows when the spreadsheet is sent to email? this
is the macro that i'm using. the macro works and an email is generated but i
want to send the entire spreadsheet (unhide my rows) as an attachement.

thanks

Private Sub CommandButton1_Click()

Dim OutApp As Object
Dim OutMail As Object
Set OutApp = CreateObject("Outlook.Application")
Set OutMail = OutApp.CreateItem(0)
With OutMail
.To = ""
.CC = ""
.BCC = ""
.Subject = "Revenue Enhancement Escalation"
.Body = ""
.Attachments.Add ActiveWorkbook.FullName
.display
End With
Set OutMail = Nothing
Set OutApp = Nothing


End Sub

--
problem


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,123
Default email entire spreadsheet (unhide rows)

You can add this for the activesheet in the code before you create the mail

With ActiveSheet
.UsedRange.Columns(1).EntireRow.Hidden = False
End With


--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"bigproblem" wrote in message ...
i have them hidden when the checkbox is selected. is there a way to unhide
when the spreadsheet is converted into an attached?

(just in case) macro used for checkbox...
Private Sub CheckBox2_Click()
Dim myRng As Range

Set myRng = Me.Range("c12:c12")

myRng.EntireRow.Hidden = Not (myRng(1).EntireRow.Hidden)
End Sub
--
problem


"Ron de Bruin" wrote:

Hi bigproblem

Are the rows hidden or do you have a filter on ??

--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"bigproblem" wrote in message ...
is there a way to unhide my rows when the spreadsheet is sent to email? this
is the macro that i'm using. the macro works and an email is generated but i
want to send the entire spreadsheet (unhide my rows) as an attachement.

thanks

Private Sub CommandButton1_Click()

Dim OutApp As Object
Dim OutMail As Object
Set OutApp = CreateObject("Outlook.Application")
Set OutMail = OutApp.CreateItem(0)
With OutMail
.To = ""
.CC = ""
.BCC = ""
.Subject = "Revenue Enhancement Escalation"
.Body = ""
.Attachments.Add ActiveWorkbook.FullName
.display
End With
Set OutMail = Nothing
Set OutApp = Nothing


End Sub

--
problem


  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 17
Default email entire spreadsheet (unhide rows)


I've tried to insert the text into the macro. Maybe i'm doing something
wrong or putting it in the wrong place because i can't get it to work.

Where should i put your text ?

Private Sub CommandButton1_Click()

Dim OutApp As Object
Dim OutMail As Object
Set OutApp = CreateObject("Outlook.Application")
Set OutMail = OutApp.CreateItem(0)
With OutMail
..To = ""
..CC = ""
..BCC = ""
..Subject = "Revenue Enhancement Escalation"
..Body = ""
..Attachments.Add ActiveWorkbook.FullName
..display
End With
Set OutMail = Nothing
Set OutApp = Nothing
With ActiveSheet
..UsedRange.Columns(1).EntireRow.Hidden = False
End With


End Sub


--
problem


"Ron de Bruin" wrote:

You can add this for the activesheet in the code before you create the mail

With ActiveSheet
.UsedRange.Columns(1).EntireRow.Hidden = False
End With


--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"bigproblem" wrote in message ...
i have them hidden when the checkbox is selected. is there a way to unhide
when the spreadsheet is converted into an attached?

(just in case) macro used for checkbox...
Private Sub CheckBox2_Click()
Dim myRng As Range

Set myRng = Me.Range("c12:c12")

myRng.EntireRow.Hidden = Not (myRng(1).EntireRow.Hidden)
End Sub
--
problem


"Ron de Bruin" wrote:

Hi bigproblem

Are the rows hidden or do you have a filter on ??

--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"bigproblem" wrote in message ...
is there a way to unhide my rows when the spreadsheet is sent to email? this
is the macro that i'm using. the macro works and an email is generated but i
want to send the entire spreadsheet (unhide my rows) as an attachement.

thanks

Private Sub CommandButton1_Click()

Dim OutApp As Object
Dim OutMail As Object
Set OutApp = CreateObject("Outlook.Application")
Set OutMail = OutApp.CreateItem(0)
With OutMail
.To = ""
.CC = ""
.BCC = ""
.Subject = "Revenue Enhancement Escalation"
.Body = ""
.Attachments.Add ActiveWorkbook.FullName
.display
End With
Set OutMail = Nothing
Set OutApp = Nothing


End Sub

--
problem




  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,123
Default email entire spreadsheet (unhide rows)

Add the code Before

With Outmail



--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"bigproblem" wrote in message ...

I've tried to insert the text into the macro. Maybe i'm doing something
wrong or putting it in the wrong place because i can't get it to work.

Where should i put your text ?

Private Sub CommandButton1_Click()

Dim OutApp As Object
Dim OutMail As Object
Set OutApp = CreateObject("Outlook.Application")
Set OutMail = OutApp.CreateItem(0)
With OutMail
.To = ""
.CC = ""
.BCC = ""
.Subject = "Revenue Enhancement Escalation"
.Body = ""
.Attachments.Add ActiveWorkbook.FullName
.display
End With
Set OutMail = Nothing
Set OutApp = Nothing
With ActiveSheet
.UsedRange.Columns(1).EntireRow.Hidden = False
End With


End Sub


--
problem


"Ron de Bruin" wrote:

You can add this for the activesheet in the code before you create the mail

With ActiveSheet
.UsedRange.Columns(1).EntireRow.Hidden = False
End With


--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"bigproblem" wrote in message ...
i have them hidden when the checkbox is selected. is there a way to unhide
when the spreadsheet is converted into an attached?

(just in case) macro used for checkbox...
Private Sub CheckBox2_Click()
Dim myRng As Range

Set myRng = Me.Range("c12:c12")

myRng.EntireRow.Hidden = Not (myRng(1).EntireRow.Hidden)
End Sub
--
problem


"Ron de Bruin" wrote:

Hi bigproblem

Are the rows hidden or do you have a filter on ??

--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"bigproblem" wrote in message
...
is there a way to unhide my rows when the spreadsheet is sent to email? this
is the macro that i'm using. the macro works and an email is generated but i
want to send the entire spreadsheet (unhide my rows) as an attachement.

thanks

Private Sub CommandButton1_Click()

Dim OutApp As Object
Dim OutMail As Object
Set OutApp = CreateObject("Outlook.Application")
Set OutMail = OutApp.CreateItem(0)
With OutMail
.To = ""
.CC = ""
.BCC = ""
.Subject = "Revenue Enhancement Escalation"
.Body = ""
.Attachments.Add ActiveWorkbook.FullName
.display
End With
Set OutMail = Nothing
Set OutApp = Nothing


End Sub

--
problem



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
Hidden rows automatically unhide when I open Excel Spreadsheet. Rick Excel Discussion (Misc queries) 1 July 19th 06 10:47 PM
Sum only adding rows on page instead of entire spreadsheet - help Sarah Excel Discussion (Misc queries) 1 February 15th 06 11:46 PM
i have rows missing on my spreadsheet but i cannot unhide them? Emma130176 Excel Discussion (Misc queries) 3 August 4th 05 12:53 AM
how do I unhide Excel 2003 spreadsheet rows with usual method. Sandy Excel Discussion (Misc queries) 2 July 13th 05 09:30 PM
Using PROPER for Columns, rows or ENTIRE spreadsheet Tom Excel Worksheet Functions 3 February 4th 05 03:43 PM


All times are GMT +1. The time now is 04:34 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"