Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
Ron Ron is offline
external usenet poster
 
Posts: 250
Default Excel Rookie Question

I am exporting an Access table to Excel. My problem is that Access exports
its column headings into the Excel spreadsheet, which is resulting in a row
(b6) being added that I do not want. I am an experienced Access programmer,
but I know nothing about Excel. Can I delete (b6) when the Excel sheet is
opened?

Can you be kind enough to provide an example?

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Excel Rookie Question


I also have quite limited knowledge of Excel code but hope this helps..

In the Visual Basic screen locate "ThisWorkbook", double click to
select and the choose "Workbook" from the drop down on the main page.
This should then show

Private Sub Workbook_Open()

End Sub

The just insert this code in between...

Private Sub Workbook_Open()
Worksheets("Sheet1").Range("B6").EntireRow.Delete Shift:=xlUp
End Sub

Where Sheet1 is the sheet you want to delete the row from.

Hope this helps

John


--
johncassell
------------------------------------------------------------------------
johncassell's Profile: http://www.excelforum.com/member.php...o&userid=25016
View this thread: http://www.excelforum.com/showthread...hreadid=516209

  #3   Report Post  
Posted to microsoft.public.excel.programming
Ron Ron is offline
external usenet poster
 
Posts: 250
Default Excel Rookie Question

Thanks,I'll give it a try...Ron

"johncassell" wrote:


I also have quite limited knowledge of Excel code but hope this helps..

In the Visual Basic screen locate "ThisWorkbook", double click to
select and the choose "Workbook" from the drop down on the main page.
This should then show

Private Sub Workbook_Open()

End Sub

The just insert this code in between...

Private Sub Workbook_Open()
Worksheets("Sheet1").Range("B6").EntireRow.Delete Shift:=xlUp
End Sub

Where Sheet1 is the sheet you want to delete the row from.

Hope this helps

John


--
johncassell
------------------------------------------------------------------------
johncassell's Profile: http://www.excelforum.com/member.php...o&userid=25016
View this thread: http://www.excelforum.com/showthread...hreadid=516209


  #4   Report Post  
Posted to microsoft.public.excel.programming
Ron Ron is offline
external usenet poster
 
Posts: 250
Default Excel Rookie Question

How do I get to the Visual Basic screen?

"johncassell" wrote:


I also have quite limited knowledge of Excel code but hope this helps..

In the Visual Basic screen locate "ThisWorkbook", double click to
select and the choose "Workbook" from the drop down on the main page.
This should then show

Private Sub Workbook_Open()

End Sub

The just insert this code in between...

Private Sub Workbook_Open()
Worksheets("Sheet1").Range("B6").EntireRow.Delete Shift:=xlUp
End Sub

Where Sheet1 is the sheet you want to delete the row from.

Hope this helps

John


--
johncassell
------------------------------------------------------------------------
johncassell's Profile: http://www.excelforum.com/member.php...o&userid=25016
View this thread: http://www.excelforum.com/showthread...hreadid=516209


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Excel Rookie Question

Alt+F11

--
Regards,
Tom Ogilvy


"Ron" wrote in message
...
How do I get to the Visual Basic screen?

"johncassell" wrote:


I also have quite limited knowledge of Excel code but hope this helps..

In the Visual Basic screen locate "ThisWorkbook", double click to
select and the choose "Workbook" from the drop down on the main page.
This should then show

Private Sub Workbook_Open()

End Sub

The just insert this code in between...

Private Sub Workbook_Open()
Worksheets("Sheet1").Range("B6").EntireRow.Delete Shift:=xlUp
End Sub

Where Sheet1 is the sheet you want to delete the row from.

Hope this helps

John


--
johncassell
------------------------------------------------------------------------
johncassell's Profile:

http://www.excelforum.com/member.php...o&userid=25016
View this thread:

http://www.excelforum.com/showthread...hreadid=516209






  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Excel Rookie Question


Sorry Ron, thought you had been in this screen, in that case..

To open the VB program - In Excel either press ALT+F11 or go to
ToolsMacroVisual Basic Editor.

I have never used Access so I don't know if they have a similar screen
but..

In VB - On the left hand side you will see the name of your workbook
followed by the sheets in that workbook followed by the "ThisWorkbook"
as discussed earlier. If your only need in Excel is to remove that row
then these are the only things you need to know.

John


--
johncassell
------------------------------------------------------------------------
johncassell's Profile: http://www.excelforum.com/member.php...o&userid=25016
View this thread: http://www.excelforum.com/showthread...hreadid=516209

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
rookie question Nevermind Charts and Charting in Excel 2 June 12th 07 05:57 PM
VBA Question (rookie issue) Scott Wagner Excel Programming 7 February 19th 06 11:29 PM
Help for a VBA rookie Frank C[_2_] Excel Programming 2 June 6th 04 08:15 AM
Rookie question: placing a value into one cell based on a forrmula in another Kelley[_2_] Excel Programming 2 November 1st 03 09:50 PM
VBA rookie question - listbox and GOTO Harald Staff[_4_] Excel Programming 3 September 7th 03 04:55 PM


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