Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 9
Default creating database help please!

Hi!

I would like to create an entry form, where the user inputs data into cells
in a column format, lets say from F5 to F8 in sheet1, and then these get
copied to sheet2 into a row format from lets say A1 to D1 respectively. So
where F5 gets copied to A1 then F6 to B1 etc etc. And then the next time I
enter data in sheet1 and run the macro I want the data to fill the next row
in sheet2, for example, from F5 to A2, F6 to B2 etc etc

THANK YOU!
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,203
Default creating database help please!

This macro should do the trick for you.

To put the macro into your workbook: open the workbook, press [Alt]+[F11]
and then choose Insert -- Module and copy and paste the code below into the
module and close the VB Editor.

You may want to attach the macro to a button or shape for easier use, and
there are several sites that will tell you how to do that, as:
http://www.ozgrid.com/Excel/assign-macros.htm
http://www.mrexcel.com/tip068.shtml

Sub CopyAndTranspose()
Dim destWS As Worksheet
Dim destRange As Range
Dim copyRange As Range

Set copyRange = Sheets("Sheet1").Range("F5:F8")
Set destWS = Sheets("Sheet2")
Set destRange = destWS.Range("A" & Rows.Count) _
.End(xlUp)
If Not IsEmpty(destRange) Then
Set destRange = destRange.Offset(1, 0)
End If
copyRange.Copy
destRange.PasteSpecial Paste:=xlPasteValues, _
Operation:=xlNone, SkipBlanks:=False, Transpose:=True
Application.CutCopyMode = False
End Sub


"deemo85" wrote:

Hi!

I would like to create an entry form, where the user inputs data into cells
in a column format, lets say from F5 to F8 in sheet1, and then these get
copied to sheet2 into a row format from lets say A1 to D1 respectively. So
where F5 gets copied to A1 then F6 to B1 etc etc. And then the next time I
enter data in sheet1 and run the macro I want the data to fill the next row
in sheet2, for example, from F5 to A2, F6 to B2 etc etc

THANK YOU!

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 9
Default creating database help please!

THANK YOU SO MUCH!!!! IT IS PERFECT!

"JLatham" wrote:

This macro should do the trick for you.

To put the macro into your workbook: open the workbook, press [Alt]+[F11]
and then choose Insert -- Module and copy and paste the code below into the
module and close the VB Editor.

You may want to attach the macro to a button or shape for easier use, and
there are several sites that will tell you how to do that, as:
http://www.ozgrid.com/Excel/assign-macros.htm
http://www.mrexcel.com/tip068.shtml

Sub CopyAndTranspose()
Dim destWS As Worksheet
Dim destRange As Range
Dim copyRange As Range

Set copyRange = Sheets("Sheet1").Range("F5:F8")
Set destWS = Sheets("Sheet2")
Set destRange = destWS.Range("A" & Rows.Count) _
.End(xlUp)
If Not IsEmpty(destRange) Then
Set destRange = destRange.Offset(1, 0)
End If
copyRange.Copy
destRange.PasteSpecial Paste:=xlPasteValues, _
Operation:=xlNone, SkipBlanks:=False, Transpose:=True
Application.CutCopyMode = False
End Sub


"deemo85" wrote:

Hi!

I would like to create an entry form, where the user inputs data into cells
in a column format, lets say from F5 to F8 in sheet1, and then these get
copied to sheet2 into a row format from lets say A1 to D1 respectively. So
where F5 gets copied to A1 then F6 to B1 etc etc. And then the next time I
enter data in sheet1 and run the macro I want the data to fill the next row
in sheet2, for example, from F5 to A2, F6 to B2 etc etc

THANK YOU!

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,203
Default creating database help please!

Glad I could help.

"deemo85" wrote:

THANK YOU SO MUCH!!!! IT IS PERFECT!

"JLatham" wrote:

This macro should do the trick for you.

To put the macro into your workbook: open the workbook, press [Alt]+[F11]
and then choose Insert -- Module and copy and paste the code below into the
module and close the VB Editor.

You may want to attach the macro to a button or shape for easier use, and
there are several sites that will tell you how to do that, as:
http://www.ozgrid.com/Excel/assign-macros.htm
http://www.mrexcel.com/tip068.shtml

Sub CopyAndTranspose()
Dim destWS As Worksheet
Dim destRange As Range
Dim copyRange As Range

Set copyRange = Sheets("Sheet1").Range("F5:F8")
Set destWS = Sheets("Sheet2")
Set destRange = destWS.Range("A" & Rows.Count) _
.End(xlUp)
If Not IsEmpty(destRange) Then
Set destRange = destRange.Offset(1, 0)
End If
copyRange.Copy
destRange.PasteSpecial Paste:=xlPasteValues, _
Operation:=xlNone, SkipBlanks:=False, Transpose:=True
Application.CutCopyMode = False
End Sub


"deemo85" wrote:

Hi!

I would like to create an entry form, where the user inputs data into cells
in a column format, lets say from F5 to F8 in sheet1, and then these get
copied to sheet2 into a row format from lets say A1 to D1 respectively. So
where F5 gets copied to A1 then F6 to B1 etc etc. And then the next time I
enter data in sheet1 and run the macro I want the data to fill the next row
in sheet2, for example, from F5 to A2, F6 to B2 etc etc

THANK YOU!

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
Creating shortcuts for a database between two pages Brigitte[_2_] Excel Discussion (Misc queries) 1 August 27th 07 11:22 AM
Creating a Database in Excel Kevin New Users to Excel 9 September 11th 06 02:11 PM
Creating worksheets from a database PaulVeilleux Excel Discussion (Misc queries) 3 August 22nd 06 08:37 PM
Help needed on creating Excel database JM Excel Discussion (Misc queries) 1 March 20th 06 07:26 PM
Creating A Search Database..Need Help ajaffer Excel Discussion (Misc queries) 6 December 3rd 05 09:50 PM


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